| | |
| | | <input type="checkbox" value={{d.id}} lay-text="上架|下架" lay-skin="switch" lay-filter="upOrDownSwitch"> |
| | | {{# } }} |
| | | </script> |
| | | <script type="text/html" id="isSkuFormat"> |
| | | {{# if(d.isSku === 1) { }} |
| | | <span>是</span> |
| | | {{# } else { }} |
| | | <span>否</span> |
| | | {{# } }} |
| | | </script> |
| | | <script type="text/html" id="goodsTypeFormat"> |
| | | {{# if(d.isNormal === 1) { }} |
| | | <span>普通商品</span> |
| | | {{# } else { }} |
| | | <span>套餐</span> |
| | | {{# } }} |
| | | </script> |
| | | <style> |
| | | .layui-form-onswitch { |
| | | background-color: #5FB878 !important; |
| | |
| | | }, minWidth: 150,align:'center'}, |
| | | {field: 'categaryName', title: '分类', minWidth: 150,align:'left'}, |
| | | {field: 'isSale', title: '是否上架', templet: '#upOrDownSwitch', minWidth: 130,align:'center'}, |
| | | {templet:"#goodsTypeFormat", title: '商品类型', minWidth: 150,align:'left'}, |
| | | {templet:"#isSkuFormat", title: '是否多规格', minWidth: 150,align:'left'}, |
| | | {field: 'presentPrice', title: '现价', minWidth: 150,align:'left'}, |
| | | {field: 'originalPrice', title: '原价', minWidth: 150,align:'left'}, |
| | | {field: 'stock', title: '商品库存', minWidth: 150,align:'left'}, |