Showing
2 changed files
with
21 additions
and
0 deletions
| @@ -16,6 +16,12 @@ export class ContentConstants { | @@ -16,6 +16,12 @@ export class ContentConstants { | ||
| 16 | * 5:专题详情 | 16 | * 5:专题详情 |
| 17 | */ | 17 | */ |
| 18 | static readonly TYPE_SPECIAL_TOPIC: string = "5"; | 18 | static readonly TYPE_SPECIAL_TOPIC: string = "5"; |
| 19 | + | ||
| 20 | + /** | ||
| 21 | + * 6:链接 | ||
| 22 | + */ | ||
| 23 | + static readonly TYPE_LINK: string = "6"; | ||
| 24 | + | ||
| 19 | /** | 25 | /** |
| 20 | * 8:图文详情,这里是h5页面 | 26 | * 8:图文详情,这里是h5页面 |
| 21 | */ | 27 | */ |
| @@ -43,6 +43,9 @@ export class ProcessUtils { | @@ -43,6 +43,9 @@ export class ProcessUtils { | ||
| 43 | // 图文详情,跳转h5 | 43 | // 图文详情,跳转h5 |
| 44 | ProcessUtils.gotoWeb(content); | 44 | ProcessUtils.gotoWeb(content); |
| 45 | break; | 45 | break; |
| 46 | + case ContentConstants.TYPE_LINK: | ||
| 47 | + ProcessUtils.gotoDefaultWeb(content); | ||
| 48 | + break; | ||
| 46 | //图集详情页 | 49 | //图集详情页 |
| 47 | case ContentConstants.TYPE_NINE: | 50 | case ContentConstants.TYPE_NINE: |
| 48 | ProcessUtils.gotoAtlasDetailPage(content); | 51 | ProcessUtils.gotoAtlasDetailPage(content); |
| @@ -53,6 +56,7 @@ export class ProcessUtils { | @@ -53,6 +56,7 @@ export class ProcessUtils { | ||
| 53 | break; | 56 | break; |
| 54 | //动态详情页(动态图文) | 57 | //动态详情页(动态图文) |
| 55 | case ContentConstants.TYPE_FOURTEEN: | 58 | case ContentConstants.TYPE_FOURTEEN: |
| 59 | + break; | ||
| 56 | //动态详情页(动态视频) | 60 | //动态详情页(动态视频) |
| 57 | case ContentConstants.TYPE_FIFTEEN: | 61 | case ContentConstants.TYPE_FIFTEEN: |
| 58 | ProcessUtils.gotoDynamicDetailPage(content); | 62 | ProcessUtils.gotoDynamicDetailPage(content); |
| @@ -113,6 +117,17 @@ export class ProcessUtils { | @@ -113,6 +117,17 @@ export class ProcessUtils { | ||
| 113 | WDRouterRule.jumpWithAction(taskAction) | 117 | WDRouterRule.jumpWithAction(taskAction) |
| 114 | } | 118 | } |
| 115 | 119 | ||
| 120 | + private static gotoDefaultWeb(content: ContentDTO) { | ||
| 121 | + let taskAction: Action = { | ||
| 122 | + type: 'JUMP_H5_BY_WEB_VIEW', | ||
| 123 | + params: { | ||
| 124 | + url: content.linkUrl, | ||
| 125 | + } as Params, | ||
| 126 | + }; | ||
| 127 | + WDRouterRule.jumpWithAction(taskAction) | ||
| 128 | + Logger.debug(TAG, `gotoWeb, ${content.objectId}`); | ||
| 129 | + } | ||
| 130 | + | ||
| 116 | private static gotoWeb(content: ContentDTO) { | 131 | private static gotoWeb(content: ContentDTO) { |
| 117 | // // topicId | 132 | // // topicId |
| 118 | // content.channelId; | 133 | // content.channelId; |
-
Please register or login to post a comment