index.axml 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <view class="home">
  2. <!-- 第一部分 -->
  3. <view class="home-content">
  4. <view class="home-content-title">
  5. (一) 接口实名入库
  6. </view>
  7. <view class="home-content-text">
  8. 仅支付宝用户可以实名入库成功;若失败,则为非支付宝用户或其他原因(①有支付宝账号,但未实名认证;②在库中已存在相似人脸)。
  9. </view>
  10. <view class="home-info">
  11. <view class="home-info-item">
  12. <view class="home-info-item-tit">姓名</view>
  13. <input type="text" value="{{certName1}}" placeholder="请输入姓名" onInput="getUserName"></input>
  14. </view>
  15. <view class='home-info-item'>
  16. <view class="home-info-item-tit">身份证号</view>
  17. <input
  18. value="{{certNo1}}"
  19. placeholder="请输入身份证号"
  20. onInput="getCardID"
  21. type="idcard"
  22. />
  23. </view>
  24. <view class="home-btn-area">
  25. <button onTap="upStorage">接口实名入库</button>
  26. </view>
  27. </view>
  28. <view class="home-content-text home-content-text1">
  29. 若支付宝账号所属人要执行入库操作,可以先调用支付宝提供的一键获取三要素能力,再调用接口实名入库。
  30. </view>
  31. <view class="home-info">
  32. <view class="home-btn-area home-btn-area1">
  33. <button onTap="upStorage2">支付宝用户一键入库</button>
  34. </view>
  35. </view>
  36. </view>
  37. <!-- 第二部分 -->
  38. <view class="home-content">
  39. <view class="home-content-title">
  40. (二) 接口匿名入库
  41. </view>
  42. <view class="home-content-text">
  43. 非支付宝用户可以通过采集该用户的姓名,身份证号,人像照片进行匿名入库。
  44. </view>
  45. <view class="home-info">
  46. <view class="home-info-item">
  47. <view class="home-info-item-tit">姓名</view>
  48. <input type="text" value="{{certName2}}" placeholder="请输入姓名" onInput="getUserName2"></input>
  49. </view>
  50. <view class='home-info-item'>
  51. <view class="home-info-item-tit">身份证号</view>
  52. <input
  53. value="{{certNo2}}"
  54. placeholder="请输入身份证号"
  55. onInput="getCardID2"
  56. type="idcard"
  57. />
  58. </view>
  59. <view class='home-info-item home-info-item1'>
  60. <view class="home-info-item-tit" style="margin-bottom:40rpx">拍摄人像照片</view>
  61. <ant-uploader
  62. maxCount='{{1}}'
  63. fileList="{{ fileList }}"
  64. onChange="onChange"
  65. onUpload="{{ onUpload ? onUpload : 'onUpload' }}"
  66. uploadingText="上传中……"
  67. uploadfailedText="上传失败"
  68. onRemove="{{ onRemove ? onRemove : 'onRemove' }}"
  69. />
  70. <!--<view onTap="ChooseImage" class="home-info-img"><view a:if="{{form2.image}}" class="have-photo"><image src="{{'data:image/png;base64,' + form2.image}}" /></view><view a:else class="default-photo"><ant-icon onTap="onSwitch" type="AddOutline" /></view></view> -->
  71. </view>
  72. <view class="home-btn-area">
  73. <button onTap="upStorage3">接口匿名入库</button>
  74. </view>
  75. </view>
  76. </view>
  77. </view>