H.html 37 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>AI招聘系统</title>
  7. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.4.2/css/all.min.css">
  8. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@9.4.1/swiper-bundle.min.css">
  9. <style>
  10. :root {
  11. --primary-blue: #2A5CAA;
  12. --accent-orange: #FF6B35;
  13. --bg-light: #F5F7FA;
  14. --text-dark: #2D3748;
  15. --success-green: #48BB78;
  16. --card-shadow: 0 10px 20px rgba(0,0,0,0.08);
  17. }
  18. * {
  19. margin: 0;
  20. padding: 0;
  21. box-sizing: border-box;
  22. font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  23. }
  24. body {
  25. background-color: var(--bg-light);
  26. color: var(--text-dark);
  27. line-height: 1.6;
  28. }
  29. /* 登录页面样式 */
  30. .login-container {
  31. display: flex;
  32. min-height: 100vh;
  33. align-items: center;
  34. justify-content: center;
  35. background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  36. }
  37. .login-box {
  38. width: 90%;
  39. max-width: 400px;
  40. background: white;
  41. border-radius: 16px;
  42. padding: 30px;
  43. box-shadow: var(--card-shadow);
  44. text-align: center;
  45. }
  46. .login-logo {
  47. font-size: 24px;
  48. font-weight: bold;
  49. color: var(--primary-blue);
  50. margin-bottom: 30px;
  51. display: flex;
  52. align-items: center;
  53. justify-content: center;
  54. gap: 10px;
  55. }
  56. .login-tabs {
  57. display: flex;
  58. margin-bottom: 20px;
  59. border-bottom: 1px solid #e2e8f0;
  60. }
  61. .login-tab {
  62. flex: 1;
  63. padding: 12px;
  64. cursor: pointer;
  65. font-weight: 500;
  66. transition: all 0.2s;
  67. }
  68. .login-tab.active {
  69. color: var(--primary-blue);
  70. border-bottom: 2px solid var(--primary-blue);
  71. }
  72. .login-form {
  73. display: none;
  74. }
  75. .login-form.active {
  76. display: block;
  77. }
  78. .form-group {
  79. margin-bottom: 20px;
  80. text-align: left;
  81. }
  82. .form-group label {
  83. display: block;
  84. margin-bottom: 8px;
  85. font-weight: 500;
  86. }
  87. .form-control {
  88. width: 100%;
  89. padding: 12px 16px;
  90. border: 1px solid #e2e8f0;
  91. border-radius: 8px;
  92. font-size: 16px;
  93. transition: all 0.2s;
  94. }
  95. .form-control:focus {
  96. border-color: var(--primary-blue);
  97. box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  98. outline: none;
  99. }
  100. .btn {
  101. width: 100%;
  102. padding: 12px;
  103. border: none;
  104. border-radius: 8px;
  105. font-size: 16px;
  106. font-weight: 500;
  107. cursor: pointer;
  108. transition: all 0.2s;
  109. }
  110. .btn-primary {
  111. background: var(--primary-blue);
  112. color: white;
  113. }
  114. .btn-primary:hover {
  115. background: #1d4ed8;
  116. }
  117. .login-links {
  118. margin-top: 20px;
  119. display: flex;
  120. justify-content: space-between;
  121. }
  122. .login-link {
  123. color: var(--primary-blue);
  124. font-size: 14px;
  125. cursor: pointer;
  126. }
  127. /* 主界面容器 */
  128. .main-container {
  129. max-width: 800px;
  130. margin: 0 auto;
  131. padding: 20px;
  132. padding-bottom: 80px;
  133. }
  134. /* 顶部导航 */
  135. .header {
  136. display: flex;
  137. justify-content: space-between;
  138. align-items: center;
  139. margin-bottom: 30px;
  140. }
  141. .logo {
  142. font-size: 24px;
  143. font-weight: bold;
  144. background: linear-gradient(to right, var(--primary-blue), var(--accent-orange));
  145. -webkit-background-clip: text;
  146. -webkit-text-fill-color: transparent;
  147. }
  148. .user-avatar {
  149. width: 40px;
  150. height: 40px;
  151. border-radius: 50%;
  152. background-color: var(--primary-blue);
  153. display: flex;
  154. justify-content: center;
  155. align-items: center;
  156. color: white;
  157. font-size: 18px;
  158. cursor: pointer;
  159. }
  160. /* 用户欢迎区域 */
  161. .welcome-section {
  162. margin-bottom: 30px;
  163. }
  164. .welcome-card {
  165. background: linear-gradient(135deg, var(--primary-blue), #3A7BD5);
  166. color: white;
  167. border-radius: 16px;
  168. padding: 25px;
  169. box-shadow: var(--card-shadow);
  170. position: relative;
  171. overflow: hidden;
  172. }
  173. .welcome-card::after {
  174. content: '';
  175. position: absolute;
  176. top: -50px;
  177. right: -50px;
  178. width: 200px;
  179. height: 200px;
  180. background: rgba(255,255,255,0.1);
  181. border-radius: 50%;
  182. }
  183. .welcome-title {
  184. font-size: 22px;
  185. margin-bottom: 10px;
  186. font-weight: 500;
  187. position: relative;
  188. z-index: 1;
  189. }
  190. .welcome-subtitle {
  191. font-size: 16px;
  192. opacity: 0.9;
  193. margin-bottom: 20px;
  194. position: relative;
  195. z-index: 1;
  196. }
  197. .start-btn {
  198. background-color: white;
  199. color: var(--primary-blue);
  200. border: none;
  201. padding: 12px 25px;
  202. border-radius: 30px;
  203. font-size: 16px;
  204. font-weight: 500;
  205. cursor: pointer;
  206. display: inline-flex;
  207. align-items: center;
  208. box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  209. transition: all 0.3s ease;
  210. position: relative;
  211. z-index: 1;
  212. }
  213. .start-btn:hover {
  214. transform: translateY(-3px);
  215. box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  216. }
  217. .start-btn i {
  218. margin-left: 8px;
  219. }
  220. /* 岗位推荐轮播 */
  221. .section-title {
  222. font-size: 20px;
  223. margin-bottom: 20px;
  224. display: flex;
  225. justify-content: space-between;
  226. align-items: center;
  227. }
  228. .see-all {
  229. font-size: 14px;
  230. color: var(--primary-blue);
  231. text-decoration: none;
  232. }
  233. .swiper {
  234. width: 100%;
  235. height: 100%;
  236. margin-bottom: 40px;
  237. }
  238. .swiper-slide {
  239. background: white;
  240. border-radius: 12px;
  241. padding: 20px;
  242. box-shadow: var(--card-shadow);
  243. cursor: pointer;
  244. transition: all 0.3s ease;
  245. }
  246. .swiper-slide:hover {
  247. transform: translateY(-5px);
  248. box-shadow: 0 15px 30px rgba(0,0,0,0.12);
  249. }
  250. .job-card {
  251. height: 100%;
  252. display: flex;
  253. flex-direction: column;
  254. }
  255. .job-header {
  256. display: flex;
  257. justify-content: space-between;
  258. margin-bottom: 15px;
  259. }
  260. .job-title {
  261. font-size: 18px;
  262. font-weight: 600;
  263. }
  264. .job-salary {
  265. color: var(--accent-orange);
  266. font-weight: bold;
  267. }
  268. .job-company {
  269. display: flex;
  270. align-items: center;
  271. margin-bottom: 15px;
  272. }
  273. .company-logo {
  274. width: 30px;
  275. height: 30px;
  276. border-radius: 6px;
  277. background-color: #EDF2F7;
  278. margin-right: 10px;
  279. display: flex;
  280. justify-content: center;
  281. align-items: center;
  282. color: var(--primary-blue);
  283. font-size: 12px;
  284. }
  285. .company-name {
  286. font-size: 14px;
  287. color: #718096;
  288. }
  289. .job-tags {
  290. display: flex;
  291. flex-wrap: wrap;
  292. gap: 8px;
  293. margin-bottom: 15px;
  294. }
  295. .tag {
  296. background: #EDF2F7;
  297. padding: 4px 10px;
  298. border-radius: 20px;
  299. font-size: 12px;
  300. color: #4A5568;
  301. }
  302. .match-bar {
  303. margin-top: auto;
  304. }
  305. .match-text {
  306. display: flex;
  307. justify-content: space-between;
  308. margin-bottom: 5px;
  309. font-size: 14px;
  310. }
  311. .match-value {
  312. color: var(--primary-blue);
  313. font-weight: 600;
  314. }
  315. .progress-bar {
  316. height: 6px;
  317. background: #EDF2F7;
  318. border-radius: 3px;
  319. overflow: hidden;
  320. }
  321. .progress-fill {
  322. height: 100%;
  323. border-radius: 3px;
  324. background: linear-gradient(to right, var(--primary-blue), var(--accent-orange));
  325. }
  326. /* 快速入口 */
  327. .quick-actions {
  328. display: grid;
  329. grid-template-columns: repeat(2, 1fr);
  330. gap: 15px;
  331. margin-bottom: 30px;
  332. }
  333. .action-card {
  334. background: white;
  335. border-radius: 12px;
  336. padding: 20px;
  337. box-shadow: var(--card-shadow);
  338. text-align: center;
  339. cursor: pointer;
  340. transition: all 0.3s ease;
  341. }
  342. .action-card:hover {
  343. transform: translateY(-3px);
  344. box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  345. }
  346. .action-icon {
  347. width: 50px;
  348. height: 50px;
  349. border-radius: 50%;
  350. background: linear-gradient(135deg, var(--primary-blue), #3A7BD5);
  351. display: flex;
  352. justify-content: center;
  353. align-items: center;
  354. color: white;
  355. font-size: 20px;
  356. margin: 0 auto 15px;
  357. }
  358. .action-title {
  359. font-size: 16px;
  360. font-weight: 500;
  361. margin-bottom: 5px;
  362. }
  363. .action-desc {
  364. font-size: 12px;
  365. color: #718096;
  366. }
  367. /* 底部导航 */
  368. .bottom-nav {
  369. position: fixed;
  370. bottom: 0;
  371. left: 0;
  372. right: 0;
  373. background: white;
  374. box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
  375. padding: 10px 0;
  376. z-index: 100;
  377. }
  378. .nav-container {
  379. max-width: 800px;
  380. margin: 0 auto;
  381. display: flex;
  382. justify-content: space-around;
  383. }
  384. .nav-item {
  385. display: flex;
  386. flex-direction: column;
  387. align-items: center;
  388. color: #718096;
  389. text-decoration: none;
  390. font-size: 12px;
  391. }
  392. .nav-item.active {
  393. color: var(--primary-blue);
  394. }
  395. .nav-icon {
  396. font-size: 20px;
  397. margin-bottom: 5px;
  398. }
  399. /* 用户下拉菜单 */
  400. .user-dropdown {
  401. position: relative;
  402. }
  403. .dropdown-menu {
  404. position: absolute;
  405. top: 50px;
  406. right: 0;
  407. width: 160px;
  408. background: white;
  409. border-radius: 8px;
  410. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  411. padding: 10px 0;
  412. z-index: 100;
  413. display: none;
  414. }
  415. .dropdown-item {
  416. padding: 10px 16px;
  417. cursor: pointer;
  418. transition: all 0.2s;
  419. font-size: 14px;
  420. }
  421. .dropdown-item:hover {
  422. background: #f1f5f9;
  423. }
  424. .dropdown-divider {
  425. height: 1px;
  426. background: #e2e8f0;
  427. margin: 5px 0;
  428. }
  429. /* 响应式调整 */
  430. @media (max-width: 600px) {
  431. .main-container {
  432. padding: 15px;
  433. padding-bottom: 70px;
  434. }
  435. .welcome-card {
  436. padding: 20px;
  437. }
  438. .welcome-title {
  439. font-size: 20px;
  440. }
  441. .quick-actions {
  442. grid-template-columns: 1fr;
  443. }
  444. .login-box {
  445. padding: 20px;
  446. }
  447. }
  448. </style>
  449. </head>
  450. <body>
  451. <!-- 登录页面 -->
  452. <div class="login-container" id="loginPage">
  453. <div class="login-box">
  454. <div class="login-logo">
  455. <i class="fas fa-briefcase"></i>
  456. <span>AI招聘系统</span>
  457. </div>
  458. <div class="login-tabs">
  459. <div class="login-tab active" data-tab="candidate">应聘者登录</div>
  460. <div class="login-tab" data-tab="recruiter">招聘者登录</div>
  461. </div>
  462. <!-- 应聘者登录表单 -->
  463. <div class="login-form active" id="candidateLogin">
  464. <div class="form-group">
  465. <label for="candidateUsername">用户名</label>
  466. <input type="text" id="candidateUsername" class="form-control" placeholder="请输入用户名">
  467. </div>
  468. <div class="form-group">
  469. <label for="candidatePassword">密码</label>
  470. <input type="password" id="candidatePassword" class="form-control" placeholder="请输入密码">
  471. </div>
  472. <button class="btn btn-primary" id="candidateLoginBtn">登录</button>
  473. <div class="login-links">
  474. <span class="login-link" id="showRegister">注册账号</span>
  475. <span class="login-link" id="showForgot">忘记密码</span>
  476. </div>
  477. </div>
  478. <!-- 招聘者登录表单 -->
  479. <div class="login-form" id="recruiterLogin">
  480. <div class="form-group">
  481. <label for="recruiterUsername">用户名</label>
  482. <input type="text" id="recruiterUsername" class="form-control" placeholder="请输入用户名">
  483. </div>
  484. <div class="form-group">
  485. <label for="recruiterPassword">密码</label>
  486. <input type="password" id="recruiterPassword" class="form-control" placeholder="请输入密码">
  487. </div>
  488. <button class="btn btn-primary" id="recruiterLoginBtn">登录</button>
  489. <div class="login-links">
  490. <span class="login-link" id="showRegister2">注册账号</span>
  491. <span class="login-link" id="showForgot2">忘记密码</span>
  492. </div>
  493. </div>
  494. </div>
  495. </div>
  496. <!-- 注册页面 -->
  497. <div class="login-container" id="registerPage" style="display: none;">
  498. <div class="login-box">
  499. <div class="login-logo">
  500. <i class="fas fa-user-plus"></i>
  501. <span>注册账号</span>
  502. </div>
  503. <div class="login-tabs">
  504. <div class="login-tab active" data-tab="candidateReg">应聘者注册</div>
  505. <div class="login-tab" data-tab="recruiterReg">招聘者注册</div>
  506. </div>
  507. <!-- 应聘者注册表单 -->
  508. <div class="login-form active" id="candidateRegister">
  509. <div class="form-group">
  510. <label for="regCandidateUsername">用户名</label>
  511. <input type="text" id="regCandidateUsername" class="form-control" placeholder="请输入用户名">
  512. </div>
  513. <div class="form-group">
  514. <label for="regCandidatePassword">密码</label>
  515. <input type="password" id="regCandidatePassword" class="form-control" placeholder="请输入密码">
  516. </div>
  517. <div class="form-group">
  518. <label for="regCandidateConfirm">确认密码</label>
  519. <input type="password" id="regCandidateConfirm" class="form-control" placeholder="请再次输入密码">
  520. </div>
  521. <div class="form-group">
  522. <label for="regCandidateEmail">电子邮箱</label>
  523. <input type="email" id="regCandidateEmail" class="form-control" placeholder="请输入电子邮箱">
  524. </div>
  525. <button class="btn btn-primary" id="candidateRegisterBtn">注册</button>
  526. <div class="login-links">
  527. <span class="login-link" id="backToLogin">返回登录</span>
  528. </div>
  529. </div>
  530. <!-- 招聘者注册表单 -->
  531. <div class="login-form" id="recruiterRegister">
  532. <div class="form-group">
  533. <label for="regRecruiterUsername">用户名</label>
  534. <input type="text" id="regRecruiterUsername" class="form-control" placeholder="请输入用户名">
  535. </div>
  536. <div class="form-group">
  537. <label for="regRecruiterPassword">密码</label>
  538. <input type="password" id="regRecruiterPassword" class="form-control" placeholder="请输入密码">
  539. </div>
  540. <div class="form-group">
  541. <label for="regRecruiterConfirm">确认密码</label>
  542. <input type="password" id="regRecruiterConfirm" class="form-control" placeholder="请再次输入密码">
  543. </div>
  544. <div class="form-group">
  545. <label for="regRecruiterEmail">电子邮箱</label>
  546. <input type="email" id="regRecruiterEmail" class="form-control" placeholder="请输入电子邮箱">
  547. </div>
  548. <div class="form-group">
  549. <label for="regCompany">公司名称</label>
  550. <input type="text" id="regCompany" class="form-control" placeholder="请输入公司名称">
  551. </div>
  552. <button class="btn btn-primary" id="recruiterRegisterBtn">注册</button>
  553. <div class="login-links">
  554. <span class="login-link" id="backToLogin2">返回登录</span>
  555. </div>
  556. </div>
  557. </div>
  558. </div>
  559. <!-- 忘记密码页面 -->
  560. <div class="login-container" id="forgotPage" style="display: none;">
  561. <div class="login-box">
  562. <div class="login-logo">
  563. <i class="fas fa-key"></i>
  564. <span>找回密码</span>
  565. </div>
  566. <div class="form-group">
  567. <label for="forgotEmail">电子邮箱</label>
  568. <input type="email" id="forgotEmail" class="form-control" placeholder="请输入注册时使用的电子邮箱">
  569. </div>
  570. <button class="btn btn-primary" id="forgotBtn">发送重置链接</button>
  571. <div class="login-links">
  572. <span class="login-link" id="backToLogin3">返回登录</span>
  573. </div>
  574. </div>
  575. </div>
  576. <!-- 主界面 - 应聘者 -->
  577. <div class="main-container" id="candidateContainer" style="display: none;">
  578. <!-- 顶部导航 -->
  579. <div class="header">
  580. <div class="logo">AI招聘官</div>
  581. <div class="user-dropdown">
  582. <div class="user-avatar" id="userAvatar">
  583. <i class="fas fa-user"></i>
  584. </div>
  585. <div class="dropdown-menu" id="userDropdown">
  586. <div class="dropdown-item">
  587. <i class="fas fa-user"></i> 个人中心
  588. </div>
  589. <div class="dropdown-item">
  590. <i class="fas fa-cog"></i> 系统设置
  591. </div>
  592. <div class="dropdown-divider"></div>
  593. <div class="dropdown-item">
  594. <i class="fas fa-sign-out-alt"></i> 退出登录
  595. </div>
  596. </div>
  597. </div>
  598. </div>
  599. <!-- 欢迎区域 -->
  600. <div class="welcome-section">
  601. <div class="welcome-card">
  602. <h1 class="welcome-title">下午好,张伟</h1>
  603. <p class="welcome-subtitle">您有3个匹配的岗位待面试,准备好了吗?</p>
  604. <button class="start-btn">
  605. 开始模拟面试 <i class="fas fa-arrow-right"></i>
  606. </button>
  607. </div>
  608. </div>
  609. <!-- 岗位推荐 -->
  610. <div class="job-section">
  611. <h2 class="section-title">
  612. 为您推荐
  613. <a href="#" class="see-all">查看全部</a>
  614. </h2>
  615. <div class="swiper mySwiper">
  616. <div class="swiper-wrapper">
  617. <!-- 岗位卡片1 -->
  618. <div class="swiper-slide">
  619. <div class="job-card">
  620. <div class="job-header">
  621. <h3 class="job-title">前端开发工程师</h3>
  622. <div class="job-salary">25-40K·15薪</div>
  623. </div>
  624. <div class="job-company">
  625. <div class="company-logo">TX</div>
  626. <div class="company-name">腾讯科技 · 深圳</div>
  627. </div>
  628. <div class="job-tags">
  629. <span class="tag">Vue.js</span>
  630. <span class="tag">React</span>
  631. <span class="tag">TypeScript</span>
  632. </div>
  633. <div class="match-bar">
  634. <div class="match-text">
  635. <span>匹配度</span>
  636. <span class="match-value">87%</span>
  637. </div>
  638. <div class="progress-bar">
  639. <div class="progress-fill" style="width: 87%"></div>
  640. </div>
  641. </div>
  642. </div>
  643. </div>
  644. <!-- 岗位卡片2 -->
  645. <div class="swiper-slide">
  646. <div class="job-card">
  647. <div class="job-header">
  648. <h3 class="job-title">Java高级工程师</h3>
  649. <div class="job-salary">30-50K·16薪</div>
  650. </div>
  651. <div class="job-company">
  652. <div class="company-logo">AL</div>
  653. <div class="company-name">阿里巴巴 · 杭州</div>
  654. </div>
  655. <div class="job-tags">
  656. <span class="tag">Spring Cloud</span>
  657. <span class="tag">分布式</span>
  658. <span class="tag">MySQL</span>
  659. </div>
  660. <div class="match-bar">
  661. <div class="match-text">
  662. <span>匹配度</span>
  663. <span class="match-value">76%</span>
  664. </div>
  665. <div class="progress-bar">
  666. <div class="progress-fill" style="width: 76%"></div>
  667. </div>
  668. </div>
  669. </div>
  670. </div>
  671. <!-- 岗位卡片3 -->
  672. <div class="swiper-slide">
  673. <div class="job-card">
  674. <div class="job-header">
  675. <h3 class="job-title">产品经理</h3>
  676. <div class="job-salary">20-35K·14薪</div>
  677. </div>
  678. <div class="job-company">
  679. <div class="company-logo">BD</div>
  680. <div class="company-name">百度 · 北京</div>
  681. </div>
  682. <div class="job-tags">
  683. <span class="tag">Axure</span>
  684. <span class="tag">用户研究</span>
  685. <span class="tag">PRD</span>
  686. </div>
  687. <div class="match-bar">
  688. <div class="match-text">
  689. <span>匹配度</span>
  690. <span class="match-value">92%</span>
  691. </div>
  692. <div class="progress-bar">
  693. <div class="progress-fill" style="width: 92%"></div>
  694. </div>
  695. </div>
  696. </div>
  697. </div>
  698. </div>
  699. </div>
  700. </div>
  701. <!-- 快速入口 -->
  702. <div class="quick-section">
  703. <h2 class="section-title">快速开始</h2>
  704. <div class="quick-actions">
  705. <div class="action-card">
  706. <div class="action-icon">
  707. <i class="fas fa-robot"></i>
  708. </div>
  709. <h3 class="action-title">AI模拟面试</h3>
  710. <p class="action-desc">智能评估您的表现</p>
  711. </div>
  712. <div class="action-card">
  713. <div class="action-icon" style="background: linear-gradient(135deg, #9F7AEA, #6B46C1);">
  714. <i class="fas fa-vr-cardboard"></i>
  715. </div>
  716. <h3 class="action-title">VR企业展厅</h3>
  717. <p class="action-desc">沉浸式了解企业</p>
  718. </div>
  719. <div class="action-card">
  720. <div class="action-icon" style="background: linear-gradient(135deg, #F6AD55, #DD6B20);">
  721. <i class="fas fa-book"></i>
  722. </div>
  723. <h3 class="action-title">面试题库</h3>
  724. <p class="action-desc">海量真题练习</p>
  725. </div>
  726. <div class="action-card">
  727. <div class="action-icon" style="background: linear-gradient(135deg, #48BB78, #38A169);">
  728. <i class="fas fa-chart-line"></i>
  729. </div>
  730. <h3 class="action-title">成长报告</h3>
  731. <p class="action-desc">查看历史表现</p>
  732. </div>
  733. </div>
  734. </div>
  735. </div>
  736. <!-- 底部导航 -->
  737. <div class="bottom-nav" id="bottomNav" style="display: none;">
  738. <div class="nav-container">
  739. <a href="#" class="nav-item active">
  740. <i class="fas fa-home nav-icon"></i>
  741. <span>首页</span>
  742. </a>
  743. <a href="#" class="nav-item">
  744. <i class="fas fa-search nav-icon"></i>
  745. <span>发现</span>
  746. </a>
  747. <a href="#" class="nav-item">
  748. <i class="fas fa-comments nav-icon"></i>
  749. <span>面试</span>
  750. </a>
  751. <a href="#" class="nav-item">
  752. <i class="fas fa-user nav-icon"></i>
  753. <span>我的</span>
  754. </a>
  755. </div>
  756. </div>
  757. <!-- Swiper JS -->
  758. <script src="https://cdn.jsdelivr.net/npm/swiper@9.4.1/swiper-bundle.min.js"></script>
  759. <script>
  760. // 用户类型: candidate(应聘者) 或 recruiter(招聘者)
  761. let userType = '';
  762. let currentUser = null;
  763. // 初始化页面
  764. const initPages = () => {
  765. // 绑定登录/注册切换事件
  766. document.querySelectorAll('.login-tab').forEach(tab => {
  767. tab.addEventListener('click', function() {
  768. const tabId = this.getAttribute('data-tab');
  769. // 更新标签页状态
  770. document.querySelectorAll('.login-tab').forEach(t => t.classList.remove('active'));
  771. this.classList.add('active');
  772. // 显示对应的表单
  773. if (tabId.includes('Reg')) {
  774. // 注册表单
  775. document.querySelectorAll('.login-form').forEach(form => form.classList.remove('active'));
  776. document.getElementById(tabId === 'candidateReg' ? 'candidateRegister' : 'recruiterRegister').classList.add('active');
  777. } else {
  778. // 登录表单
  779. document.querySelectorAll('.login-form').forEach(form => form.classList.remove('active'));
  780. document.getElementById(tabId === 'candidate' ? 'candidateLogin' : 'recruiterLogin').classList.add('active');
  781. }
  782. });
  783. });
  784. // 绑定显示注册页面事件
  785. document.getElementById('showRegister').addEventListener('click', showRegisterPage);
  786. document.getElementById('showRegister2').addEventListener('click', showRegisterPage);
  787. // 绑定显示忘记密码页面事件
  788. document.getElementById('showForgot').addEventListener('click', showForgotPage);
  789. document.getElementById('showForgot2').addEventListener('click', showForgotPage);
  790. // 绑定返回登录事件
  791. document.getElementById('backToLogin').addEventListener('click', showLoginPage);
  792. document.getElementById('backToLogin2').addEventListener('click', showLoginPage);
  793. document.getElementById('backToLogin3').addEventListener('click', showLoginPage);
  794. // 绑定登录按钮事件
  795. document.getElementById('candidateLoginBtn').addEventListener('click', () => login('candidate'));
  796. document.getElementById('recruiterLoginBtn').addEventListener('click', () => login('recruiter'));
  797. // 绑定注册按钮事件
  798. document.getElementById('candidateRegisterBtn').addEventListener('click', () => register('candidate'));
  799. document.getElementById('recruiterRegisterBtn').addEventListener('click', () => register('recruiter'));
  800. // 绑定忘记密码按钮事件
  801. document.getElementById('forgotBtn').addEventListener('click', forgotPassword);
  802. // 绑定用户头像点击事件
  803. document.getElementById('userAvatar').addEventListener('click', toggleUserDropdown);
  804. // 绑定退出登录事件
  805. document.querySelectorAll('.dropdown-item').forEach(item => {
  806. if (item.textContent.includes('退出登录')) {
  807. item.addEventListener('click', logout);
  808. }
  809. });
  810. // 初始化轮播
  811. const swiper = new Swiper(".mySwiper", {
  812. slidesPerView: 1.1,
  813. spaceBetween: 15,
  814. grabCursor: true,
  815. breakpoints: {
  816. 600: {
  817. slidesPerView: 2.1,
  818. spaceBetween: 20
  819. }
  820. }
  821. });
  822. // 模拟点击事件
  823. document.querySelector('.start-btn').addEventListener('click', function() {
  824. alert('即将跳转到面试准备页面');
  825. });
  826. document.querySelectorAll('.job-card, .action-card').forEach(card => {
  827. card.addEventListener('click', function() {
  828. alert('即将跳转到对应功能页面');
  829. });
  830. });
  831. };
  832. // 显示登录页面
  833. const showLoginPage = () => {
  834. document.getElementById('loginPage').style.display = 'flex';
  835. document.getElementById('registerPage').style.display = 'none';
  836. document.getElementById('forgotPage').style.display = 'none';
  837. };
  838. // 显示注册页面
  839. const showRegisterPage = () => {
  840. document.getElementById('loginPage').style.display = 'none';
  841. document.getElementById('registerPage').style.display = 'flex';
  842. document.getElementById('forgotPage').style.display = 'none';
  843. };
  844. // 显示忘记密码页面
  845. const showForgotPage = () => {
  846. document.getElementById('loginPage').style.display = 'none';
  847. document.getElementById('registerPage').style.display = 'none';
  848. document.getElementById('forgotPage').style.display = 'flex';
  849. };
  850. // 切换用户下拉菜单
  851. const toggleUserDropdown = () => {
  852. const dropdown = document.getElementById('userDropdown');
  853. dropdown.style.display = dropdown.style.display === 'block' ? 'none' : 'block';
  854. };
  855. // 登录功能
  856. const login = (type) => {
  857. const usernameField = type === 'candidate' ? 'candidateUsername' : 'recruiterUsername';
  858. const passwordField = type === 'candidate' ? 'candidatePassword' : 'recruiterPassword';
  859. const username = document.getElementById(usernameField).value;
  860. const password = document.getElementById(passwordField).value;
  861. if (!username || !password) {
  862. alert('请输入用户名和密码');
  863. return;
  864. }
  865. // 模拟登录成功
  866. userType = type;
  867. currentUser = {
  868. username: username,
  869. type: type,
  870. name: type === 'candidate' ? '张伟' : '李明',
  871. company: type === 'recruiter' ? 'XX科技公司' : null
  872. };
  873. // 显示主界面
  874. document.getElementById('loginPage').style.display = 'none';
  875. document.getElementById('candidateContainer').style.display = 'block';
  876. document.getElementById('bottomNav').style.display = 'block';
  877. };
  878. // 注册功能
  879. const register = (type) => {
  880. const usernameField = type === 'candidate' ? 'regCandidateUsername' : 'regRecruiterUsername';
  881. const passwordField = type === 'candidate' ? 'regCandidatePassword' : 'regRecruiterPassword';
  882. const confirmField = type === 'candidate' ? 'regCandidateConfirm' : 'regRecruiterConfirm';
  883. const emailField = type === 'candidate' ? 'regCandidateEmail' : 'regRecruiterEmail';
  884. const username = document.getElementById(usernameField).value;
  885. const password = document.getElementById(passwordField).value;
  886. const confirm = document.getElementById(confirmField).value;
  887. const email = document.getElementById(emailField).value;
  888. const company = type === 'recruiter' ? document.getElementById('regCompany').value : null;
  889. if (!username || !password || !confirm || !email) {
  890. alert('请填写所有必填字段');
  891. return;
  892. }
  893. if (password !== confirm) {
  894. alert('两次输入的密码不一致');
  895. return;
  896. }
  897. if (type === 'recruiter' && !company) {
  898. alert('请填写公司名称');
  899. return;
  900. }
  901. // 模拟注册成功
  902. alert('注册成功!请登录');
  903. showLoginPage();
  904. };
  905. // 忘记密码功能
  906. const forgotPassword = () => {
  907. const email = document.getElementById('forgotEmail').value;
  908. if (!email) {
  909. alert('请输入电子邮箱');
  910. return;
  911. }
  912. // 模拟发送重置链接
  913. alert(`重置链接已发送至 ${email},请查收邮件并按照指示操作`);
  914. showLoginPage();
  915. };
  916. // 退出登录
  917. const logout = () => {
  918. userType = '';
  919. currentUser = null;
  920. // 隐藏主界面
  921. document.getElementById('candidateContainer').style.display = 'none';
  922. document.getElementById('bottomNav').style.display = 'none';
  923. // 显示登录页面
  924. showLoginPage();
  925. };
  926. // 初始化页面
  927. initPages();
  928. </script>
  929. </body>
  930. </html>