张善主

feat(图集/动态):跳转逻辑

@@ -53,6 +53,12 @@ export function registerRouter() { @@ -53,6 +53,12 @@ export function registerRouter() {
53 return WDRouterPage.detailPlayLivePage 53 return WDRouterPage.detailPlayLivePage
54 } else if (action.params?.detailPageType == 7 || action.params?.detailPageType == 8) { 54 } else if (action.params?.detailPageType == 7 || action.params?.detailPageType == 8) {
55 return WDRouterPage.detailVideoListPage 55 return WDRouterPage.detailVideoListPage
  56 + }else if(action.params?.detailPageType == 9){
  57 + //图集详情页
  58 + return WDRouterPage.detailVideoListPage
  59 + }else if(action.params?.detailPageType == 14 || action.params?.detailPageType == 15){
  60 + //动态详情页
  61 + return WDRouterPage.dynamicDetailPage
56 } else if (action.params?.detailPageType == 17) { 62 } else if (action.params?.detailPageType == 17) {
57 return WDRouterPage.multiPictureDetailPage 63 return WDRouterPage.multiPictureDetailPage
58 } else if (action.params?.detailPageType == 13) { 64 } else if (action.params?.detailPageType == 13) {
@@ -45,6 +45,8 @@ export class WDRouterPage { @@ -45,6 +45,8 @@ export class WDRouterPage {
45 static multiPictureDetailPage = new WDRouterPage("phone", "ets/pages/detail/MultiPictureDetailPage"); 45 static multiPictureDetailPage = new WDRouterPage("phone", "ets/pages/detail/MultiPictureDetailPage");
46 // 音乐详情页 46 // 音乐详情页
47 static audioDetail = new WDRouterPage("phone", "ets/pages/detail/AudioDetail"); 47 static audioDetail = new WDRouterPage("phone", "ets/pages/detail/AudioDetail");
  48 + // 动态详情页
  49 + static dynamicDetailPage = new WDRouterPage("phone", "ets/pages/detail/DynamicDetailPage");
48 static loginPage = new WDRouterPage("wdLogin", "ets/pages/login/LoginPage"); 50 static loginPage = new WDRouterPage("wdLogin", "ets/pages/login/LoginPage");
49 static forgetPasswordPage = new WDRouterPage("wdLogin", "ets/pages/login/ForgetPasswordPage"); 51 static forgetPasswordPage = new WDRouterPage("wdLogin", "ets/pages/login/ForgetPasswordPage");
50 //我的 预约 52 //我的 预约
@@ -21,7 +21,23 @@ export class ContentConstants { @@ -21,7 +21,23 @@ export class ContentConstants {
21 */ 21 */
22 static readonly TYPE_TELETEXT: string = "8"; 22 static readonly TYPE_TELETEXT: string = "8";
23 /** 23 /**
  24 + * 9:图集
  25 + */
  26 + static readonly TYPE_NINE: string = "9";
  27 + /**
24 * 13:音频详情 28 * 13:音频详情
25 */ 29 */
26 static readonly TYPE_AUDIO: string = "13"; 30 static readonly TYPE_AUDIO: string = "13";
  31 +
  32 + /**
  33 + * 14:动态图文
  34 + */
  35 + static readonly TYPE_FOURTEEN: string = "14";
  36 +
  37 + /**
  38 + * 15:动态视频
  39 + */
  40 + static readonly TYPE_FIFTEEN: string = "15";
  41 +
  42 +
27 } 43 }
@@ -42,14 +42,65 @@ export class ProcessUtils { @@ -42,14 +42,65 @@ export class ProcessUtils {
42 // 图文详情,跳转h5 42 // 图文详情,跳转h5
43 ProcessUtils.gotoWeb(content); 43 ProcessUtils.gotoWeb(content);
44 break; 44 break;
  45 + //图集详情页
  46 + case ContentConstants.TYPE_NINE:
  47 + ProcessUtils.gotoAtlasDetailPage(content);
  48 + break;
45 case ContentConstants.TYPE_SPECIAL_TOPIC: 49 case ContentConstants.TYPE_SPECIAL_TOPIC:
46 // 专题详情,跳转h5 50 // 专题详情,跳转h5
47 ProcessUtils.gotoSpecialTopic(content); 51 ProcessUtils.gotoSpecialTopic(content);
48 break; 52 break;
  53 + //动态详情页(动态图文)
  54 + case ContentConstants.TYPE_FOURTEEN:
  55 + //动态详情页(动态视频)
  56 + case ContentConstants.TYPE_FIFTEEN:
  57 + ProcessUtils.gotoDynamicDetailPage(content);
  58 + break;
49 default: 59 default:
50 break; 60 break;
51 } 61 }
52 } 62 }
  63 +
  64 + /**
  65 + * 动态详情页(动态视频/动态图片)
  66 + * @param content
  67 + * */
  68 + private static gotoDynamicDetailPage(content: ContentDTO) {
  69 + let taskAction: Action = {
  70 + type: 'JUMP_DETAIL_PAGE',
  71 + params: {
  72 + detailPageType: 14,
  73 + contentID: content?.objectId,
  74 + extra:{
  75 + relType: content?.relType,
  76 + relId: content?.relId,
  77 + } as ExtraDTO
  78 + } as Params,
  79 + };
  80 + WDRouterRule.jumpWithAction(taskAction)
  81 + Logger.debug(TAG, `gotoDynamicDetailPage, ${content.objectId}`);
  82 + }
  83 +
  84 + /**
  85 + * 图集详情页
  86 + * @param content
  87 + * */
  88 + private static gotoAtlasDetailPage(content: ContentDTO) {
  89 + let taskAction: Action = {
  90 + type: 'JUMP_DETAIL_PAGE',
  91 + params: {
  92 + detailPageType: 17,
  93 + contentID: content?.objectId,
  94 + extra:{
  95 + relType: content?.relType,
  96 + relId: content?.relId,
  97 + } as ExtraDTO
  98 + } as Params,
  99 + };
  100 + WDRouterRule.jumpWithAction(taskAction)
  101 + Logger.debug(TAG, `gotoAtlasDetailPage, ${content.objectId}`);
  102 + }
  103 +
53 private static gotoSpecialTopic(content: ContentDTO) { 104 private static gotoSpecialTopic(content: ContentDTO) {
54 let taskAction: Action = { 105 let taskAction: Action = {
55 type: 'JUMP_H5_BY_WEB_VIEW', 106 type: 'JUMP_H5_BY_WEB_VIEW',