Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
wangliang_wd
2024-05-07 17:43:02 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5e122b23bf991f74437e45c14964bf5156430b92
5e122b23
1 parent
dd6133f4
feat:优化编辑资料,兴趣选择
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
12 deletions
sight_harmony/features/wdComponent/src/main/ets/components/page/EditUserInfoPage.ets
sight_harmony/products/phone/src/main/ets/pages/launchPage/LaunchInterestsHobbiesPage.ets
sight_harmony/features/wdComponent/src/main/ets/components/page/EditUserInfoPage.ets
View file @
5e122b2
...
...
@@ -43,17 +43,34 @@ struct EditUserInfoPage {
Row() {
Column() {
CustomTitleUI({titleName:'编辑资料'})
Image(this.headerImg)
.alt($r('app.media.default_head'))
.backgroundColor(Color.Gray)
.width(100)
.height(100)
.borderRadius(50)
.margin({top:20,bottom:-10})
Stack(){
Image(this.headerImg)
.alt($r('app.media.default_head'))
.backgroundColor(Color.Gray)
.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(1
8
)
.fontSize(1
5
)
.backgroundColor(Color.White)
.margin(20)
...
...
@@ -79,14 +96,14 @@ struct EditUserInfoPage {
Column(){
Row(){
Text(r.title)
.fontSize(1
8
)
.fontSize(1
5
)
.fontColor(Color.Gray)
Blank()
Text(r.subTitle)
.textOverflow({overflow:TextOverflow.Ellipsis})
.maxLines(1)
.fontSize(1
6
)
.fontSize(1
4
)
.fontColor(Color.Gray)
.padding({right:10})
.width('70%')
...
...
sight_harmony/products/phone/src/main/ets/pages/launchPage/LaunchInterestsHobbiesPage.ets
View file @
5e122b2
...
...
@@ -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
}
...
...
Please
register
or
login
to post a comment