|
|
@ -93,10 +93,10 @@ use \common\libs\MyLib; |
|
|
|
html += '<div class="ibox-title">'; |
|
|
|
html += '<div class="ibox-title">'; |
|
|
|
html += '<label>客户返现:' + item.fanxian_rate + '%,最高返现:' + item.max_cashback + '元</label>'; |
|
|
|
html += '<label>客户返现:' + item.fanxian_rate + '%,最高返现:' + item.max_cashback + '元</label>'; |
|
|
|
html += '<div class="ibox-tools">'; |
|
|
|
html += '<div class="ibox-tools">'; |
|
|
|
html += '<a class="btn btn-primary btn-xs btn-users" data-id="0" href="javascript:void(0);" onclick="gifts(' + item.id + ')">'; |
|
|
|
html += '<a class="btn btn-primary btn-xs btn-users" data-id="0" href="javascript:void(0);" onclick="gifts(' + item.id + ',1)">'; |
|
|
|
html += '<i class="fa fa-users"></i> 添加礼品'; |
|
|
|
html += '<i class="fa fa-users"></i> 添加礼品'; |
|
|
|
html += '</a>'; |
|
|
|
html += '</a>'; |
|
|
|
html += '<a class="btn btn-primary btn-xs btn-users" data-id="0" href="javascript:void(0);" onclick="users()">'; |
|
|
|
html += '<a class="btn btn-primary btn-xs btn-users" data-id="0" href="javascript:void(0);" onclick="gifts(' + item.id + ',2)">'; |
|
|
|
html += '<i class="fa fa-users"></i> 添加礼券'; |
|
|
|
html += '<i class="fa fa-users"></i> 添加礼券'; |
|
|
|
html += '</a>'; |
|
|
|
html += '</a>'; |
|
|
|
html += '<button class="btn btn-danger btn-xs" style="margin-left: 8px;" onclick="deleteFanxian(' + item.id + ')">'; |
|
|
|
html += '<button class="btn btn-danger btn-xs" style="margin-left: 8px;" onclick="deleteFanxian(' + item.id + ')">'; |
|
|
@ -159,9 +159,10 @@ use \common\libs\MyLib; |
|
|
|
// |
|
|
|
// |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
function gifts(fanxian_id) { |
|
|
|
function gifts(fanxian_id, type) { |
|
|
|
title = '添加礼品'; |
|
|
|
title = '添加礼品'; |
|
|
|
layer_show(title, '/marketing-strategy/gifts?celuo_id=<?=$info->id?>&fanxian_id=' + fanxian_id);
|
|
|
|
if(type == 2) title = '添加礼券'; |
|
|
|
|
|
|
|
layer_show(title, '/marketing-strategy/gifts?celuo_id=<?=$info->id?>&fanxian_id=' + fanxian_id + '&type=' + type);
|
|
|
|
} |
|
|
|
} |
|
|
|
function deleteGift(id) { |
|
|
|
function deleteGift(id) { |
|
|
|
layer.confirm('是否确认删除礼品/礼券?', { |
|
|
|
layer.confirm('是否确认删除礼品/礼券?', { |
|
|
|