ResumeEvaluation.vue 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735
  1. <template>
  2. <view class="max-w-4xl mx-auto p-6 relative">
  3. <!-- 页面标题 -->
  4. <view class="bg-[#1d1e3a] text-white p-4 rounded-t-lg">
  5. <view class="flex justify-between items-center">
  6. <view class="text-sm">No.{{ candidateInfo.idNumber }}</view>
  7. <view class="text-sm">2025-03-07 14:42:14</view>
  8. </view>
  9. </view>
  10. <view class="bg-white rounded-b-lg shadow-lg p-6">
  11. <!-- 头部信息 -->
  12. <view class="flex justify-between items-center mb-8 pb-4 border-b">
  13. <view class="flex items-center space-x-4">
  14. <view class="w-20 h-20 bg-gray-200 rounded-lg overflow-hidden">
  15. <image :src="candidateInfo.additionalInfo.faceVerification.images[0]" mode="aspectFill" class="w-full h-full"></image>
  16. </view>
  17. <view>
  18. <text class="text-2xl font-bold">{{ candidateInfo.name }}</text>
  19. <text class="text-gray-600 block">{{ candidateInfo.phoneNumber }}</text>
  20. </view>
  21. </view>
  22. <view class="text-right">
  23. <view class="text-4xl font-bold text-yellow-500">{{ candidateInfo.score }}<text class="text-base ml-1">分</text></view>
  24. <view class="text-sm text-yellow-500">推荐 👍</view>
  25. </view>
  26. </view>
  27. <!-- 基本信息 -->
  28. <view class="grid grid-cols-1 gap-4 mb-8">
  29. <view>
  30. <text class="text-gray-600 block">身份证号</text>
  31. <text>{{ candidateInfo.idNumber }}</text>
  32. </view>
  33. <view>
  34. <text class="text-gray-600 block">入职之后,您缺岗的班次时间段是?</text>
  35. <text>{{ candidateInfo.availabilityPeriod }}</text>
  36. </view>
  37. <view>
  38. <text class="text-gray-600 block">请问您通过面试之后多久可以入职?</text>
  39. <text>{{ candidateInfo.onboardingTime }}</text>
  40. </view>
  41. </view>
  42. <!-- AI维度分析 -->
  43. <view class="mb-8">
  44. <text class="text-xl font-bold mb-6 block">1. AI维度分析</text>
  45. <view class="space-y-6">
  46. <view v-for="(value, key) in candidateInfo.dimensions" :key="key" class="border-b pb-4">
  47. <view class="flex items-center mb-2">
  48. <text class="text-gray-600 w-32">{{ dimensionLabels[key] }}</text>
  49. <text class="ml-4" :class="{
  50. 'text-red-500': value === '欠佳',
  51. 'text-green-500': value === '优秀',
  52. 'text-yellow-500': value === '中等'
  53. }">{{ value }}</text>
  54. </view>
  55. <text class="text-gray-600 text-sm block">{{ candidateInfo.dimensionDetails[key] }}</text>
  56. </view>
  57. </view>
  58. </view>
  59. <!-- DUV分析评估 -->
  60. <view class="mb-8">
  61. <text class="text-xl font-bold mb-6 block">2. DUV分析评估</text>
  62. <view class="space-y-4">
  63. <view v-for="(item, index) in candidateInfo.duvAnalysis" :key="index" class="border-b pb-4">
  64. <view class="flex items-center justify-between mb-2">
  65. <text class="text-gray-600">{{ item.title }}</text>
  66. <text :class="{
  67. 'text-green-500': item.type === 'positive',
  68. 'text-red-500': item.type === 'negative',
  69. 'text-yellow-500': item.type === 'neutral'
  70. }">{{ item.score }}</text>
  71. </view>
  72. <text class="text-gray-600 text-sm block">{{ item.content }}</text>
  73. </view>
  74. </view>
  75. </view>
  76. <!-- 面试记录 -->
  77. <view class="mb-8">
  78. <text class="text-xl font-bold mb-6 block">3. 面试记录</text>
  79. <view class="space-y-6">
  80. <view v-for="(record, index) in candidateInfo.interviewRecord" :key="index" class="border-b pb-4">
  81. <view class="mb-2">
  82. <text class="font-semibold block">问题:{{ record.question }}</text>
  83. <text class="text-gray-600 mt-2 block">答案:{{ record.answer }}</text>
  84. <text class="text-gray-500 mt-2 text-sm block">分析:{{ record.analysis }}</text>
  85. <!-- 视频回放 -->
  86. <view v-if="record.videoUrl" class="mt-4">
  87. <view class="video-container">
  88. <video
  89. class="w-full h-full"
  90. :src="record.videoUrl"
  91. :poster="record.thumbnail"
  92. controls
  93. ></video>
  94. </view>
  95. </view>
  96. <view class="mt-2 flex justify-end">
  97. <text class="text-blue-500">得分:{{ record.score }}</text>
  98. </view>
  99. </view>
  100. </view>
  101. </view>
  102. </view>
  103. <!-- 视频记录 -->
  104. <view class="mb-8">
  105. <text class="text-xl font-bold mb-6 block">4. 视频记录</text>
  106. <view class="space-y-8">
  107. <view v-for="(category, index) in candidateInfo.videoRecords" :key="index">
  108. <text class="text-lg font-semibold mb-4 block">{{ category.category }}</text>
  109. <view class="grid grid-cols-1 gap-4">
  110. <view v-for="(video, vIndex) in category.videos" :key="vIndex" class="bg-gray-50 rounded-lg p-4">
  111. <view class="video-container">
  112. <video
  113. class="w-full h-full"
  114. :src="video.url"
  115. :poster="video.thumbnail"
  116. controls
  117. ></video>
  118. </view>
  119. <text class="text-sm text-gray-600 mt-2 block">{{ video.description }}</text>
  120. </view>
  121. </view>
  122. </view>
  123. </view>
  124. </view>
  125. <!-- 其他信息 -->
  126. <view class="mb-8">
  127. <text class="text-xl font-bold mb-6 block">5. 其他信息</text>
  128. <view class="space-y-6">
  129. <!-- 验证状态 -->
  130. <view class="grid grid-cols-1 gap-4 mb-4">
  131. <view class="flex items-center space-x-2">
  132. <text class="text-gray-600">身份证验证:</text>
  133. <text class="text-green-500">{{ candidateInfo.additionalInfo.idVerification }}</text>
  134. </view>
  135. <view class="flex items-center space-x-2">
  136. <text class="text-gray-600">手机号验证:</text>
  137. <text class="text-green-500">{{ candidateInfo.additionalInfo.phoneVerification }}</text>
  138. </view>
  139. </view>
  140. <!-- 手势验证 -->
  141. <view class="mb-6">
  142. <text class="font-semibold mb-4 block">手势验证</text>
  143. <view class="grid grid-cols-2 gap-8">
  144. <!-- 左手手势 -->
  145. <view>
  146. <text class="text-sm font-medium mb-2 block">左手手势验证</text>
  147. <view class="grid grid-cols-3 gap-2">
  148. <view v-for="(image, index) in candidateInfo.additionalInfo.leftHandGestures.images" :key="index"
  149. class="aspect-square rounded-lg overflow-hidden bg-gray-100">
  150. <image :src="image" mode="aspectFill" class="w-full h-full"></image>
  151. </view>
  152. </view>
  153. </view>
  154. <!-- 右手手势 -->
  155. <view>
  156. <text class="text-sm font-medium mb-2 block">右手手势验证</text>
  157. <view class="grid grid-cols-3 gap-2">
  158. <view v-for="(image, index) in candidateInfo.additionalInfo.rightHandGestures.images" :key="index"
  159. class="aspect-square rounded-lg overflow-hidden bg-gray-100">
  160. <image :src="image" mode="aspectFill" class="w-full h-full"></image>
  161. </view>
  162. </view>
  163. </view>
  164. </view>
  165. </view>
  166. <!-- 人脸验证 -->
  167. <view>
  168. <text class="font-semibold mb-4 block">人脸验证</text>
  169. <view class="grid grid-cols-3 gap-2">
  170. <view v-for="(image, index) in candidateInfo.additionalInfo.faceVerification.images" :key="index"
  171. class="aspect-square rounded-lg overflow-hidden bg-gray-100">
  172. <image :src="image" mode="aspectFill" class="w-full h-full"></image>
  173. </view>
  174. </view>
  175. </view>
  176. </view>
  177. </view>
  178. <!-- 评估表单 --><!-- 评分 --><!-- 评价 --><!-- 提交按钮 -->
  179. <!-- <view>
  180. <view class="mb-8">
  181. <text class="text-xl font-bold mb-4 block">6. 面试评分</text>
  182. <view class="form-item">
  183. <text class="block mb-2">请为候选人打分</text>
  184. <uni-rate v-model="evaluationScore" :max="5" allow-half />
  185. </view>
  186. </view>
  187. <view class="mb-8">
  188. <text class="text-xl font-bold mb-4 block">评价意见</text>
  189. <view class="form-item">
  190. <text class="block mb-2">请输入评价意见</text>
  191. <textarea
  192. v-model="evaluationComments"
  193. class="w-full border p-2 rounded"
  194. placeholder="请输入您的评价意见..."
  195. :rows="4"
  196. ></textarea>
  197. </view>
  198. </view>
  199. <view class="flex justify-end">
  200. <button
  201. class="bg-blue-500 text-white px-4 py-2 rounded"
  202. @click="handleSubmit"
  203. >提交评估</button>
  204. </view>
  205. </view> -->
  206. </view>
  207. <!-- 悬浮按钮 -->
  208. <!-- <view class="fixed-buttons">
  209. <button class="action-button share-button" @click="handleShare">
  210. <text class="iconfont">&#xe600;</text>
  211. </button>
  212. <button class="action-button download-button" @click="handleDownload">
  213. <text class="iconfont">&#xe601;</text>
  214. </button>
  215. <button class="action-button top-button" @click="scrollToTop">
  216. <text class="iconfont">&#xe602;</text>
  217. </button>
  218. </view> -->
  219. </view>
  220. </template>
  221. <script>
  222. export default {
  223. data() {
  224. return {
  225. candidateInfo: {
  226. name: '孙壁涵',
  227. idNumber: '152201199809150015',
  228. phoneNumber: '19943770171',
  229. score: 71,
  230. availabilityPeriod: '全天任意时间段',
  231. onboardingTime: '1周内',
  232. dimensions: {
  233. teamwork: '欠佳',
  234. learningAbility: '优秀',
  235. attention: '欠佳',
  236. workAdaptability: '优秀',
  237. serviceAwareness: '中等'
  238. },
  239. dimensionDetails: {
  240. teamwork: '主动交流但缺乏倾听与尊重。',
  241. learningAbility: '积极向上,具备优秀的学习意愿。',
  242. attention: '对细节处理不够严谨,需提高标准意识。',
  243. workAdaptability: '快速适应,表现出强烈的责任心。',
  244. serviceAwareness: '关注客户需求,但缺乏提升顾客体验的具体措施。'
  245. },
  246. duvAnalysis: [
  247. {
  248. title: '工作经验',
  249. content: '有相关工作经验,能够胜任岗位要求',
  250. score: '优秀',
  251. type: 'positive'
  252. },
  253. {
  254. title: '学历背景',
  255. content: '学历符合岗位要求',
  256. score: '良好',
  257. type: 'positive'
  258. }
  259. ],
  260. interviewRecord: [
  261. {
  262. question: '请问您对餐饮服务工作有什么理解?',
  263. answer: '餐饮服务工作需要具备良好的服务意识和沟通能力,要以客户满意为目标,及时响应客户需求,保持微笑和耐心。同时要注意个人卫生和仪容仪表,遵守餐饮服务规范。',
  264. analysis: '答案表现出对岗位的基本理解,但缺乏深入思考',
  265. score: '中等',
  266. videoUrl: 'https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4',
  267. thumbnail: '/images/video-placeholder.jpg'
  268. },
  269. {
  270. question: '您如何处理顾客投诉?',
  271. answer: '首先我会认真倾听顾客的意见,表示理解和歉意。然后了解具体情况,及时向主管报告,并根据公司规定提供合适的解决方案。最后会总结经验,避免类似问题再次发生。',
  272. analysis: '回答显示了基本的服务意识,但处理方法较为简单',
  273. score: '良好',
  274. videoUrl: 'https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4',
  275. thumbnail: '/images/video-placeholder.jpg'
  276. }
  277. ],
  278. videoRecords: [
  279. {
  280. category: '服务态度测评',
  281. videos: [
  282. {
  283. url: 'https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4',
  284. thumbnail: '/images/thumbnail1.jpg',
  285. description: '微笑服务示范'
  286. },
  287. {
  288. url: 'https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4',
  289. thumbnail: '/images/thumbnail2.jpg',
  290. description: '礼貌用语展示'
  291. }
  292. ]
  293. }
  294. ],
  295. additionalInfo: {
  296. idVerification: '通过',
  297. phoneVerification: '通过',
  298. leftHandGestures: {
  299. passed: true,
  300. images: [
  301. '/images/left-hand-1.jpg',
  302. '/images/left-hand-2.jpg',
  303. '/images/left-hand-3.jpg'
  304. ]
  305. },
  306. rightHandGestures: {
  307. passed: true,
  308. images: [
  309. '/images/right-hand-1.jpg',
  310. '/images/right-hand-2.jpg',
  311. '/images/right-hand-3.jpg'
  312. ]
  313. },
  314. faceVerification: {
  315. passed: true,
  316. images: [
  317. '/images/face-1.jpg',
  318. '/images/face-2.jpg',
  319. '/images/face-3.jpg',
  320. '/images/face-4.jpg',
  321. '/images/face-5.jpg',
  322. '/images/face-6.jpg'
  323. ]
  324. }
  325. }
  326. },
  327. evaluationScore: 0,
  328. evaluationComments: '',
  329. dimensionLabels: {
  330. teamwork: '团队合作能力',
  331. learningAbility: '学习能力',
  332. attention: '细致严谨',
  333. workAdaptability: '工作适应性',
  334. serviceAwareness: '服务意识'
  335. }
  336. }
  337. },
  338. methods: {
  339. handleSubmit() {
  340. if (this.evaluationScore === 0 || !this.evaluationComments.trim()) {
  341. uni.showToast({
  342. title: '请完成所有必填项',
  343. icon: 'none'
  344. });
  345. return;
  346. }
  347. uni.showToast({
  348. title: '评估已提交',
  349. icon: 'success'
  350. });
  351. },
  352. scrollToTop() {
  353. uni.pageScrollTo({
  354. scrollTop: 0,
  355. duration: 300
  356. });
  357. },
  358. handleShare() {
  359. uni.showToast({
  360. title: '分享链接已复制',
  361. icon: 'success'
  362. });
  363. },
  364. handleDownload() {
  365. uni.showToast({
  366. title: '报告下载中...',
  367. icon: 'loading'
  368. });
  369. }
  370. }
  371. }
  372. </script>
  373. <style>
  374. .max-w-4xl {
  375. max-width: 56rem;
  376. margin: 0 auto;
  377. }
  378. .p-6 {
  379. padding: 1.5rem;
  380. }
  381. .relative {
  382. position: relative;
  383. }
  384. /* .bg-\[\#1d1e3a\] {
  385. background-color: #1d1e3a;
  386. } */
  387. .text-white {
  388. color: white;
  389. }
  390. .p-4 {
  391. padding: 1rem;
  392. }
  393. .rounded-t-lg {
  394. border-top-left-radius: 0.5rem;
  395. border-top-right-radius: 0.5rem;
  396. }
  397. .flex {
  398. display: flex;
  399. }
  400. .justify-between {
  401. justify-content: space-between;
  402. }
  403. .items-center {
  404. align-items: center;
  405. }
  406. .text-sm {
  407. font-size: 0.875rem;
  408. }
  409. .bg-white {
  410. background-color: white;
  411. }
  412. .rounded-b-lg {
  413. border-bottom-left-radius: 0.5rem;
  414. border-bottom-right-radius: 0.5rem;
  415. }
  416. .shadow-lg {
  417. box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  418. }
  419. .mb-8 {
  420. margin-bottom: 2rem;
  421. }
  422. .pb-4 {
  423. padding-bottom: 1rem;
  424. }
  425. .border-b {
  426. border-bottom-width: 1px;
  427. border-bottom-style: solid;
  428. border-bottom-color: #e5e7eb;
  429. }
  430. /* .space-x-4 > * + * {
  431. margin-left: 1rem;
  432. } */
  433. .w-20 {
  434. width: 5rem;
  435. }
  436. .h-20 {
  437. height: 5rem;
  438. }
  439. .bg-gray-200 {
  440. background-color: #e5e7eb;
  441. }
  442. .rounded-lg {
  443. border-radius: 0.5rem;
  444. }
  445. .overflow-hidden {
  446. overflow: hidden;
  447. }
  448. .w-full {
  449. width: 100%;
  450. }
  451. .h-full {
  452. height: 100%;
  453. }
  454. .object-cover {
  455. object-fit: cover;
  456. }
  457. .text-2xl {
  458. font-size: 1.5rem;
  459. }
  460. .font-bold {
  461. font-weight: bold;
  462. }
  463. .text-gray-600 {
  464. color: #4b5563;
  465. }
  466. .text-right {
  467. text-align: right;
  468. }
  469. .text-4xl {
  470. font-size: 2.25rem;
  471. }
  472. .text-yellow-500 {
  473. color: #f59e0b;
  474. }
  475. .ml-1 {
  476. margin-left: 0.25rem;
  477. }
  478. .text-base {
  479. font-size: 1rem;
  480. }
  481. .grid {
  482. display: grid;
  483. }
  484. .grid-cols-1 {
  485. grid-template-columns: repeat(1, minmax(0, 1fr));
  486. }
  487. .grid-cols-2 {
  488. grid-template-columns: repeat(2, minmax(0, 1fr));
  489. }
  490. .grid-cols-3 {
  491. grid-template-columns: repeat(3, minmax(0, 1fr));
  492. }
  493. .gap-4 {
  494. gap: 1rem;
  495. }
  496. .gap-2 {
  497. gap: 0.5rem;
  498. }
  499. .gap-8 {
  500. gap: 2rem;
  501. }
  502. .text-xl {
  503. font-size: 1.25rem;
  504. }
  505. .mb-6 {
  506. margin-bottom: 1.5rem;
  507. }
  508. .mb-4 {
  509. margin-bottom: 1rem;
  510. }
  511. .mb-2 {
  512. margin-bottom: 0.5rem;
  513. }
  514. /* .space-y-6 > * + * {
  515. margin-top: 1.5rem;
  516. }
  517. .space-y-4 > * + * {
  518. margin-top: 1rem;
  519. }
  520. .space-y-8 > * + * {
  521. margin-top: 2rem;
  522. } */
  523. .w-32 {
  524. width: 8rem;
  525. }
  526. .text-red-500 {
  527. color: #ef4444;
  528. }
  529. .text-green-500 {
  530. color: #10b981;
  531. }
  532. .text-sm {
  533. font-size: 0.875rem;
  534. }
  535. .font-semibold {
  536. font-weight: 600;
  537. }
  538. .mt-2 {
  539. margin-top: 0.5rem;
  540. }
  541. .text-gray-500 {
  542. color: #6b7280;
  543. }
  544. .mt-4 {
  545. margin-top: 1rem;
  546. }
  547. .video-container {
  548. position: relative;
  549. width: 100%;
  550. max-width: 240px;
  551. aspect-ratio: 3/4;
  552. margin: 0 auto;
  553. background: #000;
  554. border-radius: 12px;
  555. overflow: hidden;
  556. }
  557. .justify-end {
  558. justify-content: flex-end;
  559. }
  560. .text-blue-500 {
  561. color: #3b82f6;
  562. }
  563. .text-lg {
  564. font-size: 1.125rem;
  565. }
  566. .bg-gray-50 {
  567. background-color: #f9fafb;
  568. }
  569. .aspect-square {
  570. aspect-ratio: 1 / 1;
  571. }
  572. .bg-gray-100 {
  573. background-color: #f3f4f6;
  574. }
  575. .form-item {
  576. margin-bottom: 1.5rem;
  577. }
  578. .border {
  579. border-width: 1px;
  580. border-style: solid;
  581. border-color: #e5e7eb;
  582. }
  583. .rounded {
  584. border-radius: 0.25rem;
  585. }
  586. .bg-blue-500 {
  587. background-color: #3b82f6;
  588. }
  589. .px-4 {
  590. padding-left: 1rem;
  591. padding-right: 1rem;
  592. }
  593. .py-2 {
  594. padding-top: 0.5rem;
  595. padding-bottom: 0.5rem;
  596. }
  597. .fixed-buttons {
  598. position: fixed;
  599. right: 2rem;
  600. bottom: 6rem;
  601. display: flex;
  602. flex-direction: column;
  603. gap: 1rem;
  604. z-index: 100;
  605. }
  606. .action-button {
  607. width: 40px;
  608. height: 40px;
  609. border-radius: 50%;
  610. background-color: #3b82f6;
  611. color: white;
  612. display: flex;
  613. align-items: center;
  614. justify-content: center;
  615. box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  616. }
  617. /* 为了模拟图标,你可能需要引入字体图标或使用其他方式 */
  618. @font-face {
  619. font-family: "iconfont";
  620. src: url('data:font/woff2;charset=utf-8;base64,...') format('woff2');
  621. }
  622. .iconfont {
  623. font-family: "iconfont" !important;
  624. font-style: normal;
  625. -webkit-font-smoothing: antialiased;
  626. -moz-osx-font-smoothing: grayscale;
  627. }
  628. /* 媒体查询适配移动端 */
  629. @media (max-width: 768px) {
  630. .p-6 {
  631. padding: 1rem;
  632. }
  633. .fixed-buttons {
  634. right: 1rem;
  635. }
  636. }
  637. </style>