Browse Source

更新链接跳转方式

tremble 3 years ago
parent
commit
78fbf956d6
1 changed files with 5 additions and 4 deletions
  1. 5 4
      src/app.vue

+ 5 - 4
src/app.vue

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