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
陈剑华
2024-04-28 15:16:29 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a92c77e4a8f996b866b19e0aab32d362c24943c3
a92c77e4
1 parent
b5dce061
fix: 16553 人民号动态下无法显示时间
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
25 additions
and
13 deletions
sight_harmony/features/wdComponent/src/main/ets/components/cardCommon/RmhTitle.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card12Component.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card14Component.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card15Component.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card16Component.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card19Component.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card20Component.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card21Component.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardCommon/RmhTitle.ets
View file @
a92c77e
...
...
@@ -3,10 +3,12 @@
*/
import { RmhInfoDTO } from 'wdBean'
import { CommonConstants } from 'wdConstant/Index';
import { DateTimeUtils } from 'wdKit';
@Component
export struct RmhTitle {
@Prop rmhInfo: RmhInfoDTO
@Prop publishTime: string | undefined
build() {
Flex() {
...
...
@@ -29,12 +31,22 @@ export struct RmhTitle {
.fontColor($r('app.color.color_222222'))
.fontWeight(600)
.alignSelf(ItemAlign.Start)
Text(this.rmhInfo.rmhDesc)
.fontSize($r("app.float.font_size_12"))
.fontColor($r("app.color.color_B0B0B0"))
.maxLines(1)
.alignSelf(ItemAlign.Start)
.textOverflow({ overflow: TextOverflow.Ellipsis })
Row() {
if (this.publishTime) {
Text(DateTimeUtils.getCommentTime(Number.parseFloat(this.publishTime)))
.fontSize($r("app.float.font_size_12"))
.fontColor($r("app.color.color_B0B0B0"))
Image($r('app.media.point'))
.width(16)
.height(16)
}
Text(this.rmhInfo.rmhDesc)
.fontSize($r("app.float.font_size_12"))
.fontColor($r("app.color.color_B0B0B0"))
.maxLines(1)
.alignSelf(ItemAlign.Start)
.textOverflow({ overflow: TextOverflow.Ellipsis })
}
}
Blank()
...
...
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card12Component.ets
View file @
a92c77e
...
...
@@ -20,7 +20,7 @@ export struct Card12Component {
Column() {
// rmh信息
if (this.contentDTO.rmhInfo) {
RmhTitle({ rmhInfo: this.contentDTO.rmhInfo })
RmhTitle({ rmhInfo: this.contentDTO.rmhInfo
, publishTime: this.contentDTO.publishTime
})
}
// 标题
if (this.contentDTO.newsTitle) {
...
...
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card14Component.ets
View file @
a92c77e
...
...
@@ -52,7 +52,7 @@ export struct Card14Component {
Column() {
// rmh信息
if (this.contentDTO.rmhInfo) {
RmhTitle({ rmhInfo: this.contentDTO.rmhInfo })
RmhTitle({ rmhInfo: this.contentDTO.rmhInfo
, publishTime: this.contentDTO.publishTime
})
}
// 左标题,右图
Flex({ direction: FlexDirection.Row, justifyContent: FlexAlign.SpaceBetween }) {
...
...
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card15Component.ets
View file @
a92c77e
...
...
@@ -58,7 +58,7 @@ export struct Card15Component {
build() {
Column() {
// rmh信息
RmhTitle({ rmhInfo: this.contentDTO.rmhInfo })
RmhTitle({ rmhInfo: this.contentDTO.rmhInfo
, publishTime: this.contentDTO.publishTime
})
//新闻标题
if (this.contentDTO.newsTitle) {
Text(this.contentDTO.newsTitle)
...
...
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card16Component.ets
View file @
a92c77e
...
...
@@ -25,7 +25,7 @@ export struct Card16Component {
Column() {
// rmh信息
if (this.contentDTO.rmhInfo) {
RmhTitle({ rmhInfo: this.contentDTO.rmhInfo })
RmhTitle({ rmhInfo: this.contentDTO.rmhInfo
, publishTime: this.contentDTO.publishTime
})
}
// 标题
if (this.contentDTO.newsTitle) {
...
...
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card19Component.ets
View file @
a92c77e
...
...
@@ -77,7 +77,7 @@ export struct Card19Component {
build() {
Column() {
// rmh信息
RmhTitle({ rmhInfo: this.contentDTO.rmhInfo })
RmhTitle({ rmhInfo: this.contentDTO.rmhInfo
, publishTime: this.contentDTO.publishTime
})
// 标题
if (this.contentDTO.newsTitle) {
Text(this.contentDTO.newsTitle)
...
...
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card20Component.ets
View file @
a92c77e
...
...
@@ -50,7 +50,7 @@ export struct Card20Component {
build() {
Column() {
// rmh信息
RmhTitle({ rmhInfo: this.contentDTO.rmhInfo })
RmhTitle({ rmhInfo: this.contentDTO.rmhInfo
, publishTime: this.contentDTO.publishTime
})
// 标题
if (this.contentDTO.newsTitle) {
Text(this.contentDTO.newsTitle)
...
...
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card21Component.ets
View file @
a92c77e
...
...
@@ -16,7 +16,7 @@ export struct Card21Component {
build() {
Column() {
// 顶部 rmh信息
RmhTitle({ rmhInfo: this.contentDTO.rmhInfo })
RmhTitle({ rmhInfo: this.contentDTO.rmhInfo
, publishTime: this.contentDTO.publishTime
})
// 中间内容
Grid() {
GridItem() {
...
...
Please
register
or
login
to post a comment