同步签名

This commit is contained in:
张凯 2025-06-13 16:04:31 +08:00
parent 8369dd8188
commit 72df74744a

View File

@ -173,7 +173,7 @@
// //
niName: '', niName: '',
// //
signature: '带着热爱,在搭子圈里撒野~', signature: '',
realname: '', realname: '',
gender: '', gender: '',
// ages: '', // ages: '',
@ -256,7 +256,7 @@
this.niName = userInfo.nickname this.niName = userInfo.nickname
this.realname = userInfo.username this.realname = userInfo.username
this.avatar = userInfo.avatar this.avatar = userInfo.avatar
this.signature = userInfo.bio != '' ? userInfo.bio : '带着热爱,在搭子圈里撒野~' this.signature = userInfo.bio
this.getSfInfo(); this.getSfInfo();
this.getBankList(); this.getBankList();
this.getDetail(); this.getDetail();
@ -363,6 +363,9 @@
this.niName = userinfo.nickname this.niName = userinfo.nickname
uni.setStorageSync('niName', this.niName) uni.setStorageSync('niName', this.niName)
} }
if (userinfo.bio !== null) {
this.signature = userinfo.bio
}
// if (userinfo.gender !== null) { // if (userinfo.gender !== null) {
// this.gender = userinfo.gender == '1' ? '' : '' // this.gender = userinfo.gender == '1' ? '' : ''
// } // }