解决【营销计划-C端支付宝】支付宝领取页面,连续点击领取,报服务器异常

This commit is contained in:
Apple 2022-06-21 14:14:06 +08:00
parent 00418eeebf
commit 0b763419de
1 changed files with 11 additions and 3 deletions

View File

@ -81,16 +81,17 @@
8.开通严选Pro会员后有效期即时生效不支持退款原属于严选Pro会员或赠礼会员的老用 8.开通严选Pro会员后有效期即时生效不支持退款原属于严选Pro会员或赠礼会员的老用
户直接在原剩余有效期时长上叠加,新客户则自开通日起算。 户直接在原剩余有效期时长上叠加,新客户则自开通日起算。
9.本次活动每个用户仅限参与1次请勿重复参与。`, 9.本次活动每个用户仅限参与1次请勿重复参与。`,
orderNumber: "zbYmmQrSsZCiIjUaXGywJUV9BJjv0QcdJW4Il8Deyrw=", orderNumber: "+C8aWROaSntLqBA0RTA+X/CAKR2YYn5iGx2YQMgp0Ww==",
openId: "+UfCzEgd0h2Psj245UmcyHfW6QW0msZIAxO6RJBZ7Hk=", openId: "+UfCzEgd0h2Psj245UmcyHfW6QW0msZIAxO6RJBZ7Hk=",
popboxshow: false, popboxshow: false,
maskshow: false, maskshow: false,
reduceInfo: {}, reduceInfo: {},
couponInfo: {} couponInfo: {},
disabledBtn:false,
}; };
}, },
created() { created() {
// 唤起支付宝授权,打开领取 //唤起支付宝授权,打开领取
this.openId = this.getQueryString( this.openId = this.getQueryString(
window.location.search, window.location.search,
"alipayuserid" "alipayuserid"
@ -127,8 +128,15 @@
channel: "1", //立减金发放渠道1支付宝2微信小程序 channel: "1", //立减金发放渠道1支付宝2微信小程序
channel_user_id: this.openId, // "渠道用户id" channel_user_id: this.openId, // "渠道用户id"
}; };
if(this.disabledBtn){
return
}
this.disabledBtn = true;
req.axiosPost("/voucher/grant", data) req.axiosPost("/voucher/grant", data)
.then((res) => { .then((res) => {
setTimeout(()=>{
this.disabledBtn = false;
},2000)
if (res.code == 200) { if (res.code == 200) {
window.location.href = './advise.html' window.location.href = './advise.html'
sessionStorage.setItem('messageTip', ''); sessionStorage.setItem('messageTip', '');