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
liyubing
2024-05-20 18:09:52 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
35d4823033f22cd4cc134c01b0b70cf3b04bdbea
35d48230
1 parent
9dc71ffa
feat:广告
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
28 deletions
sight_harmony/features/wdComponent/src/main/ets/components/cardViewAdv/CardAdvGanMiComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardViewAdv/CardAdvGanMiComponent.ets
View file @
35d4823
...
...
@@ -124,7 +124,7 @@ export struct CardAdvGanMiComponent {
})
// 更多按钮
commonButton(this.advExtraData
)
this.commonButton(
)
}
.width(CommonConstants.FULL_WIDTH)
...
...
@@ -134,40 +134,45 @@ export struct CardAdvGanMiComponent {
})
}
}
/*
/*
标题样式
*/
@Builder
function commonButton(advExtraData: AdvExtraData) {
@Builder
commonButton() {
Row() {
Row() {
Blank()
Text(advExtraData.itemMore.title == null ? $r('app.string.look_more') : advExtraData.itemMore.title)
.fontColor('#222222')
.fontSize('14fp')
Image($r('app.media.icon_comp_more_right_red')).width(16).height(16)
Blank()
Row() {
Blank()
Text(this.advExtraData.itemMore == undefined ? $r('app.string.look_more') :
this.advExtraData.itemMore.title == undefined ? $r('app.string.look_more') : this.advExtraData.itemMore.title)
.fontColor('#222222')
.fontSize('14fp')
Image($r('app.media.icon_comp_more_right_red')).width(16).height(16)
Blank()
}
.width('100%')
.backgroundColor('#F5F5F5')
.borderRadius(3)
.padding({ top: 10, bottom: 10, })
.onClick(() => {
if (this.advExtraData.itemMore != undefined) {
let matInfo: CompAdvMatInfoBean = {
linkUrl: this.advExtraData.itemMore.linkUrl,
linkType: this.advExtraData.itemMore.linkType
} as CompAdvMatInfoBean;
ProcessUtils.openAdvDetail(matInfo)
}
})
}.width('100%').padding({
left: $r('app.float.card_comp_pagePadding_lf'),
right: $r('app.float.card_comp_pagePadding_lf'),
}
.width('100%')
.backgroundColor('#F5F5F5')
.borderRadius(3)
.padding({ top: 10, bottom: 10, })
.onClick(() => {
let matInfo: CompAdvMatInfoBean = {
linkUrl: advExtraData.itemMore.linkUrl,
linkType: advExtraData.itemMore.linkType
} as CompAdvMatInfoBean;
ProcessUtils.openAdvDetail(matInfo)
})
}.width('100%').padding({
left: $r('app.float.card_comp_pagePadding_lf'),
right: $r('app.float.card_comp_pagePadding_lf'),
})
}
}
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment