瀏覽代碼

修改bug

huangxiaojing 2 年之前
父節點
當前提交
9831d1bbbf
共有 2 個文件被更改,包括 690 次插入259 次删除
  1. 3 5
      pages/activity/lottery/index.vue
  2. 687 254
      pages/activity/lottery/pc.vue

+ 3 - 5
pages/activity/lottery/index.vue

@@ -43,8 +43,7 @@
               <div class="txt4"> 1年使用权 每月30小时</div>
             </div>
             <div class="fb">
-              <div v-for="item in mealList" :key="item.id" :class="selMealId === item.id ? 'coupon-2 active' : 'coupon-2'"
-                @click=" selMealId = item.id;originalPrice=+item.originalPrice;makePoint(item.day === 30 ? 'activity_38月卡' : 'activity_268年卡');">
+              <div v-for="item in mealList" :key="item.id" :class="selMealId === item.id ? 'coupon-2 active' : 'coupon-2'" @click=" selMealId = item.id;originalPrice=+item.originalPrice;makePoint(item.day === 30 ? 'activity_38月卡' : 'activity_268年卡');">
                 <div class="coupon-title">
                   <span>¥</span><span class="txt2">{{
                 item.actualPrice
@@ -298,6 +297,8 @@ export default {
   async fetch() {
     if (this.$userAgent.isAndroid) {
       this.token = await window.native.getToken();
+    } else if (window.native.isPC) {
+      this.$router.push({ path: '/activity/lottery/pc', query: {token: this.$route.query.token}})
     } else {
       this.token = this.$route.query.token;
     }
@@ -318,9 +319,6 @@ export default {
     this.getLuckDrawActivity();
     this.getCarouselList();
   },
-  mounted() {
-    console.log(window.navigator.userAgent)
-  },
   methods: {
     async getCarouselList() {
       const res = await this.$axios.$post('/activity/v1/member/carousel');

File diff suppressed because it is too large
+ 687 - 254
pages/activity/lottery/pc.vue