Showing
3 changed files
with
12 additions
and
2 deletions
| @@ -66,8 +66,7 @@ export struct CardParser { | @@ -66,8 +66,7 @@ export struct CardParser { | ||
| 66 | Card4Component({ compDTO: this.compDTO, contentDTO, pageId: this.pageId, pageName: this.pageName }) | 66 | Card4Component({ compDTO: this.compDTO, contentDTO, pageId: this.pageId, pageName: this.pageName }) |
| 67 | } else if (contentDTO.appStyle === CompStyle.Card_05) { | 67 | } else if (contentDTO.appStyle === CompStyle.Card_05) { |
| 68 | Card5Component({ compDTO: this.compDTO, contentDTO, titleShowPolicy: this.compDTO.titleShowPolicy, pageId: this.pageId, pageName: this.pageName}) | 68 | Card5Component({ compDTO: this.compDTO, contentDTO, titleShowPolicy: this.compDTO.titleShowPolicy, pageId: this.pageId, pageName: this.pageName}) |
| 69 | - } else if (contentDTO.appStyle === CompStyle.Card_06 || contentDTO.appStyle === CompStyle | ||
| 70 | - .Card_13) { | 69 | + } else if (contentDTO.appStyle === CompStyle.Card_06 ) { |
| 71 | Card6Component({ compDTO: this.compDTO, contentDTO: this.contentDTO, pageId: this.pageId, pageName: this.pageName }) | 70 | Card6Component({ compDTO: this.compDTO, contentDTO: this.contentDTO, pageId: this.pageId, pageName: this.pageName }) |
| 72 | } else if (contentDTO.appStyle === CompStyle.Card_10) { | 71 | } else if (contentDTO.appStyle === CompStyle.Card_10) { |
| 73 | Card10Component({ compDTO: this.compDTO, contentDTO, pageId: this.pageId, pageName: this.pageName }) | 72 | Card10Component({ compDTO: this.compDTO, contentDTO, pageId: this.pageId, pageName: this.pageName }) |
| @@ -5,6 +5,7 @@ import PageModel from '../viewmodel/PageModel'; | @@ -5,6 +5,7 @@ import PageModel from '../viewmodel/PageModel'; | ||
| 5 | import { CardParser } from './CardParser'; | 5 | import { CardParser } from './CardParser'; |
| 6 | import { Card2Component } from './cardview/Card2Component'; | 6 | import { Card2Component } from './cardview/Card2Component'; |
| 7 | import { Card9Component } from './cardview/Card9Component'; | 7 | import { Card9Component } from './cardview/Card9Component'; |
| 8 | +import { Card6Component } from './cardview/Card6Component'; | ||
| 8 | import { Card5Component } from './cardview/Card5Component'; | 9 | import { Card5Component } from './cardview/Card5Component'; |
| 9 | import { AdvCardParser } from './cardViewAdv/AdvCardParser'; | 10 | import { AdvCardParser } from './cardViewAdv/AdvCardParser'; |
| 10 | import { ZhCarouselLayout01 } from './compview/ZhCarouselLayout01'; | 11 | import { ZhCarouselLayout01 } from './compview/ZhCarouselLayout01'; |
| @@ -71,6 +72,7 @@ export struct CompParser { | @@ -71,6 +72,7 @@ export struct CompParser { | ||
| 71 | 72 | ||
| 72 | build() { | 73 | build() { |
| 73 | Column() { | 74 | Column() { |
| 75 | + // Text(JSON.stringify(this.compDTO.compStyle)) | ||
| 74 | this.componentBuilder(); | 76 | this.componentBuilder(); |
| 75 | } | 77 | } |
| 76 | } | 78 | } |
| @@ -140,6 +142,10 @@ export struct CompParser { | @@ -140,6 +142,10 @@ export struct CompParser { | ||
| 140 | //时间链卡 | 142 | //时间链卡 |
| 141 | Card9Component({ compDTO: this.compDTO, contentDTO:this.compDTO.operDataList[0], pageId: this.pageId, pageName: this.pageName }) | 143 | Card9Component({ compDTO: this.compDTO, contentDTO:this.compDTO.operDataList[0], pageId: this.pageId, pageName: this.pageName }) |
| 142 | Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 }) | 144 | Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 }) |
| 145 | + } else if(this.compDTO.compStyle === CompStyle | ||
| 146 | + .Card_13){ | ||
| 147 | + Card6Component({ compDTO: this.compDTO, contentDTO: this.compDTO.operDataList[0], pageId: this.pageId, pageName: this.pageName }) | ||
| 148 | + Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 }) | ||
| 143 | } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Column_04) { | 149 | } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Column_04) { |
| 144 | ZhSingleColumn04({ compDTO: this.compDTO, pageId: this.pageId, pageName: this.pageName }) | 150 | ZhSingleColumn04({ compDTO: this.compDTO, pageId: this.pageId, pageName: this.pageName }) |
| 145 | Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 }) | 151 | Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 }) |
| @@ -86,9 +86,14 @@ export struct Card10Component { | @@ -86,9 +86,14 @@ export struct Card10Component { | ||
| 86 | Column() { | 86 | Column() { |
| 87 | ForEach(this.contentDTO.slideShows, (item: slideShows, index: number) => { | 87 | ForEach(this.contentDTO.slideShows, (item: slideShows, index: number) => { |
| 88 | this.timelineItem(item, index) | 88 | this.timelineItem(item, index) |
| 89 | + if (index < this.contentDTO.slideShows.length - 1) { | ||
| 90 | + // 在不是最后一个元素的情况下添加分隔符 | ||
| 91 | + Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 0, right: 0 }); | ||
| 92 | + } | ||
| 89 | }) | 93 | }) |
| 90 | } | 94 | } |
| 91 | 95 | ||
| 96 | + | ||
| 92 | // 底部-查看更多。根据接口返回的isMore判断是否显示查看更多 | 97 | // 底部-查看更多。根据接口返回的isMore判断是否显示查看更多 |
| 93 | if (this.contentDTO.hasMore == 1) { | 98 | if (this.contentDTO.hasMore == 1) { |
| 94 | Row() { | 99 | Row() { |
-
Please register or login to post a comment