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-24 14:49:24 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2fdce5ae561dd66fff7fc14187403228a3a791d0
2fdce5ae
1 parent
f8729378
评论跳转
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
5 deletions
sight_harmony/commons/wdRouter/src/main/ets/utils/ProcessUtils.ets
sight_harmony/features/wdBean/Index.ets
sight_harmony/features/wdBean/src/main/ets/bean/content/commentInfo.ets
sight_harmony/features/wdComponent/src/main/ets/components/compview/ZhSingleRow06.ets
sight_harmony/commons/wdRouter/src/main/ets/utils/ProcessUtils.ets
View file @
2fdce5a
import { Action, ContentDTO, Params, PhotoListBean } from 'wdBean';
import { Action, ContentDTO, Params, PhotoListBean
, commentInfo
} 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';
...
...
@@ -133,7 +133,25 @@ export class ProcessUtils {
Logger.debug(TAG, `gotoWeb, ${content.objectId}`);
}
static gotoWeb(content: ContentDTO) {
static commentGotoWeb(content: commentInfo) {
let taskAction: Action = {
type: 'JUMP_INNER_NEW_PAGE',
params: {
contentID: content?.newsId,
pageID: 'IMAGE_TEXT_DETAIL',
extra: {
relType: content?.relType,
relId: content?.relId,
sourcePage: '5',
commentId: content?.commentId
} as ExtraDTO
} as Params,
};
WDRouterRule.jumpWithAction(taskAction)
Logger.debug(TAG, `commentGotoWeb, ${content.newsId}`);
}
private static gotoWeb(content: ContentDTO) {
let taskAction: Action = {
type: 'JUMP_INNER_NEW_PAGE',
params: {
...
...
sight_harmony/features/wdBean/Index.ets
View file @
2fdce5a
...
...
@@ -15,6 +15,8 @@ export { ItemBean } from './src/main/ets/bean/ItemBean';
// Content
export { ContentDTO } from './src/main/ets/bean/content/ContentDTO';
export { commentInfo } from './src/main/ets/bean/content/commentInfo';
export { AudioDTO } from './src/main/ets/bean/content/AudioDTO';
export { Action } from './src/main/ets/bean/content/Action'
...
...
sight_harmony/features/wdBean/src/main/ets/bean/content/commentInfo.ets
View file @
2fdce5a
...
...
@@ -4,5 +4,8 @@ export interface commentInfo {
userName: string,
userHeaderUrl: string,
publishTime: number,
commentId: string
commentId: string,
newsId: string,
relId: string;
relType: string;
}
\ No newline at end of file
...
...
sight_harmony/features/wdComponent/src/main/ets/components/compview/ZhSingleRow06.ets
View file @
2fdce5a
import { CompDTO, ContentDTO, Params } from 'wdBean';
import {
commentInfo,
CompDTO, ContentDTO, Params } from 'wdBean';
import { WDRouterPage, WDRouterRule } from 'wdRouter/Index';
import { HttpUrlUtils } from 'wdNetwork/Index';
import { postInteractAccentionOperateParams } from 'wdBean';
...
...
@@ -69,7 +69,7 @@ export struct ZhSingleRow06 {
.borderRadius(4)
.margin({bottom: 12})
.onClick(() => {
ProcessUtils.
gotoWeb(this.compDTO.operDataList[0]
)
ProcessUtils.
commentGotoWeb(this.compDTO.operDataList[0]?.commentInfo as commentInfo
)
})
Row() {
...
...
Please
register
or
login
to post a comment