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/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