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-09-29 16:38:39 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e12f6d22f8059178ea7d8018499062e39f907eb3
e12f6d22
1 parent
1a79ccc4
feat:优化电子报图片展示,优化我的评论头像展示
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
4 deletions
sight_harmony/features/wdComponent/src/main/ets/components/ENewspaperItemComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/HomePageBottomCommentComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/HomePageBottomFollowComponent.ets
sight_harmony/features/wdComponent/src/main/ets/pages/MineHomePage.ets
sight_harmony/features/wdComponent/src/main/ets/components/ENewspaperItemComponent.ets
View file @
e12f6d2
...
...
@@ -48,7 +48,7 @@ export struct ENewspaperItemComponent {
this.isShowSkeleton = false
})
.objectFit(ImageFit.
Contain
)
.objectFit(ImageFit.
Fill
)
.zIndex(10)
newsSkeleton({showBottom: this.isShowSkeleton})
...
...
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/HomePageBottomCommentComponent.ets
View file @
e12f6d2
...
...
@@ -24,6 +24,7 @@ export struct HomePageBottomCommentComponent {
@State hasMore: boolean = true
curPageNum: number = 1;
@State count: number = 0;
@Prop userLevelHead:string
@Link commentNum: number
@State isGetRequest: boolean = false
private scroller: Scroller = new Scroller();
...
...
@@ -86,7 +87,7 @@ export struct HomePageBottomCommentComponent {
ListItem() {
ChildCommentComponent({
data: item,
levelHead:
UserDataLocal.getUserLevelHeaderUrl()
,
levelHead:
this.userLevelHead
,
isLastItem: index === this.data_comment.totalCount() - 1
})
}
...
...
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/HomePageBottomFollowComponent.ets
View file @
e12f6d2
...
...
@@ -179,7 +179,7 @@ export struct HomePageBottomFollowComponent {
if (!this.hasMore) {
ListItem() {
///ToDo 数据过少时,达不到滑动条件 后续优化
ListHasNoMoreDataUI().height(this.bottomCompH >
150 ? this.bottomCompH :15
0)
ListHasNoMoreDataUI().height(this.bottomCompH >
40 ? this.bottomCompH :4
0)
}
}
}
...
...
sight_harmony/features/wdComponent/src/main/ets/pages/MineHomePage.ets
View file @
e12f6d2
...
...
@@ -24,6 +24,7 @@ struct MineHomePage {
@State userName:string = ""
@State headPhotoUrl:string = ""
@State levelHead:string = ""
@State userLevelHead:string = ""
@State userType:string = "1"
@State levelId:number = 0
@State desc:string = "点击添加简介,让大家认识你" //text 搞两个样式,如果三行,就显示 另外一个text 没有显示高度的
...
...
@@ -264,7 +265,7 @@ struct MineHomePage {
Stack({ alignContent: Alignment.Top }){
Tabs({controller: this.controller}) {
TabContent() {
HomePageBottomCommentComponent({commentNum:$commentNum})
HomePageBottomCommentComponent({commentNum:$commentNum
,userLevelHead:this.userLevelHead
})
}.gesture(PanGesture(new PanGestureOptions({ direction: PanDirection.Right })))
TabContent() {
HomePageBottomFollowComponent()
...
...
@@ -531,6 +532,7 @@ struct MineHomePage {
}
}
this.levelId = value.levelId
this.userLevelHead = value.levelHead
}
}).catch((err:Error)=>{
console.log(TAG,JSON.stringify(err))
...
...
Please
register
or
login
to post a comment