Commit 66ed74a8 authored by xinyuandu's avatar xinyuandu

com

parent 578fdd3f
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
} }
console.log(number); console.log(number);
$.get('/broker/addSpreadUser',params,function(data){ $.get('/broker/addSpreadUser',params,function(data){
if (data.code == 200 ){
$.confirm({ $.confirm({
title: '领取成功', title: '领取成功',
content: '500元代金券领取成功,即将返回商铺列表.', content: '500元代金券领取成功,即将返回商铺列表.',
...@@ -32,12 +33,28 @@ ...@@ -32,12 +33,28 @@
'确定': function () { '确定': function () {
location.href = '/app/dist/#/shopList?isSendFiveHundred=1' + "&" + url; location.href = '/app/dist/#/shopList?isSendFiveHundred=1' + "&" + url;
}, },
// '取消': function () { // '取消': function () {
// window.location="www.baidu.com" // window.location="www.baidu.com"
// }, // },
} }
}); });
} else {
$.confirm({
title: '领取失败',
content: data.message,
buttons: {
'返回商铺': function () {
location.href = '/app/dist/#/shopList?isSendFiveHundred=1' + "&" + url;
},
'重新提交': function () {
},
}
});
}
},'json'); },'json');
}) })
})(); })();
......
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