修改个人中心昵称授权相关

main
jinna 2 years ago
parent 7b0b3b3f4c
commit 32357f7155
  1. 6
      pages/pages_zhentou/myPage/myPage.vue

@ -63,6 +63,7 @@
let userInfo = uni.getStorageSync('userInfo'); let userInfo = uni.getStorageSync('userInfo');
if (userInfo) { if (userInfo) {
this.userInfo = JSON.parse(userInfo); this.userInfo = JSON.parse(userInfo);
console.log(userInfo)
this.userInfo.avatar = this.userInfo.avatar ? this.userInfo.avatar : this.avatarUrl; this.userInfo.avatar = this.userInfo.avatar ? this.userInfo.avatar : this.avatarUrl;
} else { } else {
this.userInfo.avatar = this.avatarUrl; this.userInfo.avatar = this.avatarUrl;
@ -71,10 +72,9 @@
methods: { methods: {
// //
formSubmit(e) { formSubmit(e) {
console.log(e.detail) // if(e.detail.value && e.detail.value != this.userInfo.username) {
if(e.detail.value && e.detail.value != this.userInfo.username) {
this.updateNickname(e.detail.value); this.updateNickname(e.detail.value);
} // }
}, },
// //
chooseavatar(e) { chooseavatar(e) {

Loading…
Cancel
Save