瀏覽代碼

修改bug

huangxiaojing 2 年之前
父節點
當前提交
d37e5c671b
共有 2 個文件被更改,包括 7 次插入16 次删除
  1. 4 3
      pages/activity/lottery/index.vue
  2. 3 13
      pages/activity/lottery/pc.vue

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

@@ -286,9 +286,6 @@ export default {
     };
   },
   async fetch() {
-    if (this.$route.query.type === 'pc') {
-      this.$router.push({ path: '/activity/lottery/pc', query: { token: this.$route.query.token, type: 'pc' } })
-    }
     if (this.$userAgent.isSzx && this.$userAgent.isAndroid) {
       this.token = await window.native.getToken();
     } else {
@@ -309,6 +306,10 @@ export default {
     title: '年卡抽奖活动',
   },
   created() {
+    if (this.$route.query.type === 'pc') {
+      this.$router.push({ path: '/activity/lottery/pc', query: { token: this.$route.query.token, type: 'pc' } })
+      return
+    }
     this.getLuckDrawActivity();
     this.getCarouselList();
   },

+ 3 - 13
pages/activity/lottery/pc.vue

@@ -281,8 +281,7 @@ export default {
       carousel: [],
       phoneType: 'SVIP',
       client: 0,
-      yearActualPrice: 0,
-      myAxios: null
+      yearActualPrice: 0
     };
   },
   async fetch() {
@@ -295,7 +294,6 @@ export default {
   created() {
     this.getLuckDrawActivity();
     this.getCarouselList();
-    this.myAxios = this.$axios;
   },
   methods: {
     async getCarouselList() {
@@ -427,10 +425,7 @@ export default {
         this.mealId = res.data.mealId
         this.selMealId = res.data.mealId
         this.getMealInfo()
-        this.paySupportType = res.data.paySupportType
-        if (this.$userAgent.isMiniProgram) {
-          this.paySupportType = ['wxPay']
-        }
+        this.paySupportType = res.data.paySupportType;
         this.payType = this.paySupportType[0]
         this.phoneType = res.data.phoneType
         this.title = res.data.title
@@ -453,9 +448,7 @@ export default {
           eventCode: '27_抽奖流程',
           userName: this.$auth.user.username,
           positionButton,
-          operationTime: this.getCurrentTime(),
-          phoneNumber: this.$auth.user.phone,
-          deviceId: ''
+          operationTime: this.getCurrentTime()
         },
       ]);
     },
@@ -485,9 +478,6 @@ export default {
       this.showPay = true;
       // 解锁
       this.isLocking = false;
-      if (this.$userAgent.isSzx && this.$userAgent.isAndroid) {
-        window.native.isMembersLotto(true)
-      }
 
       if (this.luckDrawType === 1) {
         this.makePoint('activity_15.9年卡');