From 2932c0ef3960008be0b44134d823ecfec5199faa Mon Sep 17 00:00:00 2001 From: meo <18801474720@163.com> Date: Wed, 11 Sep 2019 17:06:58 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=88=91=E7=9A=84][=E4=BF=AE=E6=94=B9]:[?= =?UTF-8?q?=E6=88=91=E7=9A=84=E6=89=8B=E6=9C=BA=E5=8F=B7=E7=9A=84=E4=BF=AE?= =?UTF-8?q?=E6=94=B9]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index/user.js | 8 ++++---- index/user.wxml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/index/user.js b/index/user.js index 5bfe8f1..d8f4700 100644 --- a/index/user.js +++ b/index/user.js @@ -50,6 +50,9 @@ Page({ url: config.api.checkPhoneStatus, data: {} }).then(res => { + wx.navigateTo({ + url: '/pages/edit/edit', + }) }).catch(err => { wx.navigateTo({ url: `/pages/getphoneInfo/index?mineFlag=mine`, @@ -76,9 +79,7 @@ Page({ } }, gotoedit: function() { - wx.navigateTo({ - url: '/pages/edit/edit', - }) + this.checkUserStatus(); }, onLoad() { this.getLocation(); @@ -145,7 +146,6 @@ Page({ } } - that.checkUserStatus(); that.setData({ appVersion: extConfig.appVersion, }) diff --git a/index/user.wxml b/index/user.wxml index ea62a71..fe1bbec 100644 --- a/index/user.wxml +++ b/index/user.wxml @@ -2,7 +2,7 @@ - +