From e353bc2ea9b511432e96036b100b124c775e5cad Mon Sep 17 00:00:00 2001
From: liaoxujun@qq.com <liaoxujun@qq.com>
Date: 星期三, 03 四月 2024 16:27:39 +0800
Subject: [PATCH] 修改地推显示

---
 CoreCms.Net.Web.Admin/wwwroot/views/baifenbingfa/offlinedistributor/index.html |   57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 56 insertions(+), 1 deletions(-)

diff --git a/CoreCms.Net.Web.Admin/wwwroot/views/baifenbingfa/offlinedistributor/index.html b/CoreCms.Net.Web.Admin/wwwroot/views/baifenbingfa/offlinedistributor/index.html
index 98d8d61..62a24b9 100644
--- a/CoreCms.Net.Web.Admin/wwwroot/views/baifenbingfa/offlinedistributor/index.html
+++ b/CoreCms.Net.Web.Admin/wwwroot/views/baifenbingfa/offlinedistributor/index.html
@@ -251,14 +251,35 @@
                 sort: false,
                 width: 105,
               },
+
               { field: "school", title: "瀛︽牎鍚嶇О", sort: false, width: 105 },
               { field: "dealerName", title: "缁忛攢鍟嗗悕绉�", sort: false ,width: 105},
+              {
+                                field: 'storeLogoUrl', title: '搴楁嫑', width: 120, sort: false,
+                                templet: function (d) {
+                                    if (d.storeLogoUrl) {
+                                      
+                                      var listimg= d.storeLogoUrl.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: "contactPerson",
                 title: "鑱旂郴浜哄鍚�",
                 sort: false,
                 width: 105,
               },
+         
               {
                 field: "phoneNumber",
                 title: "鑱旂郴鐢佃瘽",
@@ -279,6 +300,7 @@
                 width: 105,
                 templet: "#OffdismeetingCountTmp",
               },
+              
               {
                 field: "money",
                 title: "璁㈣揣璁板綍",
@@ -414,8 +436,23 @@
                           "submit(LAY-app-OfflineDistributor-createForm-submit)",
                           function (data) {
                             var field = data.field; //鑾峰彇鎻愪氦鐨勫瓧娈�
-
+                            field.storeLogoUrl="";
                             field.isdelete = field.isdelete == "on";
+                            if((!!field.storeLogoUrl1)&&(!!field.storeLogoUrl2))
+                            {
+                              field.storeLogoUrl=field.storeLogoUrl1+","+field.storeLogoUrl2;
+                            }
+                            else
+                             if(!!field.storeLogoUrl1)
+                            {
+                              field.storeLogoUrl=field.storeLogoUrl1;
+                            }
+                            else if(!!field.storeLogoUrl2)
+                            {
+                              field.storeLogoUrl=field.storeLogoUrl2;
+                            };
+                            
+
                             field.region = GetAreaCodeFormFileid(
                               field,
                               "CreatofflinedisRegion"
@@ -488,6 +525,24 @@
                           function (data) {
                             var field = data.field; //鑾峰彇鎻愪氦鐨勫瓧娈�
                             
+                            field.storeLogoUrl="";
+                            if((!!field.storeLogoUrl1)&&(!!field.storeLogoUrl2))
+                            {
+                              field.storeLogoUrl=field.storeLogoUrl1+","+field.storeLogoUrl2;
+                            }
+                            else
+                             if(!!field.storeLogoUrl1)
+                            {
+                              field.storeLogoUrl=field.storeLogoUrl1;
+                            }
+                            else if(!!field.storeLogoUrl2)
+                            {
+                              field.storeLogoUrl=field.storeLogoUrl2;
+                            };
+
+                            
+
+                           
                             field.isdelete = field.isdelete == "on";
                             field.region = GetAreaCodeFormFileid(
                               field,

--
Gitblit v1.9.1