index.vue 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <template>
  2. <view class="popup">
  3. <u-popup v-model="popupPhotoShow" mode="bottom" border-radius="30" :mask-close-able='false'>
  4. <view class="popup_box">
  5. <view class="head">
  6. <image src="/static/learn/photo_head.png" class="photo_head"></image>
  7. </view>
  8. <view class="warn">温馨提示</view>
  9. <view class="contents">
  10. <view class="words">1、请保证摄像头正对自己,避免头像偏左或者偏右。并离远一点拍照,肩膀要拍到。</view>
  11. <view class="words">2、请勿在灯光昏暗处进行学习,保证拍照环境光线充足(照片太暗或曝光会降低验证通过率)。</view>
  12. <view class="words">3、请保证整个头像在人脸识别区域内,脸部无遮挡装饰物(佩戴眼镜会降低通过率)。</view>
  13. <view class="words">4、拍照时不要开启背景虚化,保证背景清晰。</view>
  14. <view class="words">5、如果下面视频中出现黑屏,摄像头可能被其他进程占用,请关闭其他调用摄像头的程序,重新刷新当前页面重新拍照识别。</view>
  15. <view class="words">6、勿拉进度条或倍数观看。</view>
  16. <view class="words">7、勿使用照片进行识别。</view>
  17. <view class="words">8、规范学习,勿在开车过程进行学习。</view>
  18. <view class="words" style="color: red;">学习过程如出现违规现象,一律打回重修。</view>
  19. </view>
  20. <view class="take_photo" @click="toTakePhoto()">
  21. 去拍照
  22. </view>
  23. </view>
  24. </u-popup>
  25. </view>
  26. </template>
  27. <script>
  28. export default {
  29. name: 'popup',
  30. props: {
  31. popupPhotoShow: {
  32. type: Boolean,
  33. default: false
  34. }
  35. },
  36. data() {
  37. return {
  38. // popupShow: false
  39. }
  40. },
  41. methods: {
  42. toTakePhoto() {
  43. this.$emit('takePhoto', true)
  44. },
  45. }
  46. }
  47. </script>
  48. <style lang="scss" scoped>
  49. .popup_box {
  50. width: 100%;
  51. height: 1100rpx;
  52. display: flex;
  53. align-items: center;
  54. flex-direction: column;
  55. padding: 0rpx 40rpx;
  56. .photo_head {
  57. width: 240rpx;
  58. height: 240rpx;
  59. margin: 80rpx 0rpx 48rpx;
  60. }
  61. .warn {
  62. width: 100%;
  63. font-size: 36rpx;
  64. font-weight: bold;
  65. color: #222222;
  66. margin-bottom: 40rpx;
  67. }
  68. .words {
  69. font-size: 28rpx;
  70. color: #666666;
  71. line-height: 33rpx;
  72. margin-bottom: 24rpx;
  73. }
  74. .take_photo {
  75. width: 412rpx;
  76. height: 84rpx;
  77. line-height: 84rpx;
  78. text-align: center;
  79. background: #01C65A;
  80. border-radius: 16rpx;
  81. font-size: 36rpx;
  82. font-weight: 500;
  83. color: #FFFFFF;
  84. margin-top: 100rpx;
  85. }
  86. }
  87. </style>