update login/weixin.vue desc
This commit is contained in:
parent
d5bfde238e
commit
69ca66b91f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user