diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/pages/login/weixin.vue b/src/main/resources/static/linfeng-community-uniapp-ky/pages/login/weixin.vue index 0a06c41..5f756a3 100644 --- a/src/main/resources/static/linfeng-community-uniapp-ky/pages/login/weixin.vue +++ b/src/main/resources/static/linfeng-community-uniapp-ky/pages/login/weixin.vue @@ -30,7 +30,7 @@ }, getSysInfo() { this.$H.get("system/miniConfig").then(res => { - if(res.code==0){ + if (res.code == 0) { this.logo = res.logo; } }) @@ -39,14 +39,13 @@ async login() { uni.showLoading({ mask: true, - title: '正在登陆' + title: '正在登录中' }); var that = this; let code = await this.getLoginCode(); that.$H.post('user/miniWxlogin', { code: code }).then(res => { - if (res.code === 0) { uni.setStorageSync("hasLogin", true); uni.setStorageSync("token", res.token); @@ -57,12 +56,7 @@ } uni.hideLoading(); }) - - - }, - - getUserInfo() { this.$H.get("user/userInfo").then(res => { uni.setStorageSync("userInfo", res.result) @@ -111,4 +105,4 @@ margin-top: 30rpx; text-align: center; } - + \ No newline at end of file