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:32:29 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
40203d5a897626d2444dd587b028126c404fbdb5
40203d5a
1 parent
05c94900
feat:展会广告,点击图片没有跳转到百度
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
sight_harmony/features/wdComponent/src/main/ets/components/cardViewAdv/CardAdvVideoExComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardViewAdv/CardAdvVideoExComponent.ets
View file @
40203d5
...
...
@@ -49,6 +49,10 @@ export struct CardAdvVideoExComponent {
.borderRadius(4)
.borderWidth(0.5)
.borderColor($r('app.color.color_0D000000'))
.onClick(() => {
ProcessUtils.openAdvDetail(this.compDTO.matInfo)
})
CardAdvTop({ pageModel: this.pageModel, compDTO: this.compDTO })
}
...
...
@@ -76,7 +80,7 @@ export struct CardAdvVideoExComponent {
}.width('100%').listDirection(Axis.Vertical).margin({ top: 10, bottom: 10 })
// 更多按钮
commonButton(this.advExtraData
)
this.commonButton(
)
}
.width(CommonConstants.FULL_WIDTH)
...
...
@@ -88,14 +92,12 @@ export struct CardAdvVideoExComponent {
})
}
}
/*
/*
标题样式
*/
@Builder
function commonButton(advExtraData: AdvExtraData) {
@Builder
commonButton() {
Row() {
Blank()
...
...
@@ -110,9 +112,11 @@ function commonButton(advExtraData: AdvExtraData) {
.padding({ top: 10, bottom: 10, })
.onClick(() => {
let matInfo: CompAdvMatInfoBean = {
linkUrl: advExtraData.itemMore.linkUrl,
linkType: advExtraData.itemMore.linkType
linkUrl: this.advExtraData.itemMore.linkUrl,
linkType: this.advExtraData.itemMore.linkType
} as CompAdvMatInfoBean;
ProcessUtils.openAdvDetail(matInfo)
})
}
}
...
...
Please
register
or
login
to post a comment