interview_success.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <template>
  2. <view class="success-container">
  3. <view class="success-icon">
  4. <image src="http://121.36.251.245:9000/minlong/ze-certificate%201%401x.png" mode="aspectFit"></image>
  5. </view>
  6. <view class="success-title">恭喜完成全部检测</view>
  7. <view class="check-list">
  8. <view class="check-item" v-for="(item, index) in checkItems" :key="index">
  9. <view class="check-index">{{index + 1}}</view>
  10. <view class="check-name">{{item.name}}</view>
  11. <view class="check-status">{{item.status}}</view>
  12. </view>
  13. </view>
  14. <view class="button-group">
  15. <button class="btn-retake" @click="retake">重拍</button>
  16. <button class="btn-next" @click="goNext">下一步</button>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. data() {
  23. return {
  24. checkItems: [
  25. { name: '左手手心', status: '动作检测成功' },
  26. { name: '左手手背', status: '动作检测成功' },
  27. { name: '左手握拳', status: '动作检测成功' },
  28. { name: '右手手心', status: '动作检测成功' },
  29. { name: '右手手背', status: '动作检测成功' },
  30. { name: '右手握拳', status: '动作检测成功' }
  31. ]
  32. }
  33. },
  34. methods: {
  35. retake() {
  36. // 返回到拍照页面
  37. uni.navigateBack();
  38. },
  39. goNext() {
  40. // 关闭所有页面,打开新页面
  41. uni.reLaunch({
  42. url: '/pages/success/success'
  43. });
  44. }
  45. }
  46. }
  47. </script>
  48. <style>
  49. .success-container {
  50. display: flex;
  51. flex-direction: column;
  52. align-items: center;
  53. padding: 40rpx 30rpx;
  54. }
  55. .success-icon {
  56. margin-top: 162rpx;
  57. width: 160rpx;
  58. height: 160rpx;
  59. }
  60. .success-icon image {
  61. width: 100%;
  62. height: 100%;
  63. }
  64. .success-title {
  65. font-size: 36rpx;
  66. font-weight: bold;
  67. margin: 30rpx 0 50rpx;
  68. }
  69. .check-list {
  70. width: 100%;
  71. margin-bottom: 60rpx;
  72. display: flex;
  73. flex-direction: column;
  74. align-content: center;
  75. flex-wrap: wrap;
  76. }
  77. .check-item {
  78. display: flex;
  79. align-items: center;
  80. margin-bottom: 20rpx;
  81. }
  82. .check-index {
  83. width: 40rpx;
  84. height: 40rpx;
  85. border-radius: 50%;
  86. background-color: #f0f0f0;
  87. color: #999;
  88. display: flex;
  89. justify-content: center;
  90. align-items: center;
  91. font-size: 24rpx;
  92. margin-right: 20rpx;
  93. }
  94. .check-name {
  95. margin-right: 20px;
  96. font-size: 28rpx;
  97. color: #333;
  98. }
  99. .check-status {
  100. font-size: 28rpx;
  101. color: #67c23a;
  102. }
  103. .button-group {
  104. display: flex;
  105. width: 100%;
  106. justify-content: space-between;
  107. margin-top: 240rpx;
  108. }
  109. .btn-retake, .btn-next {
  110. width: 45%;
  111. height: 80rpx;
  112. line-height: 80rpx;
  113. text-align: center;
  114. border-radius: 8rpx;
  115. }
  116. .btn-retake {
  117. background-color: #f5f5f5;
  118. color: #333;
  119. border: 1px solid #ddd;
  120. }
  121. .btn-next {
  122. background-color: #003399;
  123. color: #fff;
  124. }
  125. </style>