Browse Source

跳转qq群

huangxiaojing 2 years ago
parent
commit
e40cef8348
2 changed files with 5 additions and 7 deletions
  1. 2 3
      pages/activity/invite-user/guide-pc.vue
  2. 3 4
      pages/activity/invite-user/guide.vue

+ 2 - 3
pages/activity/invite-user/guide-pc.vue

@@ -79,9 +79,8 @@ export default {
     },
     },
     async getAdInfoByAdPlace() {
     async getAdInfoByAdPlace() {
       const data = {
       const data = {
-        id: 1,
         adPlace: 20,
         adPlace: 20,
-        os: 1
+        os: 0
       }
       }
       const res = await this.$axios.$post('/public/v5/advertising/getAdInfoByAdPlace', data);
       const res = await this.$axios.$post('/public/v5/advertising/getAdInfoByAdPlace', data);
       this.topADList = res.data;
       this.topADList = res.data;
@@ -106,7 +105,7 @@ export default {
       if (item.actionType === '1' || item.actionType === '3' || item.actionType === '5' || item.actionType === '6') {
       if (item.actionType === '1' || item.actionType === '3' || item.actionType === '5' || item.actionType === '6') {
         window.open(item.clickUrl, '_blank')
         window.open(item.clickUrl, '_blank')
       } else if (item.actionType === '4') {
       } else if (item.actionType === '4') {
-        window.open(item.clickUrl, '_blank')
+        window.open(item.deeplink, '_blank')
       }
       }
     },
     },
     submit(item, ele, flag) {
     submit(item, ele, flag) {

+ 3 - 4
pages/activity/invite-user/guide.vue

@@ -77,9 +77,8 @@ export default {
     },
     },
     async getAdInfoByAdPlace() {
     async getAdInfoByAdPlace() {
       const data = {
       const data = {
-        id: 1,
         adPlace: 20,
         adPlace: 20,
-        os: 1
+        os: this.$userAgent.isAndroid ? 0 : this.$userAgent.isIos ? 1 : 3
       }
       }
       const res = await this.$axios.$post('/public/v5/advertising/getAdInfoByAdPlace', data);
       const res = await this.$axios.$post('/public/v5/advertising/getAdInfoByAdPlace', data);
       this.topADList = res.data;
       this.topADList = res.data;
@@ -106,9 +105,9 @@ export default {
         if (this.$userAgent.isIos) {
         if (this.$userAgent.isIos) {
           window.open(item.deeplink, '_blank')
           window.open(item.deeplink, '_blank')
         } else if (this.$userAgent.isAndroid) {
         } else if (this.$userAgent.isAndroid) {
-          window.open('qq://' + item.clickUrl, '_blank')
+          window.open('qq://' + item.deeplink, '_blank')
         } else {
         } else {
-          window.open(item.clickUrl, '_blank')
+          window.open(item.deeplink, '_blank')
         }
         }
       }
       }
       this.submit(item, '', 2)
       this.submit(item, '', 2)