Authored by liuyue

优惠码

... ... @@ -103,7 +103,7 @@ exports.init = function() {
},
columns:[
{display:"批次号", name:"batchNo", render: function(item) {
return '<a href="/couponinfo/' + item.id + '">' + item.batchNo + '</a>';
return '<a href="/coupon/info/' + item.id + '">' + item.batchNo + '</a>';
}},
{display:"基本信息",name:"name", render: function(item) {
return '<p>名称:' + item.name + '</p><p>次数' + item.limitTimes + '</p><p>部门:' + item.reqDepartment + '</p>';
... ... @@ -124,7 +124,7 @@ exports.init = function() {
console.log(this);
var HtmArr=[];
if(btnAuthority.look){
HtmArr.push('<a href="/couponinfo/'+ items.id+'" class="btn btn-info btn-xs">查看详情</a>');
HtmArr.push('<a href="/coupon/info/'+ items.id+'" class="btn btn-info btn-xs">查看详情</a>');
}
if(items.status == 0){
HtmArr.push('<a class="btn btn-primary btn-xs apply-success" data-id="'+ items.id+'" href="javascript:;">通过</a>');
... ... @@ -135,7 +135,7 @@ exports.init = function() {
HtmArr.push('<a class="btn btn-danger btn-xs apply-cancel" data-id="'+ items.id+'" href="javascript:;">作废</a>');
}
if(items.status == 2){
HtmArr.push('<a class="btn btn-info btn-xs apply-modify" data-id="'+ items.id+'" href="/couponupdate/'+ items.id+'">修改</a>');
HtmArr.push('<a class="btn btn-info btn-xs apply-modify" data-id="'+ items.id+'" href="/coupon/update/'+ items.id+'">修改</a>');
}
return HtmArr.join('');
}}
... ...
... ... @@ -22,7 +22,7 @@
<div class="contentpanel">
<div class="panel panel-default" style="margin-bottom:10px;">
<div class="panel-heading">
<a href="/supplier/update" class="btn btn-success"><i class="fa fa-plus"></i> 添加供应商</a>
<a href="/coupon/add" class="btn btn-success"><i class="fa fa-plus"></i> 添加优惠码</a>
</div>
<div class="panel-body">
<div class="row">
... ...