Showing
2 changed files
with
50 additions
and
0 deletions
| @@ -11,6 +11,7 @@ import { | @@ -11,6 +11,7 @@ import { | ||
| 11 | } from './view/HorizontalStrokeCardThreeTwoRadioForOneComponent'; | 11 | } from './view/HorizontalStrokeCardThreeTwoRadioForOneComponent'; |
| 12 | import { ZhSingleRow04 } from './compview/ZhSingleRow04' | 12 | import { ZhSingleRow04 } from './compview/ZhSingleRow04' |
| 13 | import { ZhSingleColumn04 } from './compview/ZhSingleColumn04' | 13 | import { ZhSingleColumn04 } from './compview/ZhSingleColumn04' |
| 14 | +import { ZhSingleColumn05 } from './compview/ZhSingleColumn05' | ||
| 14 | import { ZhGridLayout03 } from './compview/ZhGridLayout03' | 15 | import { ZhGridLayout03 } from './compview/ZhGridLayout03' |
| 15 | import { CardParser } from './CardParser'; | 16 | import { CardParser } from './CardParser'; |
| 16 | /** | 17 | /** |
| @@ -47,6 +48,8 @@ export struct CompParser { | @@ -47,6 +48,8 @@ export struct CompParser { | ||
| 47 | ZhSingleRow04({ compDTO: compDTO}) | 48 | ZhSingleRow04({ compDTO: compDTO}) |
| 48 | } else if (compDTO.compStyle === CompStyle.Zh_Single_Column_04) { | 49 | } else if (compDTO.compStyle === CompStyle.Zh_Single_Column_04) { |
| 49 | ZhSingleColumn04({ compDTO: compDTO}) | 50 | ZhSingleColumn04({ compDTO: compDTO}) |
| 51 | + } else if (compDTO.compStyle === CompStyle.Zh_Single_Column_05) { | ||
| 52 | + ZhSingleColumn05({ compDTO: compDTO}) | ||
| 50 | } else if (!Number.isNaN(Number(compDTO.compStyle))) { | 53 | } else if (!Number.isNaN(Number(compDTO.compStyle))) { |
| 51 | CardParser({ contentDTO: compDTO.operDataList[0]}); | 54 | CardParser({ contentDTO: compDTO.operDataList[0]}); |
| 52 | } | 55 | } |
| 1 | +import { CommonConstants } from 'wdConstant'; | ||
| 2 | +import { Action, CompDTO, Params } from 'wdBean'; | ||
| 3 | +import { WDRouterRule } from 'wdRouter'; | ||
| 4 | + | ||
| 5 | +const TAG = 'Zh_Single_Column-05'; | ||
| 6 | + | ||
| 7 | +/** | ||
| 8 | + * 人民号入住卡 | ||
| 9 | + * 枚举值 Zh_Single_Column-05 | ||
| 10 | + */ | ||
| 11 | +@Entry | ||
| 12 | +@Component | ||
| 13 | +export struct ZhSingleColumn05 { | ||
| 14 | + @State compDTO: CompDTO = {} as CompDTO | ||
| 15 | + | ||
| 16 | + build() { | ||
| 17 | + Row() { | ||
| 18 | + Image($r('app.media.rmh_join_log')) | ||
| 19 | + .height(18) | ||
| 20 | + .margin({ right: 10 }) | ||
| 21 | + Text('快速入住通道') | ||
| 22 | + Image($r('app.media.arrow_icon_right')) | ||
| 23 | + .width(16) | ||
| 24 | + .height(16) | ||
| 25 | + } | ||
| 26 | + .width(CommonConstants.FULL_WIDTH) | ||
| 27 | + .padding({ | ||
| 28 | + left: $r('app.float.card_comp_pagePadding_lf'), | ||
| 29 | + right: $r('app.float.card_comp_pagePadding_lf'), | ||
| 30 | + top: $r('app.float.card_comp_pagePadding_tb'), | ||
| 31 | + bottom: $r('app.float.card_comp_pagePadding_tb') | ||
| 32 | + }) | ||
| 33 | + .backgroundColor($r('app.color.color_fff')) | ||
| 34 | + .justifyContent(FlexAlign.Center) | ||
| 35 | + .onClick(() => { | ||
| 36 | + let taskAction: Action = { | ||
| 37 | + type: 'JUMP_H5_BY_WEB_VIEW', | ||
| 38 | + params: { | ||
| 39 | + url: this.compDTO.linkUrl | ||
| 40 | + } as Params, | ||
| 41 | + }; | ||
| 42 | + WDRouterRule.jumpWithAction(taskAction) | ||
| 43 | + }) | ||
| 44 | + } | ||
| 45 | +} | ||
| 46 | + | ||
| 47 | + |
-
Please register or login to post a comment