xiebaomin 2 năm trước cách đây
mục cha
commit
cbf7d47db1

+ 7 - 1
pages/_template/app/index.vue

@@ -179,7 +179,13 @@ export default {
   methods: {
     // 抖音挑战赛
     toActivity() {
-      this.banner.jumpLink && window.open(this.banner.jumpLink)
+      if(this.screenWidth > 768) {
+        this.banner.jumpLink && window.open(this.banner.jumpLink)
+        this.banner.jumpPcPicture && window.open(this.banner.jumpPcPicture)
+      } else {
+        this.banner.jumpLink && window.open(this.banner.jumpLink)
+        this.banner.jumpAppPicture && window.open(this.banner.jumpAppPicture)
+      }
     },
     // 从缓存中获取数据
     initFromCache(cacheData) {

+ 7 - 1
pages/_template/hyt/index.vue

@@ -179,7 +179,13 @@ export default {
   methods: {
     // 抖音挑战赛
     toActivity() {
-      this.banner.jumpLink && window.open(this.banner.jumpLink)
+      if(this.screenWidth > 768) {
+        this.banner.jumpLink && window.open(this.banner.jumpLink)
+        this.banner.jumpPcPicture && window.open(this.banner.jumpPcPicture)
+      } else {
+        this.banner.jumpLink && window.open(this.banner.jumpLink)
+        this.banner.jumpAppPicture && window.open(this.banner.jumpAppPicture)
+      }
     },
     // 从缓存中获取数据
     initFromCache(cacheData) {

+ 7 - 1
pages/_template/ldm/index.vue

@@ -106,7 +106,13 @@ export default {
   methods: {
     // 抖音挑战赛
     toActivity() {
-      this.banner.jumpLink && window.open(this.banner.jumpLink)
+      if(this.screenWidth > 768) {
+        this.banner.jumpLink && window.open(this.banner.jumpLink)
+        this.banner.jumpPcPicture && window.open(this.banner.jumpPcPicture)
+      } else {
+        this.banner.jumpLink && window.open(this.banner.jumpLink)
+        this.banner.jumpAppPicture && window.open(this.banner.jumpAppPicture)
+      }
     },
     toDetail(item) {
       // 保存登录重定向路由

+ 7 - 1
pages/_template/ph/index.vue

@@ -88,7 +88,13 @@ export default {
   methods: {
     // 抖音挑战赛
     toActivity() {
-      this.banner.jumpLink && window.open(this.banner.jumpLink)
+      if(this.screenWidth > 768) {
+        this.banner.jumpLink && window.open(this.banner.jumpLink)
+        this.banner.jumpPcPicture && window.open(this.banner.jumpPcPicture)
+      } else {
+        this.banner.jumpLink && window.open(this.banner.jumpLink)
+        this.banner.jumpAppPicture && window.open(this.banner.jumpAppPicture)
+      }
     },
     // 初始化入口图标
     initEntryItems() {

+ 7 - 2
pages/_template/ross/index.vue

@@ -156,8 +156,13 @@ export default {
   methods: {
     // 抖音挑战赛
     toActivity() {
-      // return this.$router.push(this.banner.jumpLink)
-      this.banner.jumpLink && window.open(this.banner.jumpLink)
+      if(this.screenWidth > 768) {
+        this.banner.jumpLink && window.open(this.banner.jumpLink)
+        this.banner.jumpPcPicture && window.open(this.banner.jumpPcPicture)
+      } else {
+        this.banner.jumpLink && window.open(this.banner.jumpLink)
+        this.banner.jumpAppPicture && window.open(this.banner.jumpAppPicture)
+      }
     },
     // 从缓存中获取数据
     initFromCache(cacheData) {