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