ソースを参照

申诉成功跳转首页

XWookey 8 ヶ月 前
コミット
f6bd972b0c
1 ファイル変更5 行追加3 行削除
  1. 5 3
      pages/charging/charging.js

+ 5 - 3
pages/charging/charging.js

@@ -525,9 +525,11 @@ Page({
                         showCancel: false,
                         success: function (res1) {
                             if (res1.confirm) {
-                                wx.switchTab({
-                                    url: '/pages/index/index'
-                                })
+                                let url = `/pages/index/index`;
+                                wx.reLaunch({
+                                  url
+                                });
+                            
                             }
                         }
                     })