无码人妻精品一区二区三区蜜桃,丰满少妇高潮惨叫正在播放,日韩成人av无码一区二区三区,国产在线亚州精品内射

DONSEE東信智能 - 身份證社??ㄗx卡智能終端應用服務商

eastcoms@qq.com
400-6722-705
首頁 > 服務支持專區(qū) > 產品支持 > SDK開發(fā)包和軟件下載

EST-100/EST-100GS/EST-J13X系列Harmony鴻蒙系統(tǒng)開發(fā)包(含身份證、社??āPU、M1、磁條卡、銀行卡等卡)

來源:gzwubang.com   標簽:鴻蒙 OpenHarmony 開源鴻蒙 身份證閱讀器 SDK   發(fā)布時間: 2023-11-14 11:39:52

廣東東信智能科技有限公司EST免驅系列產品

廣東東信智能科技有限公司DONSEE EST-100多功能智能卡讀寫器系列開源鴻蒙開發(fā)包(含身份證、社??āPU、M1、磁條卡、銀行卡等卡),支持EST-100、EST-100G、EST-J13X、EST-100GS等機型,僅供開發(fā)人員和測試人員使用。

鴻蒙測試版本:OpenHarmony 3.2 、4.0、4.1

demo開發(fā)語言:ArkTS,支持定制提供C語言調用的so庫開發(fā)使用。


開源鴻蒙系統(tǒng)開發(fā)包下載地址:

OpenHarmony開源鴻蒙SDK開發(fā)包V1.0.3-20241204↓


開源鴻蒙系統(tǒng)SDK更新中,可聯系公司商務發(fā)送最新版SDK開發(fā)包。

產品銷售咨詢:138-2221-6429

鴻蒙技術咨詢:139-2221-0502


開源鴻蒙系統(tǒng)開發(fā)包功能演示

開源鴻蒙系統(tǒng)開發(fā)包身份證閱讀器功能演示

開源鴻蒙系統(tǒng)開發(fā)包社??ㄗx卡器功能演示

開源鴻蒙系統(tǒng)開發(fā)包社??ㄗx卡器功能演示


import CommonContants from '../common/CommonContants';

import DonseeDevice from '@ohos/DonseeDevice/src/main/ets/model/DonseeDevice';

import { IDCardInfor } from '@ohos/DonseeDevice/src/main/ets/model/IDCardInfor';

/**

* 身份證讀卡頁面

* 廣東東信智能科技有限公司

* gzwubang.com

 */

@Component

export struct IDCardComponent {

  @State tvResult: string = '';

  @State imgBase64: string = '';

  @State imageVisible: Visibility = Visibility.None;

  @State nType : number =  1;//0,文本信息;1,文本+照片;2,文本+照片+指紋

  @Provide showSelector: boolean = false // 是否展開下拉菜單

  @Provide modesData: any = [{id: 1,name: '文本信息'},{id: 2,name: '文本照片'},{id: 3,name: '文本照片指紋'}]

  @Provide modeId: number = 0 // 當前選中項id

  build() {

        Column() {

          Row() {

            Column() {

            Image(this.imgBase64)

              .visibility(this.imageVisible)

              .width(51)

              .height(63)

              .objectFit(ImageFit.Contain)

            Text(this.tvResult)

              .fontSize(10)

              .margin({ top: 2 })

            }

            .layoutWeight(1)

            .margin({left:10})

            .alignItems(HorizontalAlign.Start)

            Column() {

              Column() {

                Row() {

                  Radio({ value: "文本", group: "1234" })

                    .checked(this.nType === 0 ? true : false)

                    .height(20)

                    .width(20)

                    .onClick(() => {

                      this.nType = 0;

                    })

                  Text('文本')

                }.margin({ left: 10 })

                Row() {

                  Radio({ value: "文本照片", group: "1234" })

                    .checked(this.nType === 1 ? true : false)

                    .height(20)

                    .width(20)

                    .onClick(() => {

                      this.nType = 1;

                      console.info("Radio  onClick")

                    })

                  Text('文本照片')

                }.margin({ left: 10 })

                Row() {

                  Radio({ value: "文本照片指紋", group: "1234" })

                    .checked(this.nType === 2 ? true : false)

                    .height(20)

                    .width(20)

                    .onClick(() => {

                      this.nType = 2;

                      console.info("Radio  onClick")

                    })

                  Text('文本照片指紋')

                }.margin({ left: 10 })

              }.justifyContent(FlexAlign.Start)

              .alignItems(HorizontalAlign.Start)

              Button("讀身份證")

                .fontSize($r('app.float.submit_button_font_size'))

                .fontWeight(CommonContants.FONT_WEIGHT)

                .height(30)

                .width(120)

                .onClick(() => {

                  let idInfo:IDCardInfor = DonseeDevice.Donsee_ReadIDCard(this.nType)

                  console.info("result: " + idInfo.result)

                  if(idInfo.result==0){

                    if(idInfo.ENfullnameOther.length>0){

                      idInfo.ENfullname += idInfo.ENfullnameOther

                    }

                    this.tvResult =

                     "中文姓名:"+ idInfo.name+"   "

                    +"英文姓名:"+ idInfo.ENfullname+"\n"

                    +"性    別:"+ idInfo.sex+"      "

                    +"民    族:"+ idInfo.people+"  "

                    +"出生日期:"+ idInfo.birthday+"\n"

                    +"家庭住址:"+ idInfo.address+"\n"

                    +"身份證號:"+ idInfo.number+"\n"

                    +"簽發(fā)單位:"+ idInfo.organs+"    "

                    +"國籍代碼:"+ idInfo.nationality+"\n"

                    +"有效期限:"+ idInfo.signdate+" - "+ idInfo.validterm+"\n"

                    +"證件類別:"+ idInfo.certType+"    "

                    +"證件版本:"+ idInfo.certVersion+"\n"

                    +"通行證號:"+ idInfo.passNu+"    "

                    +"換證次數:"+ idInfo.changCount+"\n"

                    +"簽發(fā)數次:"+ idInfo.signCount+"     "

                    +"既往版本:"+ idInfo.oldNumber+"\n"

                    +"指紋:"+ idInfo.figData+"\n"

                    if(idInfo.imgBase64.length>0){

                      this.imgBase64 = 'data:image/png;base64,'+idInfo.imgBase64

                      this.imageVisible = Visibility.Visible

                    }else{

                      this.imageVisible = Visibility.None

                    }

                  }else{

                    this.imgBase64 = ''

                    this.tvResult =    "讀取失?。?quot;+ idInfo.result

                  }

                }).margin({top:10})

              Button("身份證ID")

                .fontSize($r('app.float.submit_button_font_size'))

                .fontWeight(CommonContants.FONT_WEIGHT)

                .height(30)

                .width(120)

                .onClick(() => {

                  let[result,data] = DonseeDevice.Donsee_ReadIDCardUid()

                  if(result == 0){

                    this.tvResult =  "Uid:"+ data

                  }else{

                    this.tvResult =  "Uid讀取失敗:"+ result

                  }

                }).margin({top:10})

            }.justifyContent(FlexAlign.End)

            .margin({right:10})

          }.justifyContent(FlexAlign.Start)

          .width(CommonContants.FULL_PARENT)

        }.justifyContent(FlexAlign.Start)

        .backgroundColor($r('app.color.card_background'))

        .width(CommonContants.FULL_PARENT)

        .height(CommonContants.FULL_PARENT)

      }

  // 獲取選中項的內容

  getSelectedText() {

    const selectedItem = this.modesData.find(item => {

      console.info('this.modeId==='+this.modeId)

      console.info('item.id==='+item.id)

      return item.id == this.modeId

    })

    if (selectedItem) {

      console.info('selectedItem.name==='+selectedItem.name)

      return selectedItem.name

    }

    return ''

  }

}



 

 
QQ在線咨詢