Showing
1 changed file
with
27 additions
and
23 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,31 +92,31 @@ export struct CardAdvVideoExComponent { | @@ -88,31 +92,31 @@ 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) { | 99 | + @Builder |
| 100 | + commonButton() { | ||
| 98 | 101 | ||
| 102 | + Row() { | ||
| 103 | + Blank() | ||
| 104 | + Text('查看更多').fontColor('#222222').fontSize('14fp') | ||
| 105 | + Image($r('app.media.icon_comp_more_right_red')).width(16).height(16) | ||
| 106 | + Blank() | ||
| 99 | 107 | ||
| 100 | - Row() { | ||
| 101 | - Blank() | ||
| 102 | - Text('查看更多').fontColor('#222222').fontSize('14fp') | ||
| 103 | - Image($r('app.media.icon_comp_more_right_red')).width(16).height(16) | ||
| 104 | - Blank() | ||
| 105 | - | 108 | + } |
| 109 | + .width('100%') | ||
| 110 | + .backgroundColor('#F5F5F5') | ||
| 111 | + .borderRadius(3) | ||
| 112 | + .padding({ top: 10, bottom: 10, }) | ||
| 113 | + .onClick(() => { | ||
| 114 | + let matInfo: CompAdvMatInfoBean = { | ||
| 115 | + linkUrl: this.advExtraData.itemMore.linkUrl, | ||
| 116 | + linkType: this.advExtraData.itemMore.linkType | ||
| 117 | + } as CompAdvMatInfoBean; | ||
| 118 | + ProcessUtils.openAdvDetail(matInfo) | ||
| 119 | + }) | ||
| 106 | } | 120 | } |
| 107 | - .width('100%') | ||
| 108 | - .backgroundColor('#F5F5F5') | ||
| 109 | - .borderRadius(3) | ||
| 110 | - .padding({ top: 10, bottom: 10, }) | ||
| 111 | - .onClick(() => { | ||
| 112 | - let matInfo: CompAdvMatInfoBean = { | ||
| 113 | - linkUrl: advExtraData.itemMore.linkUrl, | ||
| 114 | - linkType: advExtraData.itemMore.linkType | ||
| 115 | - } as CompAdvMatInfoBean; | ||
| 116 | - ProcessUtils.openAdvDetail(matInfo) | ||
| 117 | - }) | ||
| 118 | -} | ||
| 121 | +} | ||
| 122 | + |
-
Please register or login to post a comment