From 71e821ab5e6b3014fac9b691d6957bcc09704b70 Mon Sep 17 00:00:00 2001 From: 移动系统liao <liaoxujun@qq.com> Date: 星期三, 29 五月 2024 11:45:04 +0800 Subject: [PATCH] 修改定制封面逻辑 --- CoreCms.Net.Web.Admin/wwwroot/views/distribution/distributor/index.html | 29 +++++++++++++++++++++++++++++ 1 files changed, 29 insertions(+), 0 deletions(-) diff --git a/CoreCms.Net.Web.Admin/wwwroot/views/distribution/distributor/index.html b/CoreCms.Net.Web.Admin/wwwroot/views/distribution/distributor/index.html index 0ae8851..a1cd7ce 100644 --- a/CoreCms.Net.Web.Admin/wwwroot/views/distribution/distributor/index.html +++ b/CoreCms.Net.Web.Admin/wwwroot/views/distribution/distributor/index.html @@ -202,6 +202,26 @@ // } // } // }, + { 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) { @@ -373,6 +393,15 @@ 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: '鏌ョ湅璇︽儏', -- Gitblit v1.9.1