Showing
3 changed files
with
7 additions
and
3 deletions
| @@ -7,6 +7,7 @@ export interface CompDTO { | @@ -7,6 +7,7 @@ export interface CompDTO { | ||
| 7 | cityCode: string; | 7 | cityCode: string; |
| 8 | compStyle: string; | 8 | compStyle: string; |
| 9 | compType: string; | 9 | compType: string; |
| 10 | + | ||
| 10 | // dataSourceRequest: any[]; | 11 | // dataSourceRequest: any[]; |
| 11 | districtCode: string; | 12 | districtCode: string; |
| 12 | extraData?: string; | 13 | extraData?: string; |
| @@ -15,6 +16,7 @@ export interface CompDTO { | @@ -15,6 +16,7 @@ export interface CompDTO { | ||
| 15 | imgSize: string; | 16 | imgSize: string; |
| 16 | innerUrl: string; | 17 | innerUrl: string; |
| 17 | linkUrl: string; | 18 | linkUrl: string; |
| 19 | + | ||
| 18 | // meddleDataList: any[]; | 20 | // meddleDataList: any[]; |
| 19 | name: string; | 21 | name: string; |
| 20 | objectId: string; // 跳转页面id? | 22 | objectId: string; // 跳转页面id? |
| @@ -29,6 +31,7 @@ export interface CompDTO { | @@ -29,6 +31,7 @@ export interface CompDTO { | ||
| 29 | subType: string; | 31 | subType: string; |
| 30 | imageScale: number; // 封面图比例 1-4:3, 2-16:9, 3-3:2 | 32 | imageScale: number; // 封面图比例 1-4:3, 2-16:9, 3-3:2 |
| 31 | audioDataList: AudioDTO[]; | 33 | audioDataList: AudioDTO[]; |
| 34 | + titleShowPolicy: string | number; | ||
| 32 | 35 | ||
| 33 | /** | 36 | /** |
| 34 | * 组件内容源类型 (LIVE_HORIZONTAL_CARD\LIVE_RESERVATION\LIVE_LARGE_CARD\LIVE_END\LIVE_MONTHLY_RANKING ) | 37 | * 组件内容源类型 (LIVE_HORIZONTAL_CARD\LIVE_RESERVATION\LIVE_LARGE_CARD\LIVE_END\LIVE_MONTHLY_RANKING ) |
| @@ -20,8 +20,8 @@ import { ZhCarouselLayout01 } from './compview/ZhCarouselLayout01'; | @@ -20,8 +20,8 @@ import { ZhCarouselLayout01 } from './compview/ZhCarouselLayout01'; | ||
| 20 | import { CardParser } from './CardParser'; | 20 | import { CardParser } from './CardParser'; |
| 21 | import { LiveHorizontalReservationComponent } from './view/LiveHorizontalReservationComponent'; | 21 | import { LiveHorizontalReservationComponent } from './view/LiveHorizontalReservationComponent'; |
| 22 | import { ZhGridLayout02 } from './compview/ZhGridLayout02'; | 22 | import { ZhGridLayout02 } from './compview/ZhGridLayout02'; |
| 23 | -import { Card5Component } from './cardview/Card5Component'; | ||
| 24 | import { Card2Component } from './cardview/Card2Component'; | 23 | import { Card2Component } from './cardview/Card2Component'; |
| 24 | +import { Card5Component } from './cardview/Card5Component'; | ||
| 25 | import { WDRouterPage, WDRouterRule } from 'wdRouter/Index'; | 25 | import { WDRouterPage, WDRouterRule } from 'wdRouter/Index'; |
| 26 | 26 | ||
| 27 | /** | 27 | /** |
| @@ -71,7 +71,7 @@ export struct CompParser { | @@ -71,7 +71,7 @@ export struct CompParser { | ||
| 71 | ZhSingleRow06({ compDTO }) | 71 | ZhSingleRow06({ compDTO }) |
| 72 | } else if (compDTO.compStyle === CompStyle.Zh_Single_Column_02) { | 72 | } else if (compDTO.compStyle === CompStyle.Zh_Single_Column_02) { |
| 73 | //头图卡 和comStyle 2相同, | 73 | //头图卡 和comStyle 2相同, |
| 74 | - Card5Component({ contentDTO: compDTO.operDataList[0] }) | 74 | + Card5Component({ contentDTO: compDTO.operDataList[0], titleShowPolicy: compDTO.titleShowPolicy }) |
| 75 | } else if (compDTO.compStyle === CompStyle.Zh_Single_Column_03) { | 75 | } else if (compDTO.compStyle === CompStyle.Zh_Single_Column_03) { |
| 76 | // 大图卡 | 76 | // 大图卡 |
| 77 | Card2Component({ contentDTO: compDTO.operDataList[0] }) | 77 | Card2Component({ contentDTO: compDTO.operDataList[0] }) |
| @@ -20,6 +20,7 @@ export struct Card5Component { | @@ -20,6 +20,7 @@ export struct Card5Component { | ||
| 20 | // newsTitle: '今天是周日,天气阴天,明天是周一。', | 20 | // newsTitle: '今天是周日,天气阴天,明天是周一。', |
| 21 | // objectType: '6' | 21 | // objectType: '6' |
| 22 | } as ContentDTO; | 22 | } as ContentDTO; |
| 23 | + @State titleShowPolicy: number | string = 1 | ||
| 23 | 24 | ||
| 24 | build() { | 25 | build() { |
| 25 | Stack() { | 26 | Stack() { |
| @@ -27,7 +28,7 @@ export struct Card5Component { | @@ -27,7 +28,7 @@ export struct Card5Component { | ||
| 27 | .width(CommonConstants.FULL_WIDTH) | 28 | .width(CommonConstants.FULL_WIDTH) |
| 28 | .autoResize(true) | 29 | .autoResize(true) |
| 29 | .borderRadius($r('app.float.image_border_radius')) | 30 | .borderRadius($r('app.float.image_border_radius')) |
| 30 | - if (this.contentDTO.titleShow === 1 && this.contentDTO.newsTitle) { | 31 | + if (this.titleShowPolicy === 1 && this.contentDTO.newsTitle) { |
| 31 | Row() | 32 | Row() |
| 32 | .width(CommonConstants.FULL_WIDTH) | 33 | .width(CommonConstants.FULL_WIDTH) |
| 33 | .height(59) | 34 | .height(59) |
-
Please register or login to post a comment