Showing
1 changed file
with
12 additions
and
8 deletions
| @@ -49,6 +49,10 @@ export struct CardAdvVideoExComponent { | @@ -49,6 +49,10 @@ export struct CardAdvVideoExComponent { | ||
| 49 | .borderRadius(4) | 49 | .borderRadius(4) |
| 50 | .borderWidth(0.5) | 50 | .borderWidth(0.5) |
| 51 | .borderColor($r('app.color.color_0D000000')) | 51 | .borderColor($r('app.color.color_0D000000')) |
| 52 | + .onClick(() => { | ||
| 53 | + ProcessUtils.openAdvDetail(this.compDTO.matInfo) | ||
| 54 | + | ||
| 55 | + }) | ||
| 52 | 56 | ||
| 53 | CardAdvTop({ pageModel: this.pageModel, compDTO: this.compDTO }) | 57 | CardAdvTop({ pageModel: this.pageModel, compDTO: this.compDTO }) |
| 54 | } | 58 | } |
| @@ -76,7 +80,7 @@ export struct CardAdvVideoExComponent { | @@ -76,7 +80,7 @@ export struct CardAdvVideoExComponent { | ||
| 76 | }.width('100%').listDirection(Axis.Vertical).margin({ top: 10, bottom: 10 }) | 80 | }.width('100%').listDirection(Axis.Vertical).margin({ top: 10, bottom: 10 }) |
| 77 | 81 | ||
| 78 | // 更多按钮 | 82 | // 更多按钮 |
| 79 | - commonButton(this.advExtraData) | 83 | + this.commonButton() |
| 80 | 84 | ||
| 81 | } | 85 | } |
| 82 | .width(CommonConstants.FULL_WIDTH) | 86 | .width(CommonConstants.FULL_WIDTH) |
| @@ -88,14 +92,12 @@ export struct CardAdvVideoExComponent { | @@ -88,14 +92,12 @@ export struct CardAdvVideoExComponent { | ||
| 88 | }) | 92 | }) |
| 89 | 93 | ||
| 90 | } | 94 | } |
| 91 | -} | ||
| 92 | 95 | ||
| 93 | -/* | 96 | + /* |
| 94 | 标题样式 | 97 | 标题样式 |
| 95 | */ | 98 | */ |
| 96 | -@Builder | ||
| 97 | -function commonButton(advExtraData: AdvExtraData) { | ||
| 98 | - | 99 | + @Builder |
| 100 | + commonButton() { | ||
| 99 | 101 | ||
| 100 | Row() { | 102 | Row() { |
| 101 | Blank() | 103 | Blank() |
| @@ -110,9 +112,11 @@ function commonButton(advExtraData: AdvExtraData) { | @@ -110,9 +112,11 @@ function commonButton(advExtraData: AdvExtraData) { | ||
| 110 | .padding({ top: 10, bottom: 10, }) | 112 | .padding({ top: 10, bottom: 10, }) |
| 111 | .onClick(() => { | 113 | .onClick(() => { |
| 112 | let matInfo: CompAdvMatInfoBean = { | 114 | let matInfo: CompAdvMatInfoBean = { |
| 113 | - linkUrl: advExtraData.itemMore.linkUrl, | ||
| 114 | - linkType: advExtraData.itemMore.linkType | 115 | + linkUrl: this.advExtraData.itemMore.linkUrl, |
| 116 | + linkType: this.advExtraData.itemMore.linkType | ||
| 115 | } as CompAdvMatInfoBean; | 117 | } as CompAdvMatInfoBean; |
| 116 | ProcessUtils.openAdvDetail(matInfo) | 118 | ProcessUtils.openAdvDetail(matInfo) |
| 117 | }) | 119 | }) |
| 120 | + } | ||
| 118 | } | 121 | } |
| 122 | + |
-
Please register or login to post a comment