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

Commit 51ce6995 authored by dongchun's avatar dongchun

修改正在下单bug

parent 4d1330dd
......@@ -114,12 +114,12 @@
width: '100',
align: 'center'
},
{
field: 'bindType',
title: '其他活动占用库存',
width: '120',
align: 'center'
},
// {
// field: 'bindType',
// title: '其他活动占用库存',
// width: '120',
// align: 'center'
// },
{
field: 'priceMarketing',
// title: `线下售价<a onclick="setPrice(1)">批量</a>`,
......@@ -144,17 +144,25 @@
}
},
{
field: 'buyRoster',
field: 'buyLimit',
// title: '用户限购<a onclick="setPrice(3)">批量</a>',
title: '用户限购',
width: '150',
align: 'center'
align: 'center',
formatter: function (value, row) {
if (value == 0) {
return '无限制'
} else {
return value
}
}
},
{
field: 'buyFactor',
title: '购买条件',
align: 'center',
align: 'center',
formatter: function (value, row, index) {
if (value == 0) {
return `<div style="display:flex;">
<label style="margin-right:12px;">
<input type="radio" checked value="1" id="optionsRadios1" name="optionsRadios${index}"><span>全部用户</span></label>
......@@ -163,6 +171,17 @@
<label style="margin-right:12px;">
<input type="radio" value="3" id="optionsRadios1" name="optionsRadios${index}"><span>指定用户购买</span></label>
</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