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
陈剑华
2024-06-14 17:20:15 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
cf735c6e8bda876c4cb9c94d1284605cbbfe1db4
cf735c6e
1 parent
8b1f6750
fix: 16764 收藏列表-稿件封面图未展示,专题样式展示错误。
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletions
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card9Component.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card9Component.ets
View file @
cf735c6
...
...
@@ -27,11 +27,19 @@ export struct Card9Component {
@State textArr: textItem[] = []
pageShowTime:number = 0;
pageHideTime:number = 0;
@State hideDetail: boolean = false;
onPageShow() {
this.pageShowTime = DateTimeUtils.getTimeStamp()
}
initHideDetail() {
const curRouter = router.getState().name;
if (curRouter === 'MyCollectionListPage') {
this.hideDetail = true;
}
}
//内容浏览Tracking
onPageHide(): void {
this.pageHideTime = DateTimeUtils.getTimeStamp()
...
...
@@ -46,6 +54,7 @@ export struct Card9Component {
// this.loadImg = await onlyWifiLoadImg();
const curRouter = router.getState().name;
this.clicked = hasClicked(this.contentDTO.objectId, curRouter)
this.initHideDetail();
}
titleInit() {
...
...
@@ -108,14 +117,16 @@ export struct Card9Component {
}.alignContent(Alignment.BottomStart)
// 时间线--后端返回三个,
if (!this.hideDetail) {
Column() {
ForEach(this.contentDTO.slideShows, (item: slideShows, index: number) => {
this.timelineItem(item, index, index === this.contentDTO.slideShows.length - 1)
})
}
}
// 底部-查看更多。根据接口返回的isMore判断是否显示查看更多
if (this.contentDTO.hasMore == 1) {
if (this.contentDTO.hasMore == 1
&& !this.hideDetail
) {
Row() {
Text("查看更多")
.fontSize($r("app.float.font_size_14"))
...
...
Please
register
or
login
to post a comment