tremble 3 年之前
父節點
當前提交
3dd2b5e280
共有 1 個文件被更改,包括 9 次插入8 次删除
  1. 9 8
      src/app.vue

+ 9 - 8
src/app.vue

@@ -286,14 +286,15 @@ onMounted(async () => {
         // 聚焦當前點擊的熱點
         view.focus(tag.sid).then(() => {
           if (tag.type == "coupon") {
-            
-            let hotcontent = JSON.parse(tag.hotContent);
-            browser.openLink(
-              "/subPackage/pages/activity/activity?pageId=" + hotcontent.couponLink,
-              `https://m.cdfmembers.com/shop/600667208/showactivity?pageId=${hotcontent.couponLink}`,
-              `/pages/showactivity/main?pageId=${hotcontent.couponLink}`
-            );
-            apis.burying_point({ type: 2 });
+            try {
+              let hotcontent = JSON.parse(tag.hotContent);
+              browser.openLink(
+                "/subPackage/pages/activity/activity?pageId=" + hotcontent.couponLink,
+                `https://m.cdfmembers.com/shop/600667208/showactivity?pageId=${hotcontent.couponLink}`,
+                `/pages/showactivity/main?pageId=${hotcontent.couponLink}`
+              );
+              apis.burying_point({ type: 2 });
+            } catch (error) {}
           } else if (tag.type == "waterfall") {
             store.commit("tag/setTagClickType", {
               type: "waterfall",