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

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

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