ZhSingleColumn05.ets 1.47 KB
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%')

  }
}