Authored by tanling

微信卡券

... ... @@ -441,14 +441,14 @@ $(document).on('click', '.operation-third', function() {
// 绑定第三方
// 更新微信卡券h5链接
$(document).on('click', '#updateh5-btn', function() {
var obj = {};
var e = new common.edit("#h5LinkForm");
var url = "/coupon/updateCouponsUseRule";
var url = "/coupon/updateH5Link";
var dialog = common.dialog.confirm("更新微信卡券h5链接", artTemplate("h5Link-template", obj), function() {
... ... @@ -456,11 +456,20 @@ $(document).on('click', '#updateh5-btn', function() {
console.log(option.data);
option.success=function() {
dialog.close();
// g.reload();
option.success=function(res) {
if(res.code == 200) {
common.util.__tip('更新微信卡券h5链接成功!', 'success');
dialog.close();
} else {
common.util.__tip(res.message);
dialog.close();
}
return false;
};
option.error=function(){
common.util.__tip('提交失败!', 'fail');
};
option.error=function(){};
});
return false;
... ...