记得上下班打卡 | git大法好,push需谨慎

Commit 51ce6995 authored by dongchun's avatar dongchun

修改正在下单bug

parent 4d1330dd
...@@ -114,12 +114,12 @@ ...@@ -114,12 +114,12 @@
width: '100', width: '100',
align: 'center' align: 'center'
}, },
{ // {
field: 'bindType', // field: 'bindType',
title: '其他活动占用库存', // title: '其他活动占用库存',
width: '120', // width: '120',
align: 'center' // align: 'center'
}, // },
{ {
field: 'priceMarketing', field: 'priceMarketing',
// title: `线下售价<a onclick="setPrice(1)">批量</a>`, // title: `线下售价<a onclick="setPrice(1)">批量</a>`,
...@@ -144,25 +144,44 @@ ...@@ -144,25 +144,44 @@
} }
}, },
{ {
field: 'buyRoster', field: 'buyLimit',
// title: '用户限购<a onclick="setPrice(3)">批量</a>', // title: '用户限购<a onclick="setPrice(3)">批量</a>',
title: '用户限购', title: '用户限购',
width: '150', width: '150',
align: 'center' align: 'center',
formatter: function (value, row) {
if (value == 0) {
return '无限制'
} else {
return value
}
}
}, },
{ {
field: 'buyFactor',
title: '购买条件', title: '购买条件',
align: 'center', align: 'center',
align: 'center',
formatter: function (value, row, index) { formatter: function (value, row, index) {
return `<div style="display:flex;"> if (value == 0) {
return `<div style="display:flex;">
<label style="margin-right:12px;"> <label style="margin-right:12px;">
<input type="radio" checked value="1" id="optionsRadios1" name="optionsRadios${index}"><span>全部用户</span></label> <input type="radio" checked value="1" id="optionsRadios1" name="optionsRadios${index}"><span>全部用户</span></label>
<label style="margin-right:12px;"> <label style="margin-right:12px;">
<input type="radio" value="2" id="optionsRadios1" name="optionsRadios${index}"><span>仅支持会员购买</span></label> <input type="radio" value="2" id="optionsRadios1" name="optionsRadios${index}"><span>仅支持会员购买</span></label>
<label style="margin-right:12px;"> <label style="margin-right:12px;">
<input type="radio" value="3" id="optionsRadios1" name="optionsRadios${index}"><span>指定用户购买</span></label> <input type="radio" value="3" id="optionsRadios1" name="optionsRadios${index}"><span>指定用户购买</span></label>
</div>` </div>`
} else {
return `<div style="display:flex;">
<label style="margin-right:12px;">
<input type="radio" value="1" id="optionsRadios1" name="optionsRadios${index}"><span>全部用户</span></label>
<label style="margin-right:12px;">
<input type="radio" checked value="2" id="optionsRadios1" name="optionsRadios${index}"><span>仅支持会员购买</span></label>
<label style="margin-right:12px;">
<input type="radio" value="3" id="optionsRadios1" name="optionsRadios${index}"><span>指定用户购买</span></label>
</div>`
}
} }
} }
] ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment