瀏覽代碼

修改usenow路由跳转

zzf 2 年之前
父節點
當前提交
485717e317
共有 1 個文件被更改,包括 8 次插入4 次删除
  1. 8 4
      src/view/Home/Home.vue

+ 8 - 4
src/view/Home/Home.vue

@@ -267,10 +267,14 @@ function rotatingEnd(){
 
 function wheelResBtn() {
     if(raffleResult.prize.title === 'Coupon') {
-        window.scrollTo({
-            top: pickedSection.value.getBoundingClientRect().top,
-            behavior: "smooth"
-        });
+        // window.scrollTo({
+        //     top: pickedSection.value.getBoundingClientRect().top,
+        //     behavior: "smooth"
+        // });
+        bridge.call('goto_popHomeVC',{});
+    }
+    if(raffleResult.prize.title === 'Points') {
+        bridge.call('goto_pushPointRedeemHairC',{});
     }
     closePpoup();
 }