ResumeEvaluation.js 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. const _sfc_main = {
  4. data() {
  5. return {
  6. candidateInfo: {
  7. name: "孙壁涵",
  8. idNumber: "152201199809150015",
  9. phoneNumber: "19943770171",
  10. score: 71,
  11. availabilityPeriod: "全天任意时间段",
  12. onboardingTime: "1周内",
  13. dimensions: {
  14. teamwork: "欠佳",
  15. learningAbility: "优秀",
  16. attention: "欠佳",
  17. workAdaptability: "优秀",
  18. serviceAwareness: "中等"
  19. },
  20. dimensionDetails: {
  21. teamwork: "主动交流但缺乏倾听与尊重。",
  22. learningAbility: "积极向上,具备优秀的学习意愿。",
  23. attention: "对细节处理不够严谨,需提高标准意识。",
  24. workAdaptability: "快速适应,表现出强烈的责任心。",
  25. serviceAwareness: "关注客户需求,但缺乏提升顾客体验的具体措施。"
  26. },
  27. duvAnalysis: [
  28. {
  29. title: "工作经验",
  30. content: "有相关工作经验,能够胜任岗位要求",
  31. score: "优秀",
  32. type: "positive"
  33. },
  34. {
  35. title: "学历背景",
  36. content: "学历符合岗位要求",
  37. score: "良好",
  38. type: "positive"
  39. }
  40. ],
  41. interviewRecord: [
  42. {
  43. question: "请问您对餐饮服务工作有什么理解?",
  44. answer: "餐饮服务工作需要具备良好的服务意识和沟通能力,要以客户满意为目标,及时响应客户需求,保持微笑和耐心。同时要注意个人卫生和仪容仪表,遵守餐饮服务规范。",
  45. analysis: "答案表现出对岗位的基本理解,但缺乏深入思考",
  46. score: "中等",
  47. videoUrl: "https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4",
  48. thumbnail: "/images/video-placeholder.jpg"
  49. },
  50. {
  51. question: "您如何处理顾客投诉?",
  52. answer: "首先我会认真倾听顾客的意见,表示理解和歉意。然后了解具体情况,及时向主管报告,并根据公司规定提供合适的解决方案。最后会总结经验,避免类似问题再次发生。",
  53. analysis: "回答显示了基本的服务意识,但处理方法较为简单",
  54. score: "良好",
  55. videoUrl: "https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4",
  56. thumbnail: "/images/video-placeholder.jpg"
  57. }
  58. ],
  59. videoRecords: [
  60. {
  61. category: "服务态度测评",
  62. videos: [
  63. {
  64. url: "https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4",
  65. thumbnail: "/images/thumbnail1.jpg",
  66. description: "微笑服务示范"
  67. },
  68. {
  69. url: "https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4",
  70. thumbnail: "/images/thumbnail2.jpg",
  71. description: "礼貌用语展示"
  72. }
  73. ]
  74. }
  75. ],
  76. additionalInfo: {
  77. idVerification: "通过",
  78. phoneVerification: "通过",
  79. leftHandGestures: {
  80. passed: true,
  81. images: [
  82. "/images/left-hand-1.jpg",
  83. "/images/left-hand-2.jpg",
  84. "/images/left-hand-3.jpg"
  85. ]
  86. },
  87. rightHandGestures: {
  88. passed: true,
  89. images: [
  90. "/images/right-hand-1.jpg",
  91. "/images/right-hand-2.jpg",
  92. "/images/right-hand-3.jpg"
  93. ]
  94. },
  95. faceVerification: {
  96. passed: true,
  97. images: [
  98. "/images/face-1.jpg",
  99. "/images/face-2.jpg",
  100. "/images/face-3.jpg",
  101. "/images/face-4.jpg",
  102. "/images/face-5.jpg",
  103. "/images/face-6.jpg"
  104. ]
  105. }
  106. }
  107. },
  108. evaluationScore: 0,
  109. evaluationComments: "",
  110. dimensionLabels: {
  111. teamwork: "团队合作能力",
  112. learningAbility: "学习能力",
  113. attention: "细致严谨",
  114. workAdaptability: "工作适应性",
  115. serviceAwareness: "服务意识"
  116. }
  117. };
  118. },
  119. methods: {
  120. handleSubmit() {
  121. if (this.evaluationScore === 0 || !this.evaluationComments.trim()) {
  122. common_vendor.index.showToast({
  123. title: "请完成所有必填项",
  124. icon: "none"
  125. });
  126. return;
  127. }
  128. common_vendor.index.showToast({
  129. title: "评估已提交",
  130. icon: "success"
  131. });
  132. },
  133. scrollToTop() {
  134. common_vendor.index.pageScrollTo({
  135. scrollTop: 0,
  136. duration: 300
  137. });
  138. },
  139. handleShare() {
  140. common_vendor.index.showToast({
  141. title: "分享链接已复制",
  142. icon: "success"
  143. });
  144. },
  145. handleDownload() {
  146. common_vendor.index.showToast({
  147. title: "报告下载中...",
  148. icon: "loading"
  149. });
  150. }
  151. }
  152. };
  153. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  154. return {
  155. a: common_vendor.t($data.candidateInfo.idNumber),
  156. b: $data.candidateInfo.additionalInfo.faceVerification.images[0],
  157. c: common_vendor.t($data.candidateInfo.name),
  158. d: common_vendor.t($data.candidateInfo.phoneNumber),
  159. e: common_vendor.t($data.candidateInfo.score),
  160. f: common_vendor.t($data.candidateInfo.idNumber),
  161. g: common_vendor.t($data.candidateInfo.availabilityPeriod),
  162. h: common_vendor.t($data.candidateInfo.onboardingTime),
  163. i: common_vendor.f($data.candidateInfo.dimensions, (value, key, i0) => {
  164. return {
  165. a: common_vendor.t($data.dimensionLabels[key]),
  166. b: common_vendor.t(value),
  167. c: value === "欠佳" ? 1 : "",
  168. d: value === "优秀" ? 1 : "",
  169. e: value === "中等" ? 1 : "",
  170. f: common_vendor.t($data.candidateInfo.dimensionDetails[key]),
  171. g: key
  172. };
  173. }),
  174. j: common_vendor.f($data.candidateInfo.duvAnalysis, (item, index, i0) => {
  175. return {
  176. a: common_vendor.t(item.title),
  177. b: common_vendor.t(item.score),
  178. c: item.type === "positive" ? 1 : "",
  179. d: item.type === "negative" ? 1 : "",
  180. e: item.type === "neutral" ? 1 : "",
  181. f: common_vendor.t(item.content),
  182. g: index
  183. };
  184. }),
  185. k: common_vendor.f($data.candidateInfo.interviewRecord, (record, index, i0) => {
  186. return common_vendor.e({
  187. a: common_vendor.t(record.question),
  188. b: common_vendor.t(record.answer),
  189. c: common_vendor.t(record.analysis),
  190. d: record.videoUrl
  191. }, record.videoUrl ? {
  192. e: record.videoUrl,
  193. f: record.thumbnail
  194. } : {}, {
  195. g: common_vendor.t(record.score),
  196. h: index
  197. });
  198. }),
  199. l: common_vendor.f($data.candidateInfo.videoRecords, (category, index, i0) => {
  200. return {
  201. a: common_vendor.t(category.category),
  202. b: common_vendor.f(category.videos, (video, vIndex, i1) => {
  203. return {
  204. a: video.url,
  205. b: video.thumbnail,
  206. c: common_vendor.t(video.description),
  207. d: vIndex
  208. };
  209. }),
  210. c: index
  211. };
  212. }),
  213. m: common_vendor.t($data.candidateInfo.additionalInfo.idVerification),
  214. n: common_vendor.t($data.candidateInfo.additionalInfo.phoneVerification),
  215. o: common_vendor.f($data.candidateInfo.additionalInfo.leftHandGestures.images, (image, index, i0) => {
  216. return {
  217. a: image,
  218. b: index
  219. };
  220. }),
  221. p: common_vendor.f($data.candidateInfo.additionalInfo.rightHandGestures.images, (image, index, i0) => {
  222. return {
  223. a: image,
  224. b: index
  225. };
  226. }),
  227. q: common_vendor.f($data.candidateInfo.additionalInfo.faceVerification.images, (image, index, i0) => {
  228. return {
  229. a: image,
  230. b: index
  231. };
  232. })
  233. };
  234. }
  235. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
  236. wx.createPage(MiniProgramPage);