From 25bad9a765c608079258012766a37a571b5243aa Mon Sep 17 00:00:00 2001
From: liaoxujun@qq.com <liaoxujun@qq.com>
Date: 星期三, 10 四月 2024 13:40:04 +0800
Subject: [PATCH] 处理推广Bug
---
CoreCms.Net.Web.Admin/wwwroot/views/baifenbingfa/offlinedistributor/index.html | 94 +++++++++++++++++++++++++++++++++++++++++++----
1 files changed, 86 insertions(+), 8 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 779814f..b7c748b 100644
--- a/CoreCms.Net.Web.Admin/wwwroot/views/baifenbingfa/offlinedistributor/index.html
+++ b/CoreCms.Net.Web.Admin/wwwroot/views/baifenbingfa/offlinedistributor/index.html
@@ -35,9 +35,10 @@
<div class="layui-input-inline">
<input
type="text"
- name="Category"
+ name="category"
placeholder="璇疯緭鍏ョ被鍒�"
class="layui-input"
+ id="searchCatgory"
/>
</div>
</div>
@@ -48,7 +49,7 @@
<div class="layui-input-inline" style="width: 260px;">
<input
type="text"
- name="CollectionTime"
+ name="collectionTime"
id="searchTime-OfflineDistributor-CollectionTime"
placeholder="璇疯緭鍏ヤ俊鎭敹闆嗘椂闂�"
class="layui-input"
@@ -66,7 +67,7 @@
<div class="layui-input-inline">
<input
type="text"
- name="Adder"
+ name="adder"
placeholder="璇疯緭鍏ヨ缁嗗湴鍧�"
class="layui-input"
/>
@@ -74,11 +75,11 @@
</div>
<div class="layui-inline">
- <label class="layui-form-label" for="School">瀛︽牎鍚嶇О</label>
+ <label class="layui-form-label" for="school">瀛︽牎鍚嶇О</label>
<div class="layui-input-inline">
<input
type="text"
- name="School"
+ name="school"
placeholder="璇疯緭鍏ュ鏍″悕绉�"
class="layui-input"
/>
@@ -89,7 +90,7 @@
<div class="layui-input-inline">
<input
type="text"
- name="DealerName"
+ name="dealerName"
placeholder="璇疯緭鍏ョ粡閿�鍟嗗悕绉�"
class="layui-input"
/>
@@ -100,7 +101,7 @@
<label class="layui-form-label" for="CooperationIntent">鍚堜綔鎰忓悜</label>
<div class="layui-input-inline">
<input
- name="CooperationIntent"
+ name="cooperationIntent"
class="layui-input"
placeholder="璇疯緭鍏ュ悎浣滄剰鍚�"
lay-reqText="璇疯緭鍏ュ悎浣滄剰鍚�"
@@ -250,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: "鑱旂郴鐢佃瘽",
@@ -278,6 +300,7 @@
width: 105,
templet: "#OffdismeetingCountTmp",
},
+
{
field: "money",
title: "璁㈣揣璁板綍",
@@ -358,6 +381,28 @@
},
style: "min-width: 235px;",
});
+
+ dropdown.render({
+ elem: "#searchCatgory",
+ data: [
+ {
+ title: "鏂囧叿搴�",
+ id: 101,
+ },
+ {
+ title: "骞垮憡搴�",
+ id: 102,
+ },
+ {
+ title: "灏忓崠閮�",
+ id: 103,
+ },
+ ],
+ click: function (obj) {
+ this.elem.val(obj.title);
+ },
+ style: "min-width: 235px;",
+ });
//鐩戝惉宸ュ叿鏉�
table.on("tool(LAY-app-OfflineDistributor-tableBox)", function (obj) {
if (obj.event === "detail") {
@@ -391,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"
@@ -464,7 +524,25 @@
"submit(LAY-app-OfflineDistributor-editForm-submit)",
function (data) {
var field = data.field; //鑾峰彇鎻愪氦鐨勫瓧娈�
+ debugger
+ 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