Showing
3 changed files
with
15 additions
and
4 deletions
| @@ -32,7 +32,7 @@ export struct CompParser { | @@ -32,7 +32,7 @@ export struct CompParser { | ||
| 32 | TitleAbbrComponent({ compDTO: compDTO }) | 32 | TitleAbbrComponent({ compDTO: compDTO }) |
| 33 | } else if (compDTO.compStyle === '3') { | 33 | } else if (compDTO.compStyle === '3') { |
| 34 | TitleAllComponent({ compDTO: compDTO }) | 34 | TitleAllComponent({ compDTO: compDTO }) |
| 35 | - } else if (compDTO.compStyle === CompStyle.Carousel_Layout_01) { | 35 | + } else if (compDTO.compStyle === CompStyle.Zh_Carousel_Layout_01) { |
| 36 | BannerComponent({ compDTO: compDTO }) | 36 | BannerComponent({ compDTO: compDTO }) |
| 37 | } else if (compDTO.compStyle === "2") { | 37 | } else if (compDTO.compStyle === "2") { |
| 38 | BigPicCardComponent({ compDTO: compDTO }) | 38 | BigPicCardComponent({ compDTO: compDTO }) |
| @@ -55,10 +55,21 @@ export struct BannerComponent { | @@ -55,10 +55,21 @@ export struct BannerComponent { | ||
| 55 | Image(item.coverUrl) | 55 | Image(item.coverUrl) |
| 56 | .objectFit(ImageFit.Fill) | 56 | .objectFit(ImageFit.Fill) |
| 57 | .borderRadius(5) | 57 | .borderRadius(5) |
| 58 | + .onClick(()=>{ | ||
| 59 | + AlertDialog.show({ | ||
| 60 | + title: '🥟id : ' + item.objectId, | ||
| 61 | + message: '标题:' + item.newsTitle, | ||
| 62 | + confirm: { | ||
| 63 | + value: "OK", | ||
| 64 | + action: () => { | ||
| 58 | 65 | ||
| 66 | + }, | ||
| 67 | + } | ||
| 68 | + }) | ||
| 69 | + }) | ||
| 59 | // 底部标题和时间 | 70 | // 底部标题和时间 |
| 60 | Column() { | 71 | Column() { |
| 61 | - Text(item.description) | 72 | + Text(item.newsTitle) |
| 62 | .fontSize(18) | 73 | .fontSize(18) |
| 63 | .margin({ bottom: 4 }) | 74 | .margin({ bottom: 4 }) |
| 64 | .fontColor(Color.White) | 75 | .fontColor(Color.White) |
| @@ -113,7 +124,7 @@ export struct BannerComponent { | @@ -113,7 +124,7 @@ export struct BannerComponent { | ||
| 113 | // 底部标题和时间 | 124 | // 底部标题和时间 |
| 114 | Row() { | 125 | Row() { |
| 115 | // 标题 | 126 | // 标题 |
| 116 | - Text(this.bannerContent.description.toString()) | 127 | + Text(this.bannerContent.newsTitle.toString()) |
| 117 | .fontSize(18) | 128 | .fontSize(18) |
| 118 | .fontColor(Color.White) | 129 | .fontColor(Color.White) |
| 119 | .fontWeight(600) | 130 | .fontWeight(600) |
| @@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
| 3 | */ | 3 | */ |
| 4 | export const enum CompStyle { | 4 | export const enum CompStyle { |
| 5 | Label_03 = 'Label-03', // 标题卡:icon+文字 | 5 | Label_03 = 'Label-03', // 标题卡:icon+文字 |
| 6 | - Carousel_Layout_01 = 'Carousel_Layout-01', // 通用轮播卡:视频、直播、活动、专题、榜单、外链 | 6 | + Zh_Carousel_Layout_01 = 'Zh_Carousel_Layout-01', // 通用轮播卡:视频、直播、活动、专题、榜单、外链 |
| 7 | Carousel_Layout_02 = 'Carousel_Layout-02', // 直播轮播卡:直播 | 7 | Carousel_Layout_02 = 'Carousel_Layout-02', // 直播轮播卡:直播 |
| 8 | Single_Row_01 = 'Single_Row-01', // 三格方形小卡(排名):专题、活动 | 8 | Single_Row_01 = 'Single_Row-01', // 三格方形小卡(排名):专题、活动 |
| 9 | Single_Row_02 = 'Single_Row-02', // 通用横划卡:视频、直播、专题 | 9 | Single_Row_02 = 'Single_Row-02', // 通用横划卡:视频、直播、专题 |
-
Please register or login to post a comment