Commit 3f859e43 authored by 郝聪敏's avatar 郝聪敏

fix: swiper resize验证

parent ab9effc5
......@@ -54,7 +54,7 @@
</div>
<div class="activity-draw" v-if="status !== 'HAS_WINNING'">
<p class="activity-draw-tips" v-if="status === 'HAS_CHANCE'">您有1次抽奖机会</p>
<div class="activity-draw-button" @click="resize">立即抽奖 100%领钱</div>
<div class="activity-draw-button" @click="drawLottery">立即抽奖 100%领钱</div>
</div>
<div class="activity-withdrawal">
<p>累计可提现红包</p>
......@@ -142,6 +142,11 @@ export default {
this.getLotteryRecord();
}
},
mounted() {
this.$nextTick(() => {
this.$refs.swiper.resize();
});
},
computed: {
voteButtonText() {
let text = "去投票";
......@@ -224,10 +229,7 @@ export default {
this.$nextTick(() => {
this.$refs.swiper.resize();
});
});
},
resize() {
this.$refs.swiper.resize();
}, 500);
},
// 客户端不支持
saveImg() {
......
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