Browse Source

判断是否有购买记录

huangxiaojing 2 years ago
parent
commit
8a534b643a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pages/activity/lottery/index.vue

+ 1 - 1
pages/activity/lottery/index.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="lottery-container">
-    <van-swipe :autoplay="3000" class="lottery-swipe" vertical :show-indicators="false">
+    <van-swipe v-if="carousel.length" :autoplay="3000" class="lottery-swipe" vertical :show-indicators="false">
       <van-swipe-item v-for="item in carousel" :key="item.mealId">有{{item.count}}个用户 {{['', '抽奖', '购买'][item.type]}}{{item.title}}</van-swipe-item>
     </van-swipe>
     <img class="w51h26" src="~/assets/image/activity/lottery/rule.png" alt="" @click="showRule=true;makePoint('activity_购买协议')">