update login/weixin.vue desc

This commit is contained in:
linfeng 2023-08-02 10:21:31 +08:00
parent d5bfde238e
commit 69ca66b91f

View File

@ -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)