From d6200736ba2bd28207d7d3a0a87940a1b4fb59bf Mon Sep 17 00:00:00 2001 From: mullins <476823686@qq.com> Date: Tue, 9 Jun 2020 22:55:07 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E9=99=86=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/user/user.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/pages/user/user.vue b/src/pages/user/user.vue index 13ffa64..461280c 100644 --- a/src/pages/user/user.vue +++ b/src/pages/user/user.vue @@ -274,21 +274,22 @@ export default { this.scrollTop = scrollTop }, onLoad() { + const that = this // 判断是否授权 uni.getSetting({ success(res) { console.log('authSetting', res.authSetting) if (res.authSetting['scope.userInfo'] === true) { - this.isAuth = true + that.isAuth = true } else { - this.isAuth = false + that.isAuth = false } }, }) store.dispatch('userRecommand/getRecommandList', { - uid: this.$store.state.user.userInfo.uid, - openid: this.$store.state.user.userInfo.openid, - page: this.pagesnum, + uid: that.$store.state.user.userInfo.uid, + openid: that.$store.state.user.userInfo.openid, + page: that.pagesnum, }) }, onReachBottom() { -- 2.0.0