diff --git a/pages/index/index.js b/pages/index/index.js index 8e845bc..e74b610 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -59,7 +59,7 @@ Page({ } else if (err.code == 11006) { // 用户手机已加密 wx.redirectTo({ - url: "/pages/phoneinput/phoneinput?path=index" + url: "/pages/phoneinput/phoneinput?path=index&url=" + that.data.staticGamedata.url + "&id=" + that.data.staticGamedata.id + "&gameId=" + that.data.staticGamedata.gameId, }); } else { wx.showToast({ diff --git a/pages/phoneinput/phoneinput.js b/pages/phoneinput/phoneinput.js index 5ca2ef9..ab4b02e 100644 --- a/pages/phoneinput/phoneinput.js +++ b/pages/phoneinput/phoneinput.js @@ -47,7 +47,7 @@ Page({ } }) .then(res => { - if(that.path!=null){ + if (that.path != 'index'){ wx.redirectTo({ url: "/pages/game/index?url=" + that.data.paramData.url + "&id=" + that.data.paramData.id + "&gameId=" + that.data.paramData.gameId, })