소스 검색

Merge branch 'yuan' of panhui/lasuo_nft_front into master

yuanyuan 3 년 전
부모
커밋
c0f6d0a37c
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      src/mixins/banner.js

+ 6 - 0
src/mixins/banner.js

@@ -9,6 +9,12 @@ export default {
                 this.$router.push(`/activityDetail?id=${info.linkContent}${props}`);
                 this.$router.push(`/activityDetail?id=${info.linkContent}${props}`);
             } else if (info.link && info.linkType === 'collections') {
             } else if (info.link && info.linkType === 'collections') {
                 this.$router.push(`/productSearch?search=${info.linkContent}${props}`);
                 this.$router.push(`/productSearch?search=${info.linkContent}${props}`);
+            } else if(info.link && info.linkType === 'externalLink') {
+                if (info.linkContent.indexOf('http') !== -1) {
+                    window.location.href = info.linkContent;
+                } else {
+                    this.$router.push(`${info.linkContent}${props}`);
+                }
             }
             }
         }
         }
     }
     }