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

Merge branch 'feature/update_swiper' into 'master'

fix: swiper resize验证

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