mianshiDetail.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513
  1. <template>
  2. <view class="ms-detail">
  3. <view class="detail-bg"></view>
  4. <nav-bar title="面试详情"></nav-bar>
  5. <view class="detail-index">
  6. <view class="detail-title">已面试08月27日</view>
  7. <view class="detail-item">
  8. <view class="user-title">
  9. <view class="user-img">
  10. <image src="@/static/images/geren.png" mode="aspectFill" />
  11. </view>
  12. <view class="user-name-box">
  13. <view class="user-name-com">深圳市世迪贸易科技有限公司</view>
  14. <view class="user-info-img">
  15. <image src="@/static/images/geren.png" mode="aspectFill" />
  16. <view class="user-name">孙先生·人事经理</view>
  17. </view>
  18. </view>
  19. </view>
  20. <view class="msg-box">
  21. <view class="msg-item">
  22. <view class="msg-label">时间</view>
  23. <view class="msg-value">2025-09-19 20:00:00</view>
  24. </view>
  25. <view class="msg-item">
  26. <view class="msg-label">职位</view>
  27. <view class="msg-value">资深产品经理 15-25K</view>
  28. </view>
  29. <view class="msg-item">
  30. <view class="msg-label">联系人</view>
  31. <view class="msg-value">熊女士</view>
  32. </view>
  33. <view class="msg-item">
  34. <view class="msg-label">备注</view>
  35. <view class="msg-value">请携带一份最新的简历</view>
  36. </view>
  37. <view class="msg-item">
  38. <view class="msg-label">地址</view>
  39. <view class="msg-value">光谷软件园F21602栋</view>
  40. </view>
  41. </view>
  42. <view class="map-box">
  43. <map name="map" class="map"></map>
  44. </view>
  45. </view>
  46. <view class="detail-item">
  47. <view class="process-top">
  48. <view class="process-title">面试进度</view>
  49. <view class="process-status">爽约说明</view>
  50. </view>
  51. <view class="process-index">
  52. <view class="interview-process">
  53. <!-- 流程步骤 -->
  54. <view class="process-steps">
  55. <!-- 步骤1: 面试时间到 -->
  56. <view
  57. class="step-item"
  58. :class="{ active: currentStep >= 1, completed: currentStep > 1 }"
  59. >
  60. <view class="step-icon">
  61. <view class="step-number">1</view>
  62. <view class="step-check" v-if="currentStep > 1">
  63. <u-icon name="checkmark" color="#fff" size="16"></u-icon>
  64. </view>
  65. </view>
  66. <view class="step-content">
  67. <view class="step-title">面试时间到</view>
  68. <view class="step-desc">面试一开始,此时不能取消面试</view>
  69. </view>
  70. <view class="step-line"></view>
  71. </view>
  72. <!-- 步骤2: 面试签到 -->
  73. <view
  74. class="step-item"
  75. :class="{ active: currentStep >= 2, completed: currentStep > 2 }"
  76. >
  77. <view class="step-icon">
  78. <view class="step-number">2</view>
  79. <view class="step-check" v-if="currentStep > 2">
  80. <u-icon name="checkmark" color="#fff" size="16"></u-icon>
  81. </view>
  82. </view>
  83. <view class="step-content">
  84. <view class="step-title">面试签到</view>
  85. <view class="step-desc">到场后请及时签到,可体验面试全流程服务</view>
  86. </view>
  87. <view class="step-line"></view>
  88. </view>
  89. <!-- 步骤3: 进行面试 -->
  90. <view
  91. class="step-item"
  92. :class="{ active: currentStep >= 3, completed: currentStep > 3 }"
  93. >
  94. <view class="step-icon">
  95. <view class="step-number">3</view>
  96. <view class="step-check" v-if="currentStep > 3">
  97. <u-icon name="checkmark" color="#fff" size="16"></u-icon>
  98. </view>
  99. </view>
  100. <view class="step-content">
  101. <view class="step-title">进行面试</view>
  102. <view class="step-desc">面试过程中,如有问题,可向客服投诉</view>
  103. </view>
  104. <view class="step-line"></view>
  105. </view>
  106. <!-- 步骤4: 面试结果 -->
  107. <view
  108. class="step-item"
  109. :class="{ active: currentStep >= 4, completed: currentStep > 4 }"
  110. >
  111. <view class="step-icon">
  112. <view class="step-number">4</view>
  113. <view class="step-check" v-if="currentStep > 4">
  114. <u-icon name="checkmark" color="#fff" size="16"></u-icon>
  115. </view>
  116. </view>
  117. <view class="step-content">
  118. <view class="step-title">面试结果</view>
  119. <view class="step-desc">面试完后30天内可向招聘方获取面试结果</view>
  120. </view>
  121. <view class="step-line"></view>
  122. </view>
  123. <!-- 步骤5: 获取面试结果 -->
  124. <view
  125. class="step-item"
  126. :class="{ active: currentStep >= 5, completed: currentStep > 5 }"
  127. >
  128. <view class="step-icon">
  129. <view class="step-number">5</view>
  130. <view class="step-check" v-if="currentStep > 5">
  131. <u-icon name="checkmark" color="#fff" size="16"></u-icon>
  132. </view>
  133. </view>
  134. <view class="step-content">
  135. <view class="step-title">获取面试结果</view>
  136. <view class="step-desc"></view>
  137. </view>
  138. </view>
  139. </view>
  140. <!-- 操作按钮 -->
  141. <view class="process-actions" v-if="showActions">
  142. <button class="action-btn" v-if="currentStep === 2" @click="handleSignIn">
  143. 立即签到
  144. </button>
  145. <button
  146. class="action-btn"
  147. v-if="currentStep === 3"
  148. @click="handleStartInterview"
  149. >
  150. 开始面试
  151. </button>
  152. <button
  153. class="action-btn"
  154. v-if="currentStep === 4"
  155. @click="handleGetResult"
  156. >
  157. 获取结果
  158. </button>
  159. <button
  160. class="action-btn complaint-btn"
  161. v-if="currentStep === 3"
  162. @click="handleComplaint"
  163. >
  164. 投诉
  165. </button>
  166. </view>
  167. </view>
  168. </view>
  169. </view>
  170. </view>
  171. </view>
  172. </template>
  173. <script>
  174. import navBar from "@/components/nav-bar/index.vue";
  175. export default {
  176. data() {
  177. return {
  178. currentStep: 3,
  179. showActions: true,
  180. };
  181. },
  182. components: {
  183. navBar,
  184. },
  185. method: {
  186. handleSignIn() {
  187. this.$emit("sign-in");
  188. uni.showToast({
  189. title: "签到成功",
  190. icon: "success",
  191. });
  192. },
  193. handleStartInterview() {
  194. this.$emit("start-interview");
  195. },
  196. handleGetResult() {
  197. this.$emit("get-result");
  198. },
  199. handleComplaint() {
  200. this.$emit("complaint");
  201. uni.showModal({
  202. title: "客服投诉",
  203. content: "请描述您遇到的问题",
  204. editable: true,
  205. placeholderText: "请输入问题描述...",
  206. success: (res) => {
  207. if (res.confirm && res.content) {
  208. uni.showToast({
  209. title: "投诉已提交",
  210. icon: "success",
  211. });
  212. }
  213. },
  214. });
  215. },
  216. },
  217. };
  218. </script>
  219. <style scoped lang="scss">
  220. .ms-detail {
  221. position: absolute;
  222. left: 0;
  223. right: 0;
  224. bottom: 0;
  225. top: 0;
  226. .detail-bg {
  227. height: 744rpx;
  228. width: 100%;
  229. background: linear-gradient(180deg, rgba(255, 102, 0, 1), rgba(255, 102, 0, 0) 100%);
  230. position: absolute;
  231. left: 0;
  232. top: 0;
  233. }
  234. .detail-index {
  235. position: relative;
  236. z-index: 2;
  237. padding: 40rpx;
  238. box-sizing: border-box;
  239. .detail-item {
  240. padding: 36rpx;
  241. box-sizing: border-box;
  242. border: 1rpx solid rgba(227, 231, 236, 1);
  243. border-radius: 6px;
  244. background: rgba(255, 255, 255, 1);
  245. margin-top: 20rpx;
  246. .process-top {
  247. display: flex;
  248. justify-content: space-between;
  249. align-items: center;
  250. .process-title {
  251. color: rgba(29, 33, 41, 1);
  252. font-family: DM Sans;
  253. font-size: 24rpx;
  254. font-weight: 500;
  255. line-height: 32rpx;
  256. }
  257. .process-status {
  258. color: #016bf6;
  259. font-family: DM Sans;
  260. font-size: 20rpx;
  261. font-weight: 700;
  262. line-height: 26rpx;
  263. }
  264. }
  265. .user-title {
  266. display: flex;
  267. align-items: center;
  268. .user-img {
  269. overflow: hidden;
  270. width: 80rpx;
  271. height: 80rpx;
  272. border-radius: 50%;
  273. margin-right: 24rpx;
  274. border: 8rpx solid #f6f6f6;
  275. image {
  276. width: 100%;
  277. height: 100%;
  278. }
  279. }
  280. .user-name-box {
  281. .user-name-com {
  282. color: #171725;
  283. font-family: DM Sans;
  284. font-size: 28rpx;
  285. font-weight: 400;
  286. line-height: 44rpx;
  287. text-align: left;
  288. }
  289. .user-info-img {
  290. display: flex;
  291. align-items: center;
  292. margin-top: 8rpx;
  293. image {
  294. width: 40rpx;
  295. height: 40rpx;
  296. border-radius: 50%;
  297. margin-right: 8rpx;
  298. }
  299. .user-name {
  300. color: #9ca4ab;
  301. font-family: DM Sans;
  302. font-size: 16rpx;
  303. font-weight: 400;
  304. line-height: 40rpx;
  305. }
  306. }
  307. }
  308. }
  309. }
  310. }
  311. .msg-box {
  312. .msg-item {
  313. display: flex;
  314. align-items: center;
  315. color: rgba(153, 153, 153, 1);
  316. font-family: DM Sans;
  317. font-size: 24rpx;
  318. font-weight: 400;
  319. line-height: 32rpx;
  320. margin-top: 12rpx;
  321. .msg-label {
  322. min-width: 120rpx;
  323. margin-right: 24rpx;
  324. }
  325. }
  326. }
  327. .detail-title {
  328. color: #fff;
  329. font-size: 50rpx;
  330. font-weight: 500;
  331. font-family: DM Sans;
  332. }
  333. }
  334. .map-box {
  335. margin-top: 24rpx;
  336. border-radius: 12rpx;
  337. overflow: hidden;
  338. .map {
  339. width: 100%;
  340. height: 154rpx;
  341. }
  342. }
  343. .interview-process {
  344. margin-top: 24rpx;
  345. }
  346. .process-header {
  347. margin-bottom: 40rpx;
  348. }
  349. .process-title {
  350. font-size: 36rpx;
  351. font-weight: bold;
  352. color: #333;
  353. }
  354. .process-steps {
  355. position: relative;
  356. }
  357. .step-item {
  358. display: flex;
  359. align-items: flex-start;
  360. margin-bottom: 50rpx;
  361. position: relative;
  362. &:last-child {
  363. margin-bottom: 0;
  364. .step-line {
  365. display: none;
  366. }
  367. }
  368. }
  369. .step-icon {
  370. width: 32rpx;
  371. height: 32rpx;
  372. border-radius: 50%;
  373. background: #f5f5f5;
  374. display: flex;
  375. align-items: center;
  376. justify-content: center;
  377. margin-right: 24rpx;
  378. position: relative;
  379. z-index: 2;
  380. flex-shrink: 0;
  381. }
  382. .step-number {
  383. font-size: 20rpx;
  384. font-weight: bold;
  385. color: #999;
  386. }
  387. .step-check {
  388. display: flex;
  389. justify-content: center;
  390. align-items: center;
  391. }
  392. .step-content {
  393. flex: 1;
  394. }
  395. .step-title {
  396. color: rgba(29, 33, 41, 1);
  397. font-family: DM Sans;
  398. font-size: 24rpx;
  399. font-weight: 600;
  400. line-height: 32rpx;
  401. margin-bottom: 8rpx;
  402. }
  403. .step-desc {
  404. color: rgba(153, 153, 153, 1);
  405. font-family: DM Sans;
  406. font-size: 20rpx;
  407. font-weight: 400;
  408. line-height: 26rpx;
  409. }
  410. .step-line {
  411. position: absolute;
  412. left: 16rpx;
  413. top: 42rpx;
  414. bottom: -30rpx;
  415. width: 2rpx;
  416. background: #f0f0f0;
  417. z-index: 1;
  418. }
  419. /* 激活状态 */
  420. .step-item.active {
  421. .step-icon {
  422. background: #016bf6;
  423. }
  424. .step-number {
  425. color: #fff;
  426. }
  427. .step-title {
  428. color: #016bf6;
  429. font-weight: bold;
  430. }
  431. .step-line {
  432. background: #016bf6;
  433. }
  434. }
  435. /* 完成状态 */
  436. .step-item.completed {
  437. .step-icon {
  438. background: #016bf6;
  439. }
  440. .step-number {
  441. display: none;
  442. }
  443. .step-check {
  444. display: block;
  445. }
  446. }
  447. /* 操作按钮 */
  448. .process-actions {
  449. margin-top: 50rpx;
  450. display: flex;
  451. gap: 20rpx;
  452. flex-wrap: wrap;
  453. }
  454. .action-btn {
  455. flex: 1;
  456. background: #016bf6;
  457. color: #fff;
  458. border: none;
  459. border-radius: 100rpx;
  460. padding: 6rpx 24rpx;
  461. font-size: 28rpx;
  462. color: rgba(255, 255, 255, 1);
  463. font-family: DM Sans;
  464. font-size: 24rpx;
  465. font-weight: 400;
  466. text-align: center;
  467. &::after {
  468. border: none;
  469. }
  470. &:active {
  471. background: #009974;
  472. }
  473. }
  474. .complaint-btn {
  475. background: #ff4444;
  476. &:active {
  477. background: #dd3333;
  478. }
  479. }
  480. </style>