ZhSingleColumn05.ets
1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import { CommonConstants } from 'wdConstant';
import { Action, CompDTO, Params } from 'wdBean';
import { WDRouterRule } from 'wdRouter';
import { InfomationCardClick } from '../../utils/infomationCardClick'
const TAG = 'Zh_Single_Column-05';
/**
* 人民号入住卡
* 枚举值 Zh_Single_Column-05
*/
@Component
export struct ZhSingleColumn05 {
@State pageId: string = '';
@State pageName: string = '';
@State compDTO: CompDTO = {} as CompDTO
build() {
Row() {
Row(){
Image($r('app.media.rmh_join_log'))
.height(18)
.margin({ right: 10 })
Text('快速入住通道')
Image($r('app.media.arrow_icon_right'))
.width(16)
.height(16)
}
.padding(10)
.width(CommonConstants.FULL_WIDTH)
.backgroundColor($r('app.color.color_F9F9F9'))
.justifyContent(FlexAlign.Center)
.borderRadius($r('app.float.button_border_radius'))
.onClick(() => {
// InfomationCardClick.track(this.compDTO, this.contentDTO, this.pageId, this.pageName)
let taskAction: Action = {
type: 'JUMP_H5_BY_WEB_VIEW',
params: {
url: this.compDTO.linkUrl
} as Params,
};
WDRouterRule.jumpWithAction(taskAction)
})
}
.padding({
left: 10,
right: 10,
top: $r('app.float.card_comp_pagePadding_tb'),
bottom: $r('app.float.card_comp_pagePadding_tb')
})
.backgroundColor(0xffffff)
.width('100%')
}
}