Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
zhenghy
2024-04-18 20:44:38 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
7de093d9580be07af7203b726814810f38002880
7de093d9
2 parents
f77228df
ebc05832
Merge branch 'main' of
http://192.168.1.42/developOne/harmonyPool
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
1 deletions
sight_harmony/features/wdComponent/src/main/ets/components/cardCommon/CardSourceInfo.ets
sight_harmony/features/wdComponent/src/main/ets/constants/ContentConstants.ets
sight_harmony/features/wdComponent/src/main/ets/utils/ProcessUtils.ets
sight_harmony/features/wdComponent/src/main/resources/base/element/string.json
sight_harmony/features/wdComponent/src/main/ets/components/cardCommon/CardSourceInfo.ets
View file @
7de093d
...
...
@@ -15,7 +15,7 @@ export struct CardSourceInfo {
.margin({ right: 2 })
}
if (this.contentDTO.rmhPlatform === 1) {
Text(this.contentDTO.rmhInfo.rmhName)
Text(this.contentDTO.rmhInfo
?
.rmhName)
.fontSize($r("app.float.font_size_12"))
.fontColor($r("app.color.color_B0B0B0"))
.maxLines(1)
...
...
sight_harmony/features/wdComponent/src/main/ets/constants/ContentConstants.ets
View file @
7de093d
...
...
@@ -16,6 +16,12 @@ export class ContentConstants {
* 5:专题详情
*/
static readonly TYPE_SPECIAL_TOPIC: string = "5";
/**
* 6:链接
*/
static readonly TYPE_LINK: string = "6";
/**
* 8:图文详情,这里是h5页面
*/
...
...
sight_harmony/features/wdComponent/src/main/ets/utils/ProcessUtils.ets
View file @
7de093d
...
...
@@ -43,6 +43,9 @@ export class ProcessUtils {
// 图文详情,跳转h5
ProcessUtils.gotoWeb(content);
break;
case ContentConstants.TYPE_LINK:
ProcessUtils.gotoDefaultWeb(content);
break;
//图集详情页
case ContentConstants.TYPE_NINE:
ProcessUtils.gotoAtlasDetailPage(content);
...
...
@@ -53,6 +56,7 @@ export class ProcessUtils {
break;
//动态详情页(动态图文)
case ContentConstants.TYPE_FOURTEEN:
break;
//动态详情页(动态视频)
case ContentConstants.TYPE_FIFTEEN:
ProcessUtils.gotoDynamicDetailPage(content);
...
...
@@ -113,6 +117,17 @@ export class ProcessUtils {
WDRouterRule.jumpWithAction(taskAction)
}
private static gotoDefaultWeb(content: ContentDTO) {
let taskAction: Action = {
type: 'JUMP_H5_BY_WEB_VIEW',
params: {
url: content.linkUrl,
} as Params,
};
WDRouterRule.jumpWithAction(taskAction)
Logger.debug(TAG, `gotoWeb, ${content.objectId}`);
}
private static gotoWeb(content: ContentDTO) {
// // topicId
// content.channelId;
...
...
sight_harmony/features/wdComponent/src/main/resources/base/element/string.json
View file @
7de093d
...
...
@@ -31,6 +31,14 @@
{
"name"
:
"refresh_fail_text"
,
"value"
:
"刷新失败"
},
{
"name"
:
"image_request_success"
,
"value"
:
"图片下载到图库成功"
},
{
"name"
:
"image_request_fail"
,
"value"
:
"图片加载失败,请检查网络"
}
]
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment