Commit 770ddaab authored by 肖健's avatar 肖健

添加您的免费领取次数已用完判断

parent 632eb1db
...@@ -75,15 +75,24 @@ export default { ...@@ -75,15 +75,24 @@ export default {
}) })
return; return;
} }
uni.showToast({ let opts = { url: '/app/user/info', method: 'get' }
title: "您的免费领取次数已用完", this.http.httpTokenRequest(opts, {}).then(res => {
icon: 'none', if (res.data.code == 200) {
duration: 2000, let freeMoveFlag = res.data.data.freeMoveFlag
}); if (freeMoveFlag) {
//跳转到领取优惠卷页面 uni.showToast({
uni.navigateTo({ title: "您的免费领取次数已用完",
url: '/pagesA/pages/index/getPrice?orderId=' + this.freeCode.id icon: 'none',
}); duration: 2000,
});
} else {
//跳转到领取优惠卷页面
uni.navigateTo({
url: '/pagesA/pages/index/getPrice?orderId=' + this.freeCode.id
});
}
}
})
}, },
getMoveCode() { getMoveCode() {
let opts = { let opts = {
......
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