Browse Source

修改usenow路由跳转

zzf 2 years ago
parent
commit
485717e317
1 changed files with 8 additions and 4 deletions
  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();
 }