update login/weixin.vue desc
This commit is contained in:
parent
d5bfde238e
commit
69ca66b91f
@ -30,7 +30,7 @@
|
|||||||
},
|
},
|
||||||
getSysInfo() {
|
getSysInfo() {
|
||||||
this.$H.get("system/miniConfig").then(res => {
|
this.$H.get("system/miniConfig").then(res => {
|
||||||
if(res.code==0){
|
if (res.code == 0) {
|
||||||
this.logo = res.logo;
|
this.logo = res.logo;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -39,14 +39,13 @@
|
|||||||
async login() {
|
async login() {
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
mask: true,
|
mask: true,
|
||||||
title: '正在登陆'
|
title: '正在登录中'
|
||||||
});
|
});
|
||||||
var that = this;
|
var that = this;
|
||||||
let code = await this.getLoginCode();
|
let code = await this.getLoginCode();
|
||||||
that.$H.post('user/miniWxlogin', {
|
that.$H.post('user/miniWxlogin', {
|
||||||
code: code
|
code: code
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
|
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
uni.setStorageSync("hasLogin", true);
|
uni.setStorageSync("hasLogin", true);
|
||||||
uni.setStorageSync("token", res.token);
|
uni.setStorageSync("token", res.token);
|
||||||
@ -57,12 +56,7 @@
|
|||||||
}
|
}
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
getUserInfo() {
|
getUserInfo() {
|
||||||
this.$H.get("user/userInfo").then(res => {
|
this.$H.get("user/userInfo").then(res => {
|
||||||
uni.setStorageSync("userInfo", res.result)
|
uni.setStorageSync("userInfo", res.result)
|
||||||
@ -111,4 +105,4 @@
|
|||||||
margin-top: 30rpx;
|
margin-top: 30rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
Loading…
Reference in New Issue
Block a user