identity_upload.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <template>
  2. <view class="total-page page-env-160 page-box">
  3. <Nav :title="'身份证上传'" :is_fixed="true" :opacity="scrollTop">
  4. <view>
  5. <view class="sys-background-fff p-30 m-30 r-30">
  6. <text class="size-30 sys-weight-600">身份证上传认证照片</text>
  7. <view class="size-26 m-t10 text-color-999">仅用于公安网核实身份</view>
  8. <view class="row-justify-sb center size-28 p-b10 m-t40">
  9. <view class="picture-item">
  10. <image src="/static/img/information/identity-front.png" mode="aspectFill"></image>
  11. <view class="picture-text button-background text-color-fff">
  12. 拍摄人像面
  13. </view>
  14. </view>
  15. <view class="picture-item">
  16. <image src="/static/img/information/identity-verso.png" mode="aspectFill"></image>
  17. <view class="picture-text button-background text-color-fff">
  18. 拍摄国徽面
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. <view class="sys-background-fff p-30 m-lr30 m-t20 r-30">
  24. <text class="size-30 sys-weight-600">身份证上传认证照片</text>
  25. <view class="size-26 m-t10 text-color-999">仅用于公安网核实身份</view>
  26. <view class="row-justify-sb center size-26 m-t40">
  27. <view class="column-c" v-for="(item,index) in hintList" :key="index">
  28. <view class="picture-box">
  29. <image class="picture-hint" :src="`/static/img/information/${item.image}.png`"
  30. mode="aspectFill"></image>
  31. <image class="wh-30 picture-icon"
  32. :src="item.is_correct?'/static/img/information/hint-vector.png':'/static/img/information/hint-subtract.png'"
  33. mode="aspectFill"></image>
  34. </view>
  35. <view class="picture-text size-24 text-color-999 m-t20">
  36. {{item.name}}
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. <EnButton :text="'完成'" @onSubmit="onSubmit">
  42. </EnButton>
  43. </view>
  44. </Nav>
  45. </view>
  46. </template>
  47. <!-- correct -->
  48. <script>
  49. export default {
  50. components: {},
  51. data() {
  52. return {
  53. scrollTop: 0,
  54. hintList: [{
  55. name: '标准照片',
  56. image: 'hint-one',
  57. is_correct: true
  58. }, {
  59. name: '边框缺失',
  60. image: 'hint-two',
  61. is_correct: false
  62. }, {
  63. name: '照片模糊',
  64. image: 'hint-three',
  65. is_correct: false
  66. }, {
  67. name: '闪光强烈',
  68. image: 'hint-four',
  69. is_correct: false
  70. }, ]
  71. }
  72. },
  73. onPageScroll(res) {
  74. this.scrollTop = res.scrollTop / 120
  75. },
  76. onLoad() {},
  77. methods: {
  78. // 完成
  79. onSubmit() {
  80. this.step = 4
  81. }
  82. }
  83. }
  84. </script>
  85. <style lang="scss" scoped>
  86. .picture-box {
  87. position: relative;
  88. }
  89. .picture-item {
  90. width: 300rpx;
  91. height: 250rpx;
  92. image {
  93. width: 100%;
  94. height: 170rpx;
  95. }
  96. .picture-text {
  97. height: 80rpx;
  98. line-height: 80rpx;
  99. text-align: center;
  100. border-radius: 0 0 30rpx 30rpx;
  101. }
  102. }
  103. .picture-icon {
  104. position: absolute;
  105. bottom: -6rpx;
  106. left: 45rpx;
  107. z-index: 10;
  108. }
  109. .picture-hint {
  110. width: 120rpx;
  111. height: 80rpx;
  112. background: #F7F9FE;
  113. border-radius: 10rpx 10rpx 10rpx 10rpx;
  114. }
  115. </style>