Commit b61e9e81 authored by renjie's avatar renjie

修改相册首页逻辑

parent 32794fac
......@@ -248,12 +248,12 @@ export default {
})
},
async handleWhetherToVotePage() { //---判断是否跳转投票页面
try{
// 1.获取调查列表id
const surveyQueryData = {
pageCode: 'albumIndex', //默认前端写死
channelId: this.options.channelId //游客扫码携带的channelId
}
const surveyList = await this.judgeWhether('scenic/market/findPageMarket', surveyQueryData)
// 2.判断商店是否在做投票活动,获取模板
......@@ -267,7 +267,6 @@ export default {
})
}else {// 调查模板为空则直接展示首页
this.show = true
this.getCoupon()
this.couponIsUse()
return
}
......@@ -283,7 +282,6 @@ export default {
voteObj = await this.judgeWhether('wechatUser/pdAlbum/checkVisitorSurvey', votedQueryData)
}else {
this.show = true
this.getCoupon()
this.couponIsUse()
return
}
......@@ -295,9 +293,14 @@ export default {
})
} else if (voteObj.alreadySurvey === 1) { // 已投票
this.show = true
this.getCoupon()
this.couponIsUse()
}
}catch(e){
this.show = true
this.couponIsUse()
console.log(e)
}
},
getCoupon() { //---获取优惠券
var data = {
......
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