|
@ -92,12 +92,23 @@ |
|
|
}, |
|
|
}, |
|
|
onShow() {}, |
|
|
onShow() {}, |
|
|
onLoad() { |
|
|
onLoad() { |
|
|
this.userInfoForm.phone = this.userInfo.phone || '' |
|
|
|
|
|
this.userInfoForm.nickName = this.userInfo.nickName || '' |
|
|
|
|
|
this.userInfoForm.headImage = this.userInfo.headImage || '' |
|
|
|
|
|
|
|
|
// this.userInfoForm.phone = this.userInfo.phone || '' |
|
|
|
|
|
// this.userInfoForm.nickName = this.userInfo.nickName || '' |
|
|
|
|
|
// this.userInfoForm.headImage = this.userInfo.headImage || '' |
|
|
|
|
|
this.getUserInfo() |
|
|
}, |
|
|
}, |
|
|
computed: {}, |
|
|
computed: {}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
getUserInfo(){ |
|
|
|
|
|
this.$api('getInfo', res => { |
|
|
|
|
|
if(res.code == 200){ |
|
|
|
|
|
this.userInfoForm.phone = res.result.phone || '' |
|
|
|
|
|
this.userInfoForm.nickName = res.result.nickName || '' |
|
|
|
|
|
this.userInfoForm.headImage = res.result.headImage || '' |
|
|
|
|
|
this.userInfoForm.sex = res.result.sex || '' |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
onChooseAvatar(res) { |
|
|
onChooseAvatar(res) { |
|
|
let self = this |
|
|
let self = this |
|
|
self.$Oss.ossUpload(res.target.avatarUrl) |
|
|
self.$Oss.ossUpload(res.target.avatarUrl) |
|
@ -212,21 +223,19 @@ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.btn { |
|
|
.btn { |
|
|
// background: $uni--bg-color-btn; |
|
|
|
|
|
background: #05C160; |
|
|
|
|
|
|
|
|
background: $uni--bg-color-btn; |
|
|
color: #fff; |
|
|
color: #fff; |
|
|
width: 80%; |
|
|
width: 80%; |
|
|
padding: 20rpx 0; |
|
|
padding: 20rpx 0; |
|
|
text-align: center; |
|
|
text-align: center; |
|
|
border-radius: 45rpx; |
|
|
|
|
|
|
|
|
border-radius: 15rpx; |
|
|
margin-top: 10vh; |
|
|
margin-top: 10vh; |
|
|
} |
|
|
} |
|
|
.getPhoneNumber{ |
|
|
.getPhoneNumber{ |
|
|
display: flex; |
|
|
display: flex; |
|
|
justify-content: center; |
|
|
justify-content: center; |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
// background: $uni--bg-color-btn; |
|
|
|
|
|
background: #05C160; |
|
|
|
|
|
|
|
|
background: $uni--bg-color-btn; |
|
|
color: #fff; |
|
|
color: #fff; |
|
|
width: 220rpx; |
|
|
width: 220rpx; |
|
|
height: 60rpx; |
|
|
height: 60rpx; |
|
|