This commit is contained in:
hot777zz
2023-11-15 23:20:09 +08:00
9 changed files with 201 additions and 167 deletions

View File

@@ -58,10 +58,6 @@
console.log('res.da',res);
// console.log('登录code换取的信息', data);
uni.setStorageSync('loginToken', data.token);
uni.setStorageSync('avatar', data.avatar);
uni.setStorageSync('nickname', data.nickname);
uni.setStorageSync('account', data.sn);
uni.setStorageSync('mobile', data.mobile);
that.$toast.success('登录成功')
that.$emit('success')
//登录完成后使用手机code换取手机号,调用/user/getMobileByMnp接口

View File

@@ -54,9 +54,6 @@
return
}
this.isLoad = true
this.src = uni.getStorageSync('avatar')
this.username = uni.getStorageSync('nickname')
this.account = uni.getStorageSync('account')
},
methods: {
reOnLoad() {