| | |
| | | // } |
| | | // } |
| | | // }, |
| | | { field: 'schoolName', title: '学校名称', sort: false,width: 133 }, |
| | | { |
| | | field: 'idCradNumber', title: '身份证', width: 120, sort: false, |
| | | templet: function (d) { |
| | | if (d.idCradNumber) { |
| | | |
| | | var listimg= d.idCradNumber.split(",") |
| | | var str=""; |
| | | listimg.forEach((value,index)=> |
| | | { |
| | | str+= '<a href="javascript:void(0);" onclick=layui.coreHelper.viewImage("' + value + '")><image style="max-width:30px;max-height:30px; margin-left: 5px;" src="' + value + '" /></a>' |
| | | |
| | | }) |
| | | |
| | | return str; |
| | | } else { |
| | | return '<a href="javascript:void(0);" onclick=layui.coreHelper.viewImage("' + setter.noImagePicUrl + '")><image style="max-width:30px;max-height:30px; margin-left: 5px;" src="' + setter.noImagePicUrl + '" /></a>'; |
| | | } |
| | | } |
| | | }, |
| | | { |
| | | field: 'storeBanner', title: '门头图片', sort: false, width: 100, templet: function (d) { |
| | | if (d.storeBanner) { |
| | |
| | | function doDetails(obj) { |
| | | coreHelper.Post("Api/CoreCmsDistribution/GetDetails", { id: obj.data.id }, function (e) { |
| | | if (e.code === 0) { |
| | | debugger |
| | | if(e.data.model.idCradNumber) |
| | | { |
| | | |
| | | lisimg=e.data.model.idCradNumber.split(','); |
| | | e.data.lisimg1=lisimg[0]; |
| | | |
| | | e.data.lisimg2=lisimg[1]; |
| | | } |
| | | admin.popup({ |
| | | shadeClose: false, |
| | | title: '查看详情', |