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

Commit ba038a89 authored by dongchun's avatar dongchun

111

parent bf40d874
......@@ -97,15 +97,9 @@
title: '操作',
// align: 'center',
formatter: function (value, row, index) {
var actions = [];
actions.push('<span class="btn btn-warning btn-xs" href="javascript:void(0)" onclick="open(\'' + row.mcouponId + '\')"><i class="fa fa-search"></i>加入黑名单</span>');
// if (row.state === 0) {
// actions.push('<a class="btn btn-danger btn-xs ' + cancelMgtCouponFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.mcouponId + '\')"><i class="fa fa-remove"></i>取消</a>');
// }
if (row.bindType === 0 && row.state === 1) {
actions.push('<a class="btn btn-info btn-xs" href="javascript:void(0)" onclick="couponCodeList(\'' + row.couponId + '\')"><i class="fa fa-list-ul"></i>码列表</a> ');
}
return actions.join('');
let dataArr = [];
return `<span class="btn btn-warning btn-xs" href="javascript:void(0)" onclick="openModal('${index}')"><i class="fa fa-search"></i>查看</span>
<span class="btn btn-warning btn-xs" href="javascript:void(0)" onclick="openModal('${index}')"><i class="fa fa-search"></i>加入黑名单</span>`
}
}]
};
......@@ -117,27 +111,11 @@
var url = 'candy/coupon/code?couponId=' + couponId;
$.modal.openTab("积分明细列表", url);
}
function open(id) {
console.log('111111')
layer.open({
type: 2,
// area: [width + 'px', height + 'px'],
fix: false,
//不固定
maxmin: true,
shade: 0.3,
title: '加入黑名单',
content: '加入黑名单后,用户将不可使用积分功能',
btn: ['确定', '关闭'],
// 弹层外区域关闭
shadeClose: true,
yes: function() {
console.log('确定')
},
cancel: function(index) {
console.log('取消')
return true;
}
function openModal(id) {
// console.log('111111')
$.modal.confirm("加入黑名单后,用户将不可使用积分功能", function() {
console.log(12121212)
// $.operate.post(prefix + "/edit_onsale", { "memberId": memberId, "onsale": 2 });
});
}
</script>
......
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