Commit 78ed0493 authored by qipeng's avatar qipeng

Merge branch 'develop' of http://git.tbd.yanzuoguang.com/panyongping/uni-pdtravel into develop

parents 92663815 021af6d3
...@@ -248,12 +248,12 @@ export default { ...@@ -248,12 +248,12 @@ export default {
}) })
}, },
async handleWhetherToVotePage() { //---判断是否跳转投票页面 async handleWhetherToVotePage() { //---判断是否跳转投票页面
try{
// 1.获取调查列表id // 1.获取调查列表id
const surveyQueryData = { const surveyQueryData = {
pageCode: 'albumIndex', //默认前端写死 pageCode: 'albumIndex', //默认前端写死
channelId: this.options.channelId //游客扫码携带的channelId channelId: this.options.channelId //游客扫码携带的channelId
} }
const surveyList = await this.judgeWhether('scenic/market/findPageMarket', surveyQueryData) const surveyList = await this.judgeWhether('scenic/market/findPageMarket', surveyQueryData)
// 2.判断商店是否在做投票活动,获取模板 // 2.判断商店是否在做投票活动,获取模板
...@@ -267,7 +267,6 @@ export default { ...@@ -267,7 +267,6 @@ export default {
}) })
}else {// 调查模板为空则直接展示首页 }else {// 调查模板为空则直接展示首页
this.show = true this.show = true
this.getCoupon()
this.couponIsUse() this.couponIsUse()
return return
} }
...@@ -283,7 +282,6 @@ export default { ...@@ -283,7 +282,6 @@ export default {
voteObj = await this.judgeWhether('wechatUser/pdAlbum/checkVisitorSurvey', votedQueryData) voteObj = await this.judgeWhether('wechatUser/pdAlbum/checkVisitorSurvey', votedQueryData)
}else { }else {
this.show = true this.show = true
this.getCoupon()
this.couponIsUse() this.couponIsUse()
return return
} }
...@@ -295,9 +293,14 @@ export default { ...@@ -295,9 +293,14 @@ export default {
}) })
} else if (voteObj.alreadySurvey === 1) { // 已投票 } else if (voteObj.alreadySurvey === 1) { // 已投票
this.show = true this.show = true
this.getCoupon()
this.couponIsUse() this.couponIsUse()
} }
}catch(e){
this.show = true
this.couponIsUse()
console.log(e)
}
}, },
getCoupon() { //---获取优惠券 getCoupon() { //---获取优惠券
var data = { var data = {
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
</view> </view>
<view class="img-box"> <view class="img-box">
<view class="item" v-for="(item, index) in imgArr" :key="item.templateId" @click="imageChange(item)"> <view class="item" v-for="(item, index) in imgArr" :key="item.templateId" @click="imageChange(item)">
<image class="img" :src="item.templateUrl" mode="aspectFill"></image> <image class="img" :src="item.templateUrl" mode="widthFix"></image>
<checkbox class="checkbox blue round" :checked="item.value" :value="item.templateId" shape="circle"></checkbox> <checkbox class="checkbox blue round" :checked="item.value" :value="item.templateId" shape="circle"></checkbox>
</view> </view>
</view> </view>
...@@ -173,6 +173,7 @@ export default { ...@@ -173,6 +173,7 @@ export default {
.img { .img {
width: 100%; width: 100%;
heigit: 100%; heigit: 100%;
border-radius: 16rpx;
} }
.checkbox { .checkbox {
position: absolute; position: absolute;
......
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