success.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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: '',
  29. endTime: '',
  30. company: ''
  31. }
  32. }
  33. },
  34. onLoad() {
  35. this.completeInterview()
  36. },
  37. methods: {
  38. async completeInterview() {
  39. try {
  40. // 完成面试的请求
  41. const completeResult = await uni.request({
  42. url: `${apiBaseUrl}/api/job/complete_interview`,
  43. method: 'POST',
  44. data: {
  45. "application_id": JSON.parse(uni.getStorageSync('appId')),
  46. "tenant_id": JSON.parse(uni.getStorageSync('userInfo')).tenant_id
  47. }
  48. });
  49. // 触发综合分析的请求
  50. const analysisResult = await uni.request({
  51. url: `${apiBaseUrl}/api/job/trigger_comprehensive_analysis`,
  52. method: 'POST',
  53. data: {
  54. "application_id": JSON.parse(uni.getStorageSync('appId')),
  55. "tenant_id": JSON.parse(uni.getStorageSync('userInfo')).tenant_id
  56. }
  57. });
  58. // if (completeResult.statusCode === 200 && analysisResult.statusCode === 200) {
  59. // console.log('面试完成状态已更新,综合分析已触发');
  60. // } else {
  61. // console.error('操作失败');
  62. // }
  63. } catch (error) {
  64. // console.error('请求失败:', error);
  65. }
  66. },
  67. goBack() {
  68. uni.switchTab({
  69. url: '/pages/index/index'
  70. });
  71. }
  72. }
  73. }
  74. </script>
  75. <style>
  76. .success-container {
  77. display: flex;
  78. flex-direction: column;
  79. align-items: center;
  80. min-height: 100vh;
  81. background-color: #ffffff;
  82. padding: 30rpx;
  83. }
  84. .avatar-container {
  85. margin-top: 100rpx;
  86. margin-bottom: 40rpx;
  87. }
  88. .avatar-circle {
  89. width: 180rpx;
  90. height: 180rpx;
  91. background-color: #f5f5f5;
  92. border-radius: 50%;
  93. position: relative;
  94. }
  95. .avatar-circle::after {
  96. content: '';
  97. position: absolute;
  98. bottom: -30rpx;
  99. left: 50%;
  100. transform: translateX(-50%);
  101. width: 120rpx;
  102. height: 60rpx;
  103. background-color: #f5f5f5;
  104. border-radius: 60rpx 60rpx 0 0;
  105. }
  106. .interview-status {
  107. margin-top: 60rpx;
  108. margin-bottom: 20rpx;
  109. }
  110. .status-text {
  111. font-size: 36rpx;
  112. color: #003399;
  113. font-weight: normal;
  114. }
  115. .tips-container {
  116. padding: 0 60rpx;
  117. text-align: center;
  118. margin-bottom: 60rpx;
  119. }
  120. .tips-text {
  121. font-size: 28rpx;
  122. color: #999999;
  123. line-height: 1.5;
  124. }
  125. .btn-container {
  126. margin-top: 80rpx;
  127. width: 100%;
  128. padding: 0 40rpx;
  129. }
  130. .confirm-btn {
  131. width: 100%;
  132. height: 90rpx;
  133. line-height: 90rpx;
  134. background-color: #ffffff;
  135. color: #333333;
  136. border-radius: 45rpx;
  137. font-size: 32rpx;
  138. border: 1px solid #e0e0e0;
  139. }
  140. </style>