Merge branch 'main' of http://192.168.1.42/developOne/harmonyPool
Showing
4 changed files
with
30 additions
and
1 deletions
| @@ -15,7 +15,7 @@ export struct CardSourceInfo { | @@ -15,7 +15,7 @@ export struct CardSourceInfo { | ||
| 15 | .margin({ right: 2 }) | 15 | .margin({ right: 2 }) |
| 16 | } | 16 | } |
| 17 | if (this.contentDTO.rmhPlatform === 1) { | 17 | if (this.contentDTO.rmhPlatform === 1) { |
| 18 | - Text(this.contentDTO.rmhInfo.rmhName) | 18 | + Text(this.contentDTO.rmhInfo?.rmhName) |
| 19 | .fontSize($r("app.float.font_size_12")) | 19 | .fontSize($r("app.float.font_size_12")) |
| 20 | .fontColor($r("app.color.color_B0B0B0")) | 20 | .fontColor($r("app.color.color_B0B0B0")) |
| 21 | .maxLines(1) | 21 | .maxLines(1) |
| @@ -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; |
| @@ -31,6 +31,14 @@ | @@ -31,6 +31,14 @@ | ||
| 31 | { | 31 | { |
| 32 | "name": "refresh_fail_text", | 32 | "name": "refresh_fail_text", |
| 33 | "value": "刷新失败" | 33 | "value": "刷新失败" |
| 34 | + }, | ||
| 35 | + { | ||
| 36 | + "name": "image_request_success", | ||
| 37 | + "value": "图片下载到图库成功" | ||
| 38 | + }, | ||
| 39 | + { | ||
| 40 | + "name": "image_request_fail", | ||
| 41 | + "value": "图片加载失败,请检查网络" | ||
| 34 | } | 42 | } |
| 35 | ] | 43 | ] |
| 36 | } | 44 | } |
-
Please register or login to post a comment