Commit 66ed74a8 authored by xinyuandu's avatar xinyuandu

com

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