huangxiaojing 2 年 前
コミット
157537182e
共有2 個のファイルを変更した7 個の追加6 個の削除を含む
  1. 6 5
      pages/activity/lottery/index.vue
  2. 1 1
      pages/activity/lottery/pc.vue

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

@@ -303,11 +303,7 @@ export default {
     } else {
       this.token = this.$route.query.token;
     }
-  },
-  head: {
-    title: '年卡抽奖活动',
-  },
-  created() {
+    
     if (this.$userAgent.isAndroid) {
       this.client = 1;
     } else if (this.$userAgent.isIos) {
@@ -317,6 +313,11 @@ export default {
     } else {
       this.client = 7;
     }
+  },
+  head: {
+    title: '年卡抽奖活动',
+  },
+  created() {
     this.getLuckDrawActivity();
     this.getCarouselList();
   },

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

@@ -295,12 +295,12 @@ export default {
   },
   async fetch() {
     this.token = await this.$route.query.token;
+    this.client = 3;
   },
   head: {
     title: '年卡抽奖活动',
   },
   created() {
-    this.client = 3;
     this.getLuckDrawActivity();
     this.getCarouselList();
   },