张善主

feat(动态):跳转

1 -import { Action, ContentDTO, Params } from 'wdBean'; 1 +import { Action, ContentDTO, Params, PhotoListBean } 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';
@@ -91,20 +91,18 @@ export class ProcessUtils { @@ -91,20 +91,18 @@ export class ProcessUtils {
91 * 图集详情页 91 * 图集详情页
92 * @param content 92 * @param content
93 * */ 93 * */
94 - private static gotoAtlasDetailPage(content: ContentDTO) { 94 + public static gotoMultiPictureListPage(photoList: PhotoListBean[]) {
95 let taskAction: Action = { 95 let taskAction: Action = {
96 type: 'JUMP_DETAIL_PAGE', 96 type: 'JUMP_DETAIL_PAGE',
97 params: { 97 params: {
98 - detailPageType: 17,  
99 - contentID: content?.objectId, 98 + detailPageType: 18,
100 extra: { 99 extra: {
101 - relType: content?.relType,  
102 - relId: content?.relId, 100 + photoList
103 } as ExtraDTO 101 } as ExtraDTO
104 } as Params, 102 } as Params,
105 }; 103 };
106 WDRouterRule.jumpWithAction(taskAction) 104 WDRouterRule.jumpWithAction(taskAction)
107 - Logger.debug(TAG, `gotoAtlasDetailPage, ${content.objectId}`); 105 + Logger.debug(TAG, `gotoMultiPictureListPage`);
108 } 106 }
109 107
110 private static gotoSpecialTopic(content: ContentDTO) { 108 private static gotoSpecialTopic(content: ContentDTO) {
@@ -194,4 +192,24 @@ export class ProcessUtils { @@ -194,4 +192,24 @@ export class ProcessUtils {
194 WDRouterRule.jumpWithAction(taskAction) 192 WDRouterRule.jumpWithAction(taskAction)
195 Logger.debug(TAG, `gotoAudio, ${content.objectId}`); 193 Logger.debug(TAG, `gotoAudio, ${content.objectId}`);
196 } 194 }
  195 +
  196 + /**
  197 + * 图片预览页
  198 + * @param content
  199 + * */
  200 + private static gotoAtlasDetailPage(content: ContentDTO) {
  201 + let taskAction: Action = {
  202 + type: 'JUMP_DETAIL_PAGE',
  203 + params: {
  204 + detailPageType: 17,
  205 + contentID: content?.objectId,
  206 + extra: {
  207 + relType: content?.relType,
  208 + relId: content?.relId,
  209 + } as ExtraDTO
  210 + } as Params,
  211 + };
  212 + WDRouterRule.jumpWithAction(taskAction)
  213 + Logger.debug(TAG, `gotoAtlasDetailPage, ${content.objectId}`);
  214 + }
197 } 215 }
@@ -203,7 +203,7 @@ export struct DynamicDetailComponent { @@ -203,7 +203,7 @@ export struct DynamicDetailComponent {
203 } 203 }
204 } 204 }
205 .onClick((event: ClickEvent) => { 205 .onClick((event: ClickEvent) => {
206 - ProcessUtils.processPage(this.mJumpInfo) 206 + ProcessUtils.gotoMultiPictureListPage(this.contentDetailData.photoList)
207 }) 207 })
208 } else { 208 } else {
209 GridCol({ 209 GridCol({