success.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <template>
  2. <view class="success-container">
  3. <!-- 用户头像 -->
  4. <view class="avatar-container">
  5. <view class="avatar-circle"></view>
  6. </view>
  7. <!-- 面试结束提示 -->
  8. <view class="interview-status">
  9. <text class="status-text">AI面试已结束</text>
  10. </view>
  11. <!-- 提示信息 -->
  12. <view class="tips-container">
  13. <text class="tips-text">本次面试的全部环节已结束,非常感谢您的参与</text>
  14. </view>
  15. <!-- 底部按钮 -->
  16. <view class="btn-container">
  17. <button class="confirm-btn" @click="goBack">我知道了</button>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. import { apiBaseUrl } from '@/common/config.js';
  23. export default {
  24. data() {
  25. return {
  26. interviewInfo: {
  27. position: '前端岗位',
  28. startTime: '2024/06/28 14:48',
  29. endTime: '2024/06/28 16:47',
  30. company: '敏龙科技集团有限公司'
  31. }
  32. }
  33. },
  34. onLoad() {
  35. this.completeInterview()
  36. },
  37. methods: {
  38. async completeInterview() {
  39. try {
  40. const result = await uni.request({
  41. url: `${apiBaseUrl}/api/job/complete_interview`,
  42. method: 'POST',
  43. data: {
  44. "application_id": JSON.parse(uni.getStorageSync('appId')),
  45. "tenant_id": JSON.parse(uni.getStorageSync('userInfo')).tenant_id
  46. }
  47. });
  48. // if (result.statusCode === 200) {
  49. // console.log('面试完成状态已更新');
  50. // } else {
  51. // console.error('更新面试状态失败');
  52. // }
  53. } catch (error) {
  54. // console.error('请求失败:', error);
  55. }
  56. },
  57. goBack() {
  58. uni.switchTab({
  59. url: '/pages/index/index'
  60. });
  61. }
  62. }
  63. }
  64. </script>
  65. <style>
  66. .success-container {
  67. display: flex;
  68. flex-direction: column;
  69. align-items: center;
  70. min-height: 100vh;
  71. background-color: #ffffff;
  72. padding: 30rpx;
  73. }
  74. .avatar-container {
  75. margin-top: 100rpx;
  76. margin-bottom: 40rpx;
  77. }
  78. .avatar-circle {
  79. width: 180rpx;
  80. height: 180rpx;
  81. background-color: #f5f5f5;
  82. border-radius: 50%;
  83. position: relative;
  84. }
  85. .avatar-circle::after {
  86. content: '';
  87. position: absolute;
  88. bottom: -30rpx;
  89. left: 50%;
  90. transform: translateX(-50%);
  91. width: 120rpx;
  92. height: 60rpx;
  93. background-color: #f5f5f5;
  94. border-radius: 60rpx 60rpx 0 0;
  95. }
  96. .interview-status {
  97. margin-top: 60rpx;
  98. margin-bottom: 20rpx;
  99. }
  100. .status-text {
  101. font-size: 36rpx;
  102. color: #007AFF;
  103. font-weight: normal;
  104. }
  105. .tips-container {
  106. padding: 0 60rpx;
  107. text-align: center;
  108. margin-bottom: 60rpx;
  109. }
  110. .tips-text {
  111. font-size: 28rpx;
  112. color: #999999;
  113. line-height: 1.5;
  114. }
  115. .btn-container {
  116. margin-top: 80rpx;
  117. width: 100%;
  118. padding: 0 40rpx;
  119. }
  120. .confirm-btn {
  121. width: 100%;
  122. height: 90rpx;
  123. line-height: 90rpx;
  124. background-color: #ffffff;
  125. color: #333333;
  126. border-radius: 45rpx;
  127. font-size: 32rpx;
  128. border: 1px solid #e0e0e0;
  129. }
  130. </style>