tremble 3 лет назад
Родитель
Сommit
ff77191a48
2 измененных файлов с 9 добавлено и 2 удалено
  1. 9 1
      src/app.vue
  2. 0 1
      src/components/RTC/Trtccom.vue

+ 9 - 1
src/app.vue

@@ -315,7 +315,15 @@ onMounted(async () => {
               data: tag,
             });
           } else if (tag.type == "applet_link") {
-            browser.openLink(tag.hotContent.liveLink);
+            try {
+              document.querySelector(`[data-tag-id="${tag.sid}"] .tag-icon`).style.display = "none";
+              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") {
             let sceneFirstView = tag.hotContent.sceneFirstView;
             window.location.href = jumpNewScene(sceneFirstView);

+ 0 - 1
src/components/RTC/Trtccom.vue

@@ -80,7 +80,6 @@ watch(
 );
 
 TRTC.checkSystemRequirements().then((checkResult) => {
-  console.log(checkResult.result, "checkResult.result");
   if (!checkResult.result) {
     Dialog.toast({ content: `您的設備不支持音視頻通訊`, type: "error" });
   } else {