Commit 394cc99d authored by renjie's avatar renjie

处理获取优惠券错误bug

parent d0a4a739
...@@ -312,12 +312,14 @@ export default { ...@@ -312,12 +312,14 @@ export default {
this.$request('scenic/market/findPageMarket', data).then((res) => { this.$request('scenic/market/findPageMarket', data).then((res) => {
if (res.code === '00') { if (res.code === '00') {
this.couponIsUse() this.couponIsUse()
} else { } else if(res.code === '04') {
uni.showToast({ this.isHaveCoupon = false
title: res.message, }else {
icon: 'none' uni.showToast({
}) title: res.message,
} icon: 'none'
})
}
}) })
}, },
couponIsUse() { //---判断是否有劵 couponIsUse() { //---判断是否有劵
...@@ -389,7 +391,7 @@ export default { ...@@ -389,7 +391,7 @@ export default {
} else { // 扫码进入本页 } else { // 扫码进入本页
this.handleWhetherToVotePage() this.handleWhetherToVotePage()
} }
if (uni.getStorageSync('location')) return if (uni.getStorageSync('location')) return
uni.getLocation({ //获取定位 uni.getLocation({ //获取定位
......
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