fail.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <template>
  2. <view class="container">
  3. <uni-icons type="clear" size="60" color="#28d87d" style="margin-top: 5vh;"></uni-icons>
  4. <text class="title">人脸采集失败</text>
  5. <view class="line"></view>
  6. <view class="fontBox">
  7. <text class="biaoti">温馨提示</text>
  8. <text class="content">您可以通过以下方式提高通过率</text>
  9. <text class="content">1.录制时,保持头部居中,光线充足,面部无遮挡</text>
  10. <text class="content">2.请确保动作连贯完整</text>
  11. </view>
  12. <button class="buttonClass" @click="restart">重新录制</button>
  13. <button class="buttonClass1" @click="quit">退出</button>
  14. </view>
  15. </template>
  16. <script>
  17. export default {
  18. methods: {
  19. restart() {
  20. uni.navigateTo({
  21. url: '/pages/test/index'
  22. })
  23. },
  24. restart() {
  25. uni.navigateTo({
  26. url: '/pages/test/index'
  27. })
  28. },
  29. quit() {
  30. uni.switchTab({
  31. url: '/pages/index/index'
  32. })
  33. },
  34. },
  35. };
  36. </script>
  37. <style scoped>
  38. .container {
  39. display: flex;
  40. flex-direction: column;
  41. align-items: center;
  42. }
  43. .title {
  44. margin-top: 1vh;
  45. font-size: 24px;
  46. }
  47. .fontBox {
  48. display: flex;
  49. flex-direction: column;
  50. width: 80%;
  51. margin-top: 3vh;
  52. .biaoti {
  53. font-weight: 800;
  54. min-height: 4vh;
  55. }
  56. .content {
  57. font-weight: 400;
  58. line-height: 4vh;
  59. font-size: 3vw;
  60. }
  61. }
  62. .line {
  63. border: 1px solid rgba(204, 204, 204, 1);
  64. width: 80%;
  65. margin-top: 8vh;
  66. }
  67. .buttonClass {
  68. margin-top: 5vh;
  69. width: 80%;
  70. border-radius: 5.8vw;
  71. background: #28d87d;
  72. color: white;
  73. height: 5vh;
  74. display: flex;
  75. align-items: center;
  76. justify-content: center;
  77. box-shadow: 0rpx 4rpx 10rpx 1rpx rgba(40, 216, 125, 0.4);
  78. }
  79. .buttonClass1 {
  80. margin-top: 2vh;
  81. width: 80%;
  82. color: rgba(40, 216, 125, 1);
  83. border-radius: 5.8vw;
  84. /* background: #28d87d; */
  85. border: 1px solid rgba(40, 216, 125, 1);
  86. height: 5vh;
  87. display: flex;
  88. align-items: center;
  89. justify-content: center;
  90. /* box-shadow: 0rpx 4rpx 10rpx 1rpx rgba(40, 216, 125, 0.4); */
  91. }
  92. </style>