This commit is contained in:
王创世 2025-06-13 16:01:26 +08:00
parent fe58685645
commit 8369dd8188

View File

@ -242,21 +242,21 @@
}
},
onLoad(options) {
debugger
if (options) {
this.typeop = options.type;
}
const userInfo = uni.getStorageSync('userInfo')
this.phoneNumber = userInfo.mobile
this.niName = userInfo.nickname
this.realname = userInfo.username
this.avatar = userInfo.avatar
this.signature = userInfo.bio != '' ? userInfo.bio : '带着热爱,在搭子圈里撒野~'
// this.$refs.datetimePicker.setFormatter(this.formatter)
// this.handelData()
// this.getDetail()
},
onShow() {
const userInfo = uni.getStorageSync('userInfo')
this.phoneNumber = userInfo.mobile
this.niName = userInfo.nickname
this.realname = userInfo.username
this.avatar = userInfo.avatar
this.signature = userInfo.bio != '' ? userInfo.bio : '带着热爱,在搭子圈里撒野~'
this.getSfInfo();
this.getBankList();
this.getDetail();
@ -275,10 +275,9 @@
url: '/packageB/card/index'
})
},
toName(e){
debugger;
toName(e) {
uni.navigateTo({
url: '/packageB/names/index?type='+ e
url: '/packageB/names/index?type=' + e
})
},
getSfInfo() {
@ -308,7 +307,7 @@
// realname: this.realname,
// gender: this.gender == '' ? '1' : '0',
update_fields: [
'nickname',
'nickname',
// 'birthday',
// 'realname',
// 'gender',
@ -432,7 +431,7 @@
'user': 'test'
},
success: (res) => {
let group = JSON.parse(res.data)
let group = JSON.parse(res.data)
that.upAvatar = group.data.url
that.avatar = group.data.fullurl
console.log(group.data)