Showing
4 changed files
with
28 additions
and
5 deletions
| 1 | -import { Action, ContentDTO, Params, PhotoListBean } from 'wdBean'; | 1 | +import { Action, ContentDTO, Params, PhotoListBean, commentInfo } from 'wdBean'; |
| 2 | import { ExtraDTO } from 'wdBean/src/main/ets/bean/component/extra/ExtraDTO'; | 2 | import { ExtraDTO } from 'wdBean/src/main/ets/bean/component/extra/ExtraDTO'; |
| 3 | import { Logger } from 'wdKit'; | 3 | import { Logger } from 'wdKit'; |
| 4 | import { StringUtils } from 'wdKit/src/main/ets/utils/StringUtils'; | 4 | import { StringUtils } from 'wdKit/src/main/ets/utils/StringUtils'; |
| @@ -133,7 +133,25 @@ export class ProcessUtils { | @@ -133,7 +133,25 @@ export class ProcessUtils { | ||
| 133 | Logger.debug(TAG, `gotoWeb, ${content.objectId}`); | 133 | Logger.debug(TAG, `gotoWeb, ${content.objectId}`); |
| 134 | } | 134 | } |
| 135 | 135 | ||
| 136 | - static gotoWeb(content: ContentDTO) { | 136 | + static commentGotoWeb(content: commentInfo) { |
| 137 | + let taskAction: Action = { | ||
| 138 | + type: 'JUMP_INNER_NEW_PAGE', | ||
| 139 | + params: { | ||
| 140 | + contentID: content?.newsId, | ||
| 141 | + pageID: 'IMAGE_TEXT_DETAIL', | ||
| 142 | + extra: { | ||
| 143 | + relType: content?.relType, | ||
| 144 | + relId: content?.relId, | ||
| 145 | + sourcePage: '5', | ||
| 146 | + commentId: content?.commentId | ||
| 147 | + } as ExtraDTO | ||
| 148 | + } as Params, | ||
| 149 | + }; | ||
| 150 | + WDRouterRule.jumpWithAction(taskAction) | ||
| 151 | + Logger.debug(TAG, `commentGotoWeb, ${content.newsId}`); | ||
| 152 | + } | ||
| 153 | + | ||
| 154 | + private static gotoWeb(content: ContentDTO) { | ||
| 137 | let taskAction: Action = { | 155 | let taskAction: Action = { |
| 138 | type: 'JUMP_INNER_NEW_PAGE', | 156 | type: 'JUMP_INNER_NEW_PAGE', |
| 139 | params: { | 157 | params: { |
| @@ -15,6 +15,8 @@ export { ItemBean } from './src/main/ets/bean/ItemBean'; | @@ -15,6 +15,8 @@ export { ItemBean } from './src/main/ets/bean/ItemBean'; | ||
| 15 | // Content | 15 | // Content |
| 16 | export { ContentDTO } from './src/main/ets/bean/content/ContentDTO'; | 16 | export { ContentDTO } from './src/main/ets/bean/content/ContentDTO'; |
| 17 | 17 | ||
| 18 | +export { commentInfo } from './src/main/ets/bean/content/commentInfo'; | ||
| 19 | + | ||
| 18 | export { AudioDTO } from './src/main/ets/bean/content/AudioDTO'; | 20 | export { AudioDTO } from './src/main/ets/bean/content/AudioDTO'; |
| 19 | 21 | ||
| 20 | export { Action } from './src/main/ets/bean/content/Action' | 22 | export { Action } from './src/main/ets/bean/content/Action' |
| @@ -4,5 +4,8 @@ export interface commentInfo { | @@ -4,5 +4,8 @@ export interface commentInfo { | ||
| 4 | userName: string, | 4 | userName: string, |
| 5 | userHeaderUrl: string, | 5 | userHeaderUrl: string, |
| 6 | publishTime: number, | 6 | publishTime: number, |
| 7 | - commentId: string | 7 | + commentId: string, |
| 8 | + newsId: string, | ||
| 9 | + relId: string; | ||
| 10 | + relType: string; | ||
| 8 | } | 11 | } |
| 1 | -import { CompDTO, ContentDTO, Params } from 'wdBean'; | 1 | +import { commentInfo, CompDTO, ContentDTO, Params } from 'wdBean'; |
| 2 | import { WDRouterPage, WDRouterRule } from 'wdRouter/Index'; | 2 | import { WDRouterPage, WDRouterRule } from 'wdRouter/Index'; |
| 3 | import { HttpUrlUtils } from 'wdNetwork/Index'; | 3 | import { HttpUrlUtils } from 'wdNetwork/Index'; |
| 4 | import { postInteractAccentionOperateParams } from 'wdBean'; | 4 | import { postInteractAccentionOperateParams } from 'wdBean'; |
| @@ -69,7 +69,7 @@ export struct ZhSingleRow06 { | @@ -69,7 +69,7 @@ export struct ZhSingleRow06 { | ||
| 69 | .borderRadius(4) | 69 | .borderRadius(4) |
| 70 | .margin({bottom: 12}) | 70 | .margin({bottom: 12}) |
| 71 | .onClick(() => { | 71 | .onClick(() => { |
| 72 | - ProcessUtils.gotoWeb(this.compDTO.operDataList[0]) | 72 | + ProcessUtils.commentGotoWeb(this.compDTO.operDataList[0]?.commentInfo as commentInfo) |
| 73 | }) | 73 | }) |
| 74 | 74 | ||
| 75 | Row() { | 75 | Row() { |
-
Please register or login to post a comment