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
wangyong_wd
2024-03-29 15:51:53 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
61eac4b683309c80a17c9699867a1d211999ff20
61eac4b6
1 parent
ba307da6
专题类型跳转
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
5 deletions
sight_harmony/features/wdComponent/src/main/ets/components/view/CompStyle_09.ets
sight_harmony/features/wdComponent/src/main/ets/constants/ContentConstants.ets
sight_harmony/features/wdComponent/src/main/ets/utils/ProcessUtils.ets
sight_harmony/features/wdComponent/src/main/ets/components/view/CompStyle_09.ets
View file @
61eac4b
import { CompDTO, slideShows } from 'wdBean';
import { CommonConstants } from 'wdConstant'
import { DateTimeUtils } from 'wdKit';
import { ProcessUtils } from '../../utils/ProcessUtils';
/**
* 时间链卡--CompStyle: 09
*/
...
...
@@ -47,10 +47,6 @@ export struct CompStyle_09 {
.borderRadius(3)
.justifyContent(FlexAlign.Center)
.margin({top: 5})
.onClick(() => {
// TODO
console.log('跳转到查看更多的页面')
})
}
}
.width(CommonConstants.FULL_WIDTH)
...
...
@@ -62,6 +58,9 @@ export struct CompStyle_09 {
})
.backgroundColor($r("app.color.white"))
.margin({ bottom: 8 })
.onClick((event: ClickEvent) => {
ProcessUtils.processPage(this.compDTO?.operDataList[0])
})
}
@Builder timelineItem (item:slideShows, index:number) {
...
...
sight_harmony/features/wdComponent/src/main/ets/constants/ContentConstants.ets
View file @
61eac4b
...
...
@@ -9,6 +9,10 @@ export class ContentConstants {
*/
static readonly TYPE_VOD: string = "1";
/**
* 5:专题详情
*/
static readonly TYPE_SPECIAL_TOPIC: string = "5";
/**
* 8:图文详情,这里是h5页面
*/
static readonly TYPE_TELETEXT: string = "8";
...
...
sight_harmony/features/wdComponent/src/main/ets/utils/ProcessUtils.ets
View file @
61eac4b
...
...
@@ -39,6 +39,10 @@ export class ProcessUtils {
// 图文详情,跳转h5
ProcessUtils.gotoWeb(content);
break;
case ContentConstants.TYPE_SPECIAL_TOPIC:
// 专题详情,跳转h5
// ProcessUtils.gotoWeb(content);
break;
default:
break;
}
...
...
Please
register
or
login
to post a comment