Commit d1351679 authored by 符伟's avatar 符伟

跳转test

parent 85fd766a
...@@ -168,6 +168,7 @@ ...@@ -168,6 +168,7 @@
var gHost = "https://" + window.location.host; var gHost = "https://" + window.location.host;
if (window.location.protocol != "https:") { if (window.location.protocol != "https:") {
gHost = "https://fpdev.xiaopay.net"; gHost = "https://fpdev.xiaopay.net";
// gHost = "/api";
} }
let times = 0; let times = 0;
var limitClick = false; //禁止重复点击 var limitClick = false; //禁止重复点击
...@@ -515,11 +516,11 @@ ...@@ -515,11 +516,11 @@
BackToMini(page) { BackToMini(page) {
if (page == 'UserMain' || page == 'personalCenter') { if (page == 'UserMain' || page == 'personalCenter') {
wx.miniProgram.switchTab({ wx.miniProgram.switchTab({
url: `/pages/${page}/main`, url: '/pages/'+page+'/main',
}); });
} else { } else {
wx.miniProgram.redirectTo({ wx.miniProgram.redirectTo({
url: `/pages/${page}/main`, url: '/pages/'+page+'/main',
}); });
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment