ocr.wxml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <!--pages/ocr/ocr.wxml-->
  2. <view class="container1">
  3. <!-- 拍照示例边框 -->
  4. <view class="border-tip">
  5. <!-- 提示语1 -->
  6. <view class="tip">
  7. <text wx:if="{{isChinese}}">{{tip.title.ch}}</text>
  8. <text wx:if="{{!isChinese}}">{{tip.title.en}}</text>
  9. </view>
  10. <!-- 护照区域 -->
  11. <view class="passport-area">
  12. <image wx:if="{{isChinese}}" src="https://tx.hz-hanghui.com:8088/yx-fyzd/file/icon/passportCh.png"></image>
  13. <image wx:if="{{!isChinese}}" src="https://tx.hz-hanghui.com:8088/yx-fyzd/file/icon/passportEn.png"></image>
  14. <image src="https://tx.hz-hanghui.com:8088/yx-fyzd/file/icon/scanning.gif"></image>
  15. </view>
  16. <!-- 提示语2 -->
  17. <view class="tip">
  18. <text wx:if="{{isChinese}}">{{tip.sub_title.ch}}</text>
  19. <text wx:if="{{!isChinese}}">{{tip.sub_title.en}}</text>
  20. </view>
  21. <!-- 提示3 -->
  22. <view class="icon-area">
  23. <view class="icon">
  24. <image src="../../static/ocr/without_block.png"></image>
  25. <text wx:if="{{isChinese}}">{{tip.sub_tip_one.ch}}</text>
  26. <text wx:if="{{!isChinese}}">{{tip.sub_tip_one.en}}</text>
  27. </view>
  28. <view class="icon">
  29. <image src="../../static/ocr/keep_bright.png"></image>
  30. <text wx:if="{{isChinese}}">{{tip.sub_tip_two.ch}}</text>
  31. <text wx:if="{{!isChinese}}">{{tip.sub_tip_two.en}}</text>
  32. </view>
  33. <view class="icon">
  34. <image src="../../static/ocr/front.png"></image>
  35. <text wx:if="{{isChinese}}">{{tip.sub_tip_three.ch}}</text>
  36. <text wx:if="{{!isChinese}}">{{tip.sub_tip_three.en}}</text>
  37. </view>
  38. </view>
  39. </view>
  40. <!-- 操作区域 -->
  41. <view class="do-area">
  42. <view class="title" wx:if="{{isChinese}}">{{tip.do_area.ch}}</view>
  43. <view class="title" wx:if="{{!isChinese}}">{{tip.do_area.en}}</view>
  44. <!-- 选择证件类型 -->
  45. <view class="picker-area">
  46. <van-cell-group>
  47. <!-- 证件类型 -->
  48. <van-cell border="{{ false }}" required title="{{isChinese?tip.papers_type.ch:tip.papers_type.en}}" is-link use-label-slot>
  49. <view>
  50. <picker value="{{type_index}}" range="{{type_list}}" range-key="{{isChinese?'name_ch':'name_en'}}" bindchange="chooseType">
  51. <view wx:if="{{isChinese}}">{{type_index != null?type_list[type_index].name_ch:tip.papers_type.ch}}</view>
  52. <view wx:if="{{!isChinese}}">{{type_index != null?type_list[type_index].name_en:tip.papers_type.en}}</view>
  53. </picker>
  54. </view>
  55. </van-cell>
  56. </van-cell-group>
  57. </view>
  58. <!-- 护照验证 -->
  59. <view class="btn-area">
  60. <button wx:if="{{isChinese}}" bindtap="doOCR">{{tip.submit.ch}}</button>
  61. <button wx:if="{{!isChinese}}"bindtap="doOCR">{{tip.submit.en}}</button>
  62. </view>
  63. </view>
  64. </view>