face_verify.wxml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <wxs src="../../utils/util/util.wxs" module="util" />
  2. <!--components/face_verify/face_verify.wxml-->
  3. <view class="msg_info">
  4. <!-- 标题 -->
  5. <view class="title">{{international.Personnel_information[language]}}</view>
  6. <!-- 内容 -->
  7. <view>
  8. <view>
  9. <!-- <view class="tips" wx:if="{{needLoginList.length==0 && language === 'ch'&&!isDisabled }}">点击【认证】按钮一键登录</view> -->
  10. <van-cell-group border="{{ false }}">
  11. <!-- 外宾 -->
  12. <block wx:if="{{false}}">
  13. <!-- 护照原图 -->
  14. <view class="cu-form-group height">
  15. <view class="title"><text>{{international.passport_picture[language]}}</text></view>
  16. <view class="img_box">
  17. <image src="{{myUserInfo.passportUrl || '../../static/images/default_img.png'}}" class="img" bindtap="previewImg" data-src="{{myUserInfo.passportUrl || ''}}"></image>
  18. </view>
  19. </view>
  20. <!-- 护照头像 -->
  21. <view class="cu-form-group height">
  22. <view class="title"><text>{{international.passport_avatar[language]}}</text></view>
  23. <view class="img_box">
  24. <image src="{{myUserInfo.hztx || '../../static/images/default_img.png'}}" class="img" bindtap="previewImg" data-src="{{myUserInfo.hztx || ''}}"></image>
  25. </view>
  26. </view>
  27. <!-- 比对照片 -->
  28. <view class="cu-form-group height">
  29. <view class="title"><text>{{international.face_photo[language]}}</text></view>
  30. <view class="img_box">
  31. <image src="{{myUserInfo.avatar || '../../static/images/default_img.png'}}" class="img" bindtap="previewImg" data-src="{{myUserInfo.avatar || ''}}"></image>
  32. </view>
  33. </view>
  34. <!-- 国家代码 -->
  35. <van-field class="label" value="{{myUserInfo.countryCode}}" label="{{international.country_code[language]}}" input-align="right" border="{{ false }}" disabled="{{true}}" />
  36. <!-- 出生日期 -->
  37. <van-field class="label" value="{{myUserInfo.birthday}}" label="{{international.birthday[language]}}" input-align="right" border="{{ false }}" disabled="{{true}}" />
  38. <!-- 性别 -->
  39. <van-field class="label" value="{{myUserInfo.gender}}" label="{{international.sex[language]}}" input-align="right" border="{{ false }}" disabled="{{true}}" />
  40. <!-- 护照有效期 -->
  41. <van-field class="label" value="{{myUserInfo.efficientTime}}" label="{{international.passport_validity[language]}}" input-align="right" border="{{ false }}" disabled="{{true}}" />
  42. </block>
  43. <!-- 通用内外宾 -->
  44. <block wx:if="{{ myUserInfo || language == 'ch'}}">
  45. <!-- 姓名 -->
  46. <van-field wx:if="{{util.indexOf(needLoginList,1)>-1}}" clearable class="label" value="{{username}}" bindinput="getInputName" label="{{international.name[language]}}" placeholder="{{international.name_tit[language]}}" input-align="right" border="{{ false }}" disabled="{{isDisabled || language == 'en'}}" error-message="{{!warnName.status?warnName.errMsg:''}}" error-message-align="right" />
  47. <!-- 身份证号 -->
  48. <van-field maxlength="{{18}}" wx:if="{{util.indexOf(needLoginList,2)>-1}}" clearable value="{{myUserInfo&&isDisabled?util.desensitization(idNumber,6,14):idNumber}}" bindinput="getInputIdcard" label="{{international.idNumber[language]}}" placeholder="{{international.idNumber_tit[language]}}" input-align="right" border="{{ false }}" type="idcard" disabled="{{isDisabled || language == 'en'}}" error-message="{{!warnIdcard.status?warnIdcard.errMsg:''}}" error-message-align="right" />
  49. <!-- 卡号 -->
  50. <van-field wx:if="{{util.indexOf(needLoginList,4)>-1}}" clearable value="{{cardIdEx}}" bindinput="getCardNumber" label="{{international.Card_number[language]}}" placeholder="{{international.card_prompt[language]}}" input-align="right" border="{{ false }}" type="cardIdEx" disabled="{{isDisabled}}" error-message="{{!warnCardId.status?warnCardId.errMsg:''}}" error-message-align="right" />
  51. <!-- 手机号 -->
  52. <van-field wx:if="{{util.indexOf(needLoginList,3)>-1&&needPhone}}" clearable value="{{myUserInfo&&isDisabled?util.desensitization(phone,3,7):phone}}" bindinput="getInputPhone" placeholder="{{international.Phone_prompt[language]}}" label="{{international.Phone[language]}}" error-message="{{!warnPhone.status?warnPhone.errMsg:''}}" error-message-align="right" input-align="right" border="{{ false }}" type="number" disabled="{{isDisabled}}" />
  53. <van-cell wx:if="{{util.indexOf(needLoginList,3)>-1&&!needPhone}}" title-class="line-height {{isDisabled?'info':''}}" title="{{international.Phone[language]}}" border="{{ false }}">
  54. <view class="phone-css">{{phone}}</view>
  55. <button slot="right-icon" class="btn btn1" open-type="getPhoneNumber" disabled="{{isDisabled}}" bindgetphonenumber="getPhoneNumber">
  56. {{international.Gain[language]}}
  57. </button>
  58. </van-cell>
  59. </block>
  60. </van-cell-group>
  61. </view>
  62. <!-- 按钮区 -->
  63. <!-- 外宾发起ocr -->
  64. <view wx:if="{{language === 'en' && !isDisabled && !myUserInfo}}">
  65. <view class="btn-area">
  66. <button hover-class="btn-click-submit" hover-stay-time="100" bindtap="goOCR">{{international.clickAuthentication[language]}}</button>
  67. </view>
  68. </view>
  69. <!-- 提交按钮 -->
  70. <view class="btn-area" wx:if="{{(language === 'ch' && !isDisabled) || (language === 'en' && !isDisabled && myUserInfo)}}">
  71. <button bindtap="Certification" wx-if="{{language === 'ch' && !isDisabled}}">{{international.Certification[language]}}</button>
  72. <button hover-class="btn-click-submit" hover-stay-time="100" bindtap="update" wx-if="{{language === 'en' && !isDisabled && myUserInfo}}">{{international.confirm[language]}}</button>
  73. </view>
  74. </view>
  75. </view>