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-04-23 17:28:26 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
20cd5150169ee8b6c39ad665090de787d40c481a
20cd5150
1 parent
ef8a6250
feat(动态):跳转
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
8 deletions
sight_harmony/commons/wdRouter/src/main/ets/utils/ProcessUtils.ets
sight_harmony/features/wdComponent/src/main/ets/components/DynamicDetailComponent.ets
sight_harmony/commons/wdRouter/src/main/ets/utils/ProcessUtils.ets
View file @
20cd515
import { Action, ContentDTO, Params } from 'wdBean';
import { Action, ContentDTO, Params
, PhotoListBean
} from 'wdBean';
import { ExtraDTO } from 'wdBean/src/main/ets/bean/component/extra/ExtraDTO';
import { Logger } from 'wdKit';
import { StringUtils } from 'wdKit/src/main/ets/utils/StringUtils';
...
...
@@ -91,20 +91,18 @@ export class ProcessUtils {
* 图集详情页
* @param content
* */
p
rivate static gotoAtlasDetailPage(content: ContentDTO
) {
p
ublic static gotoMultiPictureListPage(photoList: PhotoListBean[]
) {
let taskAction: Action = {
type: 'JUMP_DETAIL_PAGE',
params: {
detailPageType: 17,
contentID: content?.objectId,
detailPageType: 18,
extra: {
relType: content?.relType,
relId: content?.relId,
photoList
} as ExtraDTO
} as Params,
};
WDRouterRule.jumpWithAction(taskAction)
Logger.debug(TAG, `goto
AtlasDetailPage, ${content.objectId}
`);
Logger.debug(TAG, `goto
MultiPictureListPage
`);
}
private static gotoSpecialTopic(content: ContentDTO) {
...
...
@@ -194,4 +192,24 @@ export class ProcessUtils {
WDRouterRule.jumpWithAction(taskAction)
Logger.debug(TAG, `gotoAudio, ${content.objectId}`);
}
/**
* 图片预览页
* @param content
* */
private static gotoAtlasDetailPage(content: ContentDTO) {
let taskAction: Action = {
type: 'JUMP_DETAIL_PAGE',
params: {
detailPageType: 17,
contentID: content?.objectId,
extra: {
relType: content?.relType,
relId: content?.relId,
} as ExtraDTO
} as Params,
};
WDRouterRule.jumpWithAction(taskAction)
Logger.debug(TAG, `gotoAtlasDetailPage, ${content.objectId}`);
}
}
\ No newline at end of file
...
...
sight_harmony/features/wdComponent/src/main/ets/components/DynamicDetailComponent.ets
View file @
20cd515
...
...
@@ -203,7 +203,7 @@ export struct DynamicDetailComponent {
}
}
.onClick((event: ClickEvent) => {
ProcessUtils.
processPage(this.mJumpInfo
)
ProcessUtils.
gotoMultiPictureListPage(this.contentDetailData.photoList
)
})
} else {
GridCol({
...
...
Please
register
or
login
to post a comment