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