From 7a7b800b618e26460b6ca899223aa5c6f97f00df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=B7=E6=B4=8B=E4=B9=8B=E5=A3=B0?= Date: Sat, 3 Nov 2018 17:34:05 +0800 Subject: [PATCH] =?UTF-8?q?=E7=82=B9=E5=87=BB=E8=BF=9B=E5=85=A5=E6=B8=B8?= =?UTF-8?q?=E6=88=8F=E6=9D=83=E9=99=90=E6=A0=A1=E9=AA=8C=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.js | 2 +- pages/phoneinput/phoneinput.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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, })