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-07-01 16:44:45 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
46296f77e44202cfff4c6ef2899b9f21397988be
46296f77
1 parent
13c8dcfa
feat:优化我主页和评论列表头像展示
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
sight_harmony/features/wdComponent/src/main/ets/components/mine/MinePageUserSimpleInfoUI.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/ChildCommentComponent.ets
sight_harmony/features/wdComponent/src/main/ets/pages/MineHomePage.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/MinePageUserSimpleInfoUI.ets
View file @
46296f7
...
...
@@ -206,6 +206,8 @@ export default struct MinePageUserSimpleInfoUI {
if(StringUtils.isNotEmpty(this.levelHead)){
UserDataLocal.setUserLevelHeaderUrl(this.levelHead + "")
}else {
UserDataLocal.setUserLevelHeaderUrl("")
}
}
}).catch((err:Error)=>{
...
...
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/ChildCommentComponent.ets
View file @
46296f7
...
...
@@ -21,7 +21,7 @@ export struct ChildCommentComponent {
Column() {
Row() {
Stack({ alignContent: Alignment.Center }) {
Image(this.data.fromUserHeader)
Image(this.data.fromUserHeader
&&this.data.fromUserHeader.length>0?this.data.fromUserHeader:(this.data.fromUserType === 1?$r('app.media.default_head_userPage'):$r('app.media.AccountOwner_DefaultIcon'))
)
.alt($r('app.media.default_head'))
.objectFit(ImageFit.Auto)
.width('69lpx')
...
...
sight_harmony/features/wdComponent/src/main/ets/pages/MineHomePage.ets
View file @
46296f7
...
...
@@ -24,7 +24,7 @@ struct MineHomePage {
@State userName:string = ""
@State headPhotoUrl:string = ""
@State levelHead:string = ""
userType:string = "1"
@State
userType:string = "1"
@State levelId:number = 0
@State desc:string = "点击添加简介,让大家认识你" //text 搞两个样式,如果三行,就显示 另外一个text 没有显示高度的
@State isHasIntroduction: boolean = false
...
...
@@ -101,7 +101,7 @@ struct MineHomePage {
//用户信息区域
Row() {
Stack(){
Image(this.headPhotoUrl
?this.headPhotoUrl:this.userType === "1"?$r('app.media.default_head_userPage'):$r('app.media.AccountOwner_DefaultIcon'
))
Image(this.headPhotoUrl
&&this.headPhotoUrl.length>0?this.headPhotoUrl:(this.userType === "1"?$r('app.media.default_head_userPage'):$r('app.media.AccountOwner_DefaultIcon')
))
.alt($r('app.media.default_head'))
.width('115lpx')
.height('115lpx')
...
...
Please
register
or
login
to post a comment