From 71444f6a5919c7d538c629c9a6430760ef9389d2 Mon Sep 17 00:00:00 2001 From: meo <18801474720@163.com> Date: Mon, 9 Sep 2019 16:23:12 +0800 Subject: [PATCH] =?UTF-8?q?[=E7=A7=AF=E5=88=86=E5=95=86=E5=9F=8E][?= =?UTF-8?q?=E4=BF=AE=E6=94=B9]:[=E6=95=B4=E7=90=86=E4=BB=A3=E7=A0=81]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index/user.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index/user.js b/index/user.js index 46ea032..6b5b03c 100644 --- a/index/user.js +++ b/index/user.js @@ -127,20 +127,20 @@ Page({ * 生命周期函数--监听页面显示 */ onShow: function() { - if (typeof this.getTabBar === 'function' && - this.getTabBar()) { + let that = this; + if (typeof that.getTabBar === 'function' && + that.getTabBar()) { if (ifStoreApp==1){ - this.getTabBar().setData({ + that.getTabBar().setData({ selected: 1 }) }else{ - this.getTabBar().setData({ + that.getTabBar().setData({ selected: 3 }) } } - let that = this; that.checkUserStatus(); that.setData({ appVersion: extConfig.appVersion,