Merge pull request '邓洁 : 修改细节' (#47) from dj into master
Reviewed-on: http://git.feashow.cn/odjbin/city-store-transfer/pulls/47
This commit is contained in:
@@ -58,10 +58,6 @@
|
|||||||
console.log('res.da',res);
|
console.log('res.da',res);
|
||||||
// console.log('登录code换取的信息', data);
|
// console.log('登录code换取的信息', data);
|
||||||
uni.setStorageSync('loginToken', data.token);
|
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.$toast.success('登录成功')
|
||||||
that.$emit('success')
|
that.$emit('success')
|
||||||
//登录完成后使用手机code换取手机号,调用/user/getMobileByMnp接口
|
//登录完成后使用手机code换取手机号,调用/user/getMobileByMnp接口
|
||||||
|
|||||||
@@ -53,9 +53,6 @@
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.isLoad = true
|
this.isLoad = true
|
||||||
this.src = uni.getStorageSync('avatar')
|
|
||||||
this.username = uni.getStorageSync('nickname')
|
|
||||||
this.account = uni.getStorageSync('account')
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
reOnLoad() {
|
reOnLoad() {
|
||||||
|
|||||||
Reference in New Issue
Block a user