Browse Source

更新直播跳轉方式

tremble 3 years ago
parent
commit
724968b052
1 changed files with 8 additions and 1 deletions
  1. 8 1
      src/app.vue

+ 8 - 1
src/app.vue

@@ -310,7 +310,14 @@ onMounted(async () => {
               data: tag,
               data: tag,
             });
             });
           } else if (tag.type == "applet_link") {
           } else if (tag.type == "applet_link") {
-            browser.openLink(tag.hotContent.liveLink);
+            try {
+              let hotcontent = JSON.parse(tag.hotContent);
+              browser.openLink(
+                "/subPackage/pages/home/home?pageType=2&pageId=" + hotcontent.liveLink,
+                `https://m.cdfmembers.com/shop/600667208/showactivity?pageId=${hotcontent.liveLink}`,
+                `/pages/showactivity/showactivity?pageId=${hotcontent.liveLink}`
+              );
+            } catch (error) {}
           } else if (tag.type == "link_scene") {
           } else if (tag.type == "link_scene") {
             let sceneFirstView = tag.hotContent.sceneFirstView;
             let sceneFirstView = tag.hotContent.sceneFirstView;
             window.location.href = jumpNewScene(sceneFirstView);
             window.location.href = jumpNewScene(sceneFirstView);