...
|
...
|
@@ -145,9 +145,7 @@ var g = new common.grid({ |
|
|
display: "状态",
|
|
|
render: function (item) {
|
|
|
var HtmArr = [];
|
|
|
if(item.productVipStatus == 0){
|
|
|
HtmArr.push('<label>跟随店铺</label>');
|
|
|
}else if(item.productVipStatus == 1){
|
|
|
if(item.productVipStatus == 1){
|
|
|
HtmArr.push('<label>开启</label>');
|
|
|
}else{
|
|
|
HtmArr.push('<label>关闭</label>');
|
...
|
...
|
@@ -158,16 +156,9 @@ var g = new common.grid({ |
|
|
display: '操作',
|
|
|
render: function (item) {
|
|
|
var HtmArr = [];
|
|
|
if(item.productVipStatus == 0){
|
|
|
HtmArr.push('<label><input name="'+item.productSKN+'" type="radio" value="1" onclick="changeStatus('+item.productSKN+',1)"/>开启</label>');
|
|
|
HtmArr.push('<label><input name="'+item.productSKN+'" type="radio" value="2" onclick="changeStatus('+item.productSKN+',2)"/>关闭</label>');
|
|
|
}else if(item.productVipStatus == 1){
|
|
|
HtmArr.push('<label><input name="'+item.productSKN+'" type="radio" value="0" onclick="changeStatus('+item.productSKN+',0)"/>跟随店铺</label>');
|
|
|
HtmArr.push('<label><input name="'+item.productSKN+'" type="radio" value="2" onclick="changeStatus('+item.productSKN+',2)"/>关闭</label>');
|
|
|
}else{
|
|
|
HtmArr.push('<label><input name="'+item.productSKN+'" type="radio" value="0" onclick="changeStatus('+item.productSKN+',0)"/>跟随店铺</label>');
|
|
|
HtmArr.push('<label><input name="'+item.productSKN+'" type="radio" value="1" onclick="changeStatus('+item.productSKN+',1)"/>开启</label>');
|
|
|
}
|
|
|
HtmArr.push('<a onclick="changeStatus('+item.productSKN+',0)" href="javascript:;" class="btn btn-primary">跟随店铺</a>');
|
|
|
HtmArr.push('<a onclick="changeStatus('+item.productSKN+',1)" href="javascript:;" class="btn btn-info">开启</a>');
|
|
|
HtmArr.push('<a onclick="changeStatus('+item.productSKN+',2)" href="javascript:;" class="btn btn-danger">关闭</a>');
|
|
|
return HtmArr.join('');
|
|
|
}
|
|
|
}]
|
...
|
...
|
|