瀏覽代碼

修复bug

calm 1 周之前
父節點
當前提交
fd6f641212
共有 2 個文件被更改,包括 10 次插入4 次删除
  1. 5 2
      pages/goods_details/index.vue
  2. 5 2
      pages/group_buying/index.vue

+ 5 - 2
pages/goods_details/index.vue

@@ -360,8 +360,11 @@ const showProductPopup = ref(false); // 商品规格弹窗
 const showCouponPopup = ref(false); // 优惠券弹窗
 const handleBtnTpe = ref(""); // "buy" or "cart"
 const goShuiBei = () => {
-  let url = `shuibei://`;
-  let errUrl = "https://a.app.qq.com/o/simple.jsp?pkgname=uni.app.UNI9DE338F";
+  const path = articleId.value
+    ? `/pages/goods_details/index?articleId=${articleId.value}`
+    : "";
+  const url = `shuibei://${path}`;
+  const errUrl = "https://a.app.qq.com/o/simple.jsp?pkgname=uni.app.UNI9DE338F";
   window.location.href = url;
   setTimeout(() => {
     window.location.href = errUrl;

+ 5 - 2
pages/group_buying/index.vue

@@ -243,8 +243,11 @@ const initwxlaunch = () => {
   );
 };
 const goShuiBei = () => {
-  let url = `shuibei://`;
-  let errUrl = "https://a.app.qq.com/o/simple.jsp?pkgname=uni.app.UNI9DE338F";
+  const path = combinationId.value
+    ? `/pages/group_buying/proDetail?combinationId=${combinationId.value}`
+    : "";
+  const url = `shuibei://${path}`;
+  const errUrl = "https://a.app.qq.com/o/simple.jsp?pkgname=uni.app.UNI9DE338F";
   window.location.href = url;
   setTimeout(() => {
     window.location.href = errUrl;