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-05-25 14:32:22 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c8e28fdc83a567950789b41b7250d1606012e586
c8e28fdc
1 parent
73c0947a
feat: 18019 头图卡组件样式-我的收藏页面、搜索结果页面展示效果与频道信息流展示效果不一致
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card5Component.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card5Component.ets
View file @
c8e28fd
...
...
@@ -27,6 +27,7 @@ export struct Card5Component {
@State str03: string = '';
async aboutToAppear(): Promise<void> {
console.log('Card2Component', JSON.stringify(this.compDTO))
this.clicked = hasClicked(this.contentDTO.objectId)
this.loadImg = await onlyWifiLoadImg();
...
...
@@ -47,9 +48,9 @@ export struct Card5Component {
Image(this.loadImg ? this.contentDTO.coverUrl : '')
.backgroundColor(0xf5f5f5)
.width(CommonConstants.FULL_WIDTH)
.autoResize(true)
.borderRadius($r('app.float.image_border_radius'))
if (this.titleShowPolicy === 1 || this.titleShowPolicy === null) {
.aspectRatio(343 / 225)
if (this.titleShowPolicy === 1 || this.titleShowPolicy === null || this.titleShowPolicy === '') {
Row()
.width(CommonConstants.FULL_WIDTH)
.height(59)
...
...
Please
register
or
login
to post a comment