Browse Source

10.0 修改

bding 1 year ago
parent
commit
98f339ba15
1 changed files with 16 additions and 35 deletions
  1. 16 35
      pages/index/index.vue

+ 16 - 35
pages/index/index.vue

@@ -232,47 +232,28 @@ export default {
     },
     // bannaer 点击事件
     async bannerSwiperHandler(item) {
-      let { Type, SourceId } = item.BannerUrlResp;
+      let { Type, SourceId, Path } = item.BannerUrlResp;
       if (Type == 1) return;
       await Home.bannerHistory({
         BannerId: item.BannerId,
       });
-      switch (Type) {
-        case 2:
+      if (Type == 5) {
+        let obj = {
+          BackgroundImg: "https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/my_log.png",
+          Id: SourceId,
+          PlaySeconds: "15",
+          ResourceUrl: "https://hzstatic.hzinsights.com/static/yb/video/8617330c2a76e0c35999f6466b4470c4.mp4",
+          Title: "三分钟了解弘则研究体系和方法论",
+          Type: "三分钟了解弘则研究体系和方法论",
+        };
+        this.videoPopListUp = obj;
+        this.showVideoPopUp = true;
+        await Mine.addHistory();
+      } else {
+        Path &&
           uni.navigateTo({
-            url: "/pageMy/reportDetail/reportDetail?id=" + SourceId,
+            url: Path + SourceId,
           });
-          break;
-        case 3:
-          uni.navigateTo({
-            url: "/activityPages/activityDetail/activityDetail?id=" + SourceId,
-          });
-          break;
-        case 4:
-          uni.navigateTo({
-            url: "/reportPages/IndustryReport/IndustryReport?id=" + SourceId,
-          });
-          break;
-        case 6:
-          uni.navigateTo({
-            url: "/reportPages/internalDetials/internalDetials?id=" + SourceId,
-          });
-          break;
-        case 5:
-          let obj = {
-            BackgroundImg: "https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/my_log.png",
-            Id: SourceId,
-            PlaySeconds: "15",
-            ResourceUrl: "https://hzstatic.hzinsights.com/static/yb/video/8617330c2a76e0c35999f6466b4470c4.mp4",
-            Title: "关于我们",
-            Type: "关于我们",
-          };
-          this.videoPopListUp = obj;
-          this.showVideoPopUp = true;
-          await Mine.addHistory();
-          break;
-        default:
-          "";
       }
     },
   },