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) { onLoad(options) {
debugger
if (options) { if (options) {
this.typeop = options.type; 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.$refs.datetimePicker.setFormatter(this.formatter)
// this.handelData() // this.handelData()
// this.getDetail() // this.getDetail()
}, },
onShow() { 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.getSfInfo();
this.getBankList(); this.getBankList();
this.getDetail(); this.getDetail();
@ -275,10 +275,9 @@
url: '/packageB/card/index' url: '/packageB/card/index'
}) })
}, },
toName(e){ toName(e) {
debugger;
uni.navigateTo({ uni.navigateTo({
url: '/packageB/names/index?type='+ e url: '/packageB/names/index?type=' + e
}) })
}, },
getSfInfo() { getSfInfo() {
@ -308,7 +307,7 @@
// realname: this.realname, // realname: this.realname,
// gender: this.gender == '' ? '1' : '0', // gender: this.gender == '' ? '1' : '0',
update_fields: [ update_fields: [
'nickname', 'nickname',
// 'birthday', // 'birthday',
// 'realname', // 'realname',
// 'gender', // 'gender',
@ -432,7 +431,7 @@
'user': 'test' 'user': 'test'
}, },
success: (res) => { success: (res) => {
let group = JSON.parse(res.data) let group = JSON.parse(res.data)
that.upAvatar = group.data.url that.upAvatar = group.data.url
that.avatar = group.data.fullurl that.avatar = group.data.fullurl
console.log(group.data) console.log(group.data)