From 7a3a4f8012a72f80d8dd62064a76655c803da864 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期三, 29 五月 2024 12:42:45 +0800
Subject: [PATCH] Merge branch 'master' of http://47.108.235.38:8080/r/baifenbaishop
---
CoreCms.Net.Web.Admin/wwwroot/views/good/goods/edit.html | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/CoreCms.Net.Web.Admin/wwwroot/views/good/goods/edit.html b/CoreCms.Net.Web.Admin/wwwroot/views/good/goods/edit.html
index 47a6359..8a920fd 100644
--- a/CoreCms.Net.Web.Admin/wwwroot/views/good/goods/edit.html
+++ b/CoreCms.Net.Web.Admin/wwwroot/views/good/goods/edit.html
@@ -323,6 +323,7 @@
<th style="width: 60px;">鎺ㄥ箍缁忛攢鍟嗛噰璐繑鐜�</th>
<th>鎺ㄥ箍鐢ㄦ埛璐拱杩旂幇</th>
+ <th style="width: 80px;">鏄惁鏀寔瀹氬埗</th>
<!-- <th>浜岀骇杩旂幇</th>
<!-- <th>涓夌骇杩旂幇</th> --> -->
@@ -397,6 +398,9 @@
</td>
<td>
<input type="text" name="product[cutMoney][]" value="{{item.cutMoney||'0'}}" placeholder="鎺ㄥ箍鏅�氱敤鎴疯喘涔拌繑鐜�" class="layui-input layui-inline-1">
+ </td>
+ <td>
+ <input type="checkbox" name="product[isCustomizable][]" {{item.isCustomizable==true? 'checked':""}} value="{{item.isCustomizable||'false'}}" title="鏀寔|涓嶆敮鎸�" lay-skin="switch" lay-filter="isCustomizable" >
</td>
<!-- <td>
<input type="text" name="product[levelTwo][]" value="{{item.levelTwo}}" placeholder="浜岀骇杩旂幇" class="layui-input layui-inline-1">
@@ -1077,7 +1081,12 @@
});
}
});
-
+ // 鐩戝惉寮�鍏冲垏鎹簨浠�
+ form.on('switch(isCustomizable)', function(data){
+ var elem = data.elem; // 褰撳墠寮�鍏冲厓绱�
+ elem.value=true;
+
+ });
//鍥鹃泦涓婁紶
$('#upBtnimageIds').click(function () {
cropperImg.cropImg({
@@ -1995,6 +2004,7 @@
productModel.pointsDeduction = field['product[pointsDeduction][' + i + ']'];
productModel.points = field['product[points][' + i + ']'];
//娣诲姞 鐧惧垎鍏垫硶
+ productModel.isCustomizable = field['product[isCustomizable][' + i + ']'];
productModel.distributionPrice = field['product[distributionPrice][' + i + ']'];
productModel.distributionCutMoney = field['product[distributionCutMoney][' + i + ']'];
productModel.cutMoney = field['product[cutMoney][' + i + ']'];
--
Gitblit v1.9.1