ResumeEvaluation.js 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  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. if (!Array) {
  154. const _component_uni_rate = common_vendor.resolveComponent("uni-rate");
  155. _component_uni_rate();
  156. }
  157. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  158. return {
  159. a: common_vendor.t($data.candidateInfo.idNumber),
  160. b: $data.candidateInfo.additionalInfo.faceVerification.images[0],
  161. c: common_vendor.t($data.candidateInfo.name),
  162. d: common_vendor.t($data.candidateInfo.phoneNumber),
  163. e: common_vendor.t($data.candidateInfo.score),
  164. f: common_vendor.t($data.candidateInfo.idNumber),
  165. g: common_vendor.t($data.candidateInfo.availabilityPeriod),
  166. h: common_vendor.t($data.candidateInfo.onboardingTime),
  167. i: common_vendor.f($data.candidateInfo.dimensions, (value, key, i0) => {
  168. return {
  169. a: common_vendor.t($data.dimensionLabels[key]),
  170. b: common_vendor.t(value),
  171. c: value === "欠佳" ? 1 : "",
  172. d: value === "优秀" ? 1 : "",
  173. e: value === "中等" ? 1 : "",
  174. f: common_vendor.t($data.candidateInfo.dimensionDetails[key]),
  175. g: key
  176. };
  177. }),
  178. j: common_vendor.f($data.candidateInfo.duvAnalysis, (item, index, i0) => {
  179. return {
  180. a: common_vendor.t(item.title),
  181. b: common_vendor.t(item.score),
  182. c: item.type === "positive" ? 1 : "",
  183. d: item.type === "negative" ? 1 : "",
  184. e: item.type === "neutral" ? 1 : "",
  185. f: common_vendor.t(item.content),
  186. g: index
  187. };
  188. }),
  189. k: common_vendor.f($data.candidateInfo.interviewRecord, (record, index, i0) => {
  190. return common_vendor.e({
  191. a: common_vendor.t(record.question),
  192. b: common_vendor.t(record.answer),
  193. c: common_vendor.t(record.analysis),
  194. d: record.videoUrl
  195. }, record.videoUrl ? {
  196. e: record.videoUrl,
  197. f: record.thumbnail
  198. } : {}, {
  199. g: common_vendor.t(record.score),
  200. h: index
  201. });
  202. }),
  203. l: common_vendor.f($data.candidateInfo.videoRecords, (category, index, i0) => {
  204. return {
  205. a: common_vendor.t(category.category),
  206. b: common_vendor.f(category.videos, (video, vIndex, i1) => {
  207. return {
  208. a: video.url,
  209. b: video.thumbnail,
  210. c: common_vendor.t(video.description),
  211. d: vIndex
  212. };
  213. }),
  214. c: index
  215. };
  216. }),
  217. m: common_vendor.t($data.candidateInfo.additionalInfo.idVerification),
  218. n: common_vendor.t($data.candidateInfo.additionalInfo.phoneVerification),
  219. o: common_vendor.f($data.candidateInfo.additionalInfo.leftHandGestures.images, (image, index, i0) => {
  220. return {
  221. a: image,
  222. b: index
  223. };
  224. }),
  225. p: common_vendor.f($data.candidateInfo.additionalInfo.rightHandGestures.images, (image, index, i0) => {
  226. return {
  227. a: image,
  228. b: index
  229. };
  230. }),
  231. q: common_vendor.f($data.candidateInfo.additionalInfo.faceVerification.images, (image, index, i0) => {
  232. return {
  233. a: image,
  234. b: index
  235. };
  236. }),
  237. r: common_vendor.o(($event) => $data.evaluationScore = $event),
  238. s: common_vendor.p({
  239. max: 5,
  240. ["allow-half"]: true,
  241. modelValue: $data.evaluationScore
  242. }),
  243. t: $data.evaluationComments,
  244. v: common_vendor.o(($event) => $data.evaluationComments = $event.detail.value),
  245. w: common_vendor.o((...args) => $options.handleSubmit && $options.handleSubmit(...args))
  246. };
  247. }
  248. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
  249. wx.createPage(MiniProgramPage);