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
wangliang_wd
2024-05-27 18:12:55 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
eb39402fac09052f73a7c5157490588fa17eae32
eb39402f
1 parent
adb3f8ee
feat:优化早晚报顶部视图
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
sight_harmony/features/wdComponent/src/main/ets/components/MorningEveningPaper/topicInfoView.ets
sight_harmony/features/wdComponent/src/main/ets/components/MorningEveningPaper/topicInfoView.ets
View file @
eb39402
...
...
@@ -32,9 +32,9 @@ export struct topicInfoView {
})
.id('img_cover')
if (this.frontLinkObject) {
if (this.frontLinkObject
.linkUrl.length > 0
) {
Row() {
Text(
this.frontLinkObject.linkUrl.length > 0?"查看详情":''
)
Text(
"查看详情"
)
.fontSize(14)
.fontColor($r('app.color.white'))
.maxLines(1)
...
...
@@ -50,14 +50,14 @@ export struct topicInfoView {
.margin({ top: 8, left: 16, right: 16, bottom: 16 })
.borderRadius(2)
.onClick(()=>{
if (this.frontLinkObject.linkUrl.length === 0) return
let contentDTO :ContentDTO = new ContentDTO();
contentDTO.objectType = this.frontLinkObject?.newsType.toString()
contentDTO.objectId = this.frontLinkObject?.newsId
contentDTO.linkUrl = this.frontLinkObject?.linkUrl
ProcessUtils.processPage(contentDTO)
}).width(80)
})
.width(80)
.alignRules({
left: { anchor: "__container__", align: HorizontalAlign.Start },
bottom: { anchor: "__container__", align: VerticalAlign.Bottom }
...
...
@@ -73,7 +73,7 @@ export struct topicInfoView {
.textOverflow({ overflow: TextOverflow.Ellipsis })
.alignRules({
left: { anchor: "__container__", align: HorizontalAlign.Start },
bottom:
{ anchor: "row_detail", align: VerticalAlign.Top
}
bottom:
this.frontLinkObject.linkUrl.length > 0?{ anchor: "row_detail", align: VerticalAlign.Top }:{ anchor: "__container__", align: VerticalAlign.Bottom
}
})
.margin({ left: 16, right: 16 })
.id('txt_summary')
...
...
Please
register
or
login
to post a comment