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-03 15:45:44 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f1fafe454725aba98464e263fa8376bced40e9d1
f1fafe45
1 parent
ac45d29b
feat:优化主页动态
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
3 deletions
sight_harmony/features/wdComponent/src/main/ets/components/CarderInteraction.ets
sight_harmony/products/phone/src/main/ets/pages/view/MultiPictureDetailPageComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/CarderInteraction.ets
View file @
f1fafe4
...
...
@@ -61,9 +61,10 @@ export struct CarderInteraction {
}
if(this.contentDetailData?.openComment == 1 || router.getState().name === 'PeopleShipHomePage'){
this.commentLayout()
if (this.buildDisplayComment())
this.commentLayout()
}
this.builderLike()
if(this.buildDisplayLike()) this.builderLike()
}
.width('100%')
.margin({ top: 11 })
...
...
@@ -121,5 +122,36 @@ export struct CarderInteraction {
console.log('请求失败', JSON.stringify(exception))
}
}
///是否展示评论
buildDisplayComment(): boolean {
let isDisplay = false
if (this.contentDTO.rmhInfo) {
if (this.contentDTO.rmhInfo.cnIsComment === 1 && this.contentDTO.openComment === 1) {
isDisplay = true
}
}else {
if (this.contentDTO.openComment === 1) {
isDisplay = true
}
}
return isDisplay
}
///是否展示点赞
buildDisplayLike(): boolean {
let isDisplay = false
if (this.contentDTO.rmhInfo) {
if (this.contentDTO.rmhInfo.cnIsLike === 1 && this.contentDTO.openLikes === 1) {
isDisplay = true
}
}else {
if (this.contentDTO.openLikes === 1) {
isDisplay = true
}
}
return isDisplay
}
}
...
...
sight_harmony/products/phone/src/main/ets/pages/view/MultiPictureDetailPageComponent.ets
View file @
f1fafe4
...
...
@@ -46,7 +46,7 @@ export struct MultiPictureDetailPageComponent {
private swiperController: SwiperController = new SwiperController()
private swiperControllerItem: SwiperController = new SwiperController()
@State swiperIndex: number = 0;
@Provide followStatus: string | undefined =
undefined
// 关注状态
@Provide followStatus: string | undefined =
'0'
// 关注状态
@Provide showCommentList: boolean = false
private scroller: Scroller = new Scroller()
private listScroller: ListScroller = new ListScroller()
...
...
Please
register
or
login
to post a comment