Browse Source

跳转qq群

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

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

@@ -103,8 +103,14 @@ export default {
     },
     playAd(item) {
       this.submit(item, '', 2)
-      if (item.actionType === '1' || item.actionType === '3' || item.actionType === '4' || item.actionType === '5' || item.actionType === '6') {
-        window.open(item.clickUrl, '_blank', '')
+      if (item.actionType === '1' || item.actionType === '3' || item.actionType === '5' || item.actionType === '6') {
+        window.open(item.clickUrl, '_blank')
+      } else if (item.actionType === '4') {
+        if (this.$userAgent.isIos) {
+          window.open(item.deeplink, '_blank')
+        } else {
+          window.open(item.clickUrl, '_blank')
+        }
       }
     },
     submit(item, ele, flag) {

+ 7 - 1
pages/activity/invite-user/guide.vue

@@ -101,8 +101,14 @@ export default {
     },
     playAd(item) {
       this.submit(item, '', 2)
-      if (item.actionType === '1' || item.actionType === '3' || item.actionType === '4' || item.actionType === '5' || item.actionType === '6') {
+      if (item.actionType === '1' || item.actionType === '3' || item.actionType === '5' || item.actionType === '6') {
         window.open(item.clickUrl, '_blank')
+      } else if (item.actionType === '4') {
+        if (this.$userAgent.isIos) {
+          window.open(item.deeplink, '_blank')
+        } else {
+          window.open(item.clickUrl, '_blank')
+        }
       }
     },
     submit(item, ele, flag) {