wangliang_wd

feat:优化编辑资料,兴趣选择

... ... @@ -43,17 +43,34 @@ struct EditUserInfoPage {
Row() {
Column() {
CustomTitleUI({titleName:'编辑资料'})
Stack(){
Image(this.headerImg)
.alt($r('app.media.default_head'))
.backgroundColor(Color.Gray)
.width(100)
.height(100)
.borderRadius(50)
.margin({top:20,bottom:-10})
.width(84)
.height(84)
.borderRadius(42)
if (this.headerImg.length === 0){
Image('')
.width('84')
.height('84')
.backgroundColor(Color.Gray)
.opacity(0.7)
.borderRadius(5)
.borderRadius(42)
Image($r('app.media.seletct_photo'))
.width('30')
.height('30')
}
}.margin({top:20,bottom:-10})
Button('点击更换头像')
.fontColor(Color.Gray)
.fontSize(18)
.fontSize(15)
.backgroundColor(Color.White)
.margin(20)
... ... @@ -79,14 +96,14 @@ struct EditUserInfoPage {
Column(){
Row(){
Text(r.title)
.fontSize(18)
.fontSize(15)
.fontColor(Color.Gray)
Blank()
Text(r.subTitle)
.textOverflow({overflow:TextOverflow.Ellipsis})
.maxLines(1)
.fontSize(16)
.fontSize(14)
.fontColor(Color.Gray)
.padding({right:10})
.width('70%')
... ...
... ... @@ -68,7 +68,7 @@ struct LaunchInterestsHobbiesPage {
Stack(){
Column({}){
Text(item.name)
.fontSize('35lpx')
.fontSize(18)
.fontColor('#FFFFFF')
.margin({top:'21lpx',left:'19lpx'})
.width('100%')
... ... @@ -140,7 +140,7 @@ struct LaunchInterestsHobbiesPage {
promptAction.showToast({
message : '请先选择您感兴趣的内容哦',
duration: 2000,
bottom: 50
bottom: '50%'
})
return
}
... ...