| | |
| | | |
| | | <th style="width: 60px;">推广经销商采购返现</th> |
| | | <th>推广用户购买返现</th> |
| | | <th style="width: 80px;">是否支持定制</th> |
| | | <!-- <th>二级返现</th> |
| | | <!-- <th>三级返现</th> --> --> |
| | | <th>操作</th> |
| | |
| | | </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][]" value="{{item.isCustomizable||'false'}}" placeholder="普通用户购买返现" class="layui-input layui-inline-1"> --> |
| | | <input type="checkbox" name="product[isCustomizable][]" title="支持|不支持" lay-skin="switch" value="{{item.distributionCutMoney||'false'}}" lay-filter="isCustomizable" class="isCustomizable"> |
| | | </td> |
| | | <!-- <td> |
| | | <input type="text" name="product[levelTwo][]" value="{{item.levelTwo}}" placeholder="二级返现" class="layui-input layui-inline-1"> |
| | |
| | | } |
| | | form.render(); |
| | | }); |
| | | |
| | | |
| | | // 监听开关切换事件 |
| | | form.on('switch(isCustomizable)', function(data){ |
| | | var elem = data.elem; // 当前开关元素 |
| | | elem.value=true; |
| | | |
| | | }); |
| | | function openSpecBox(is_open) { |
| | | if (is_open == '0') { |
| | | $("input[name=openSpec]").val("1"); |
| | |
| | | }, |
| | | createbn: function () { |
| | | var bn = layui.coreHelper.getSN('BN'); |
| | | |
| | | $("#bn").val(bn); |
| | | } |
| | | , createSn: function () { |
| | |
| | | //多参数产品库生成列表集合 |
| | | var products = []; |
| | | var productsCount = parseInt(field['productsCount']); |
| | | debugger |
| | | |
| | | for (var i = 0; i < productsCount; i++) { |
| | | var productModel = {}; |
| | | productModel.costprice = field['product[costprice][' + i + ']']; |
| | |
| | | productModel.levelThree = field['product[levelThree][' + i + ']']; |
| | | productModel.pointsDeduction = field['product[pointsDeduction][' + i + ']']; |
| | | productModel.points = field['product[points][' + i + ']']; |
| | | debugger |
| | | //百分兵法添加 |
| | | productModel.isCustomizable = field['product[isCustomizable][' + i + ']']; |
| | | productModel.points = field['product[points][' + i + ']']; |
| | | productModel.distributionPrice = field['product[distributionPrice][' + i + ']']; |
| | | productModel.distributionCutMoney = field['product[distributionCutMoney][' + i + ']']; |
| | | productModel.cutMoney = field['product[cutMoney][' + i + ']']; |