H.html 197 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436
  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>智能招聘系统</title>
  7. <!-- 国内CDN引入 -->
  8. <link href="https://cdn.bootcdn.net/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
  9. <link href="https://cdn.bootcdn.net/ajax/libs/animate.css/4.1.1/animate.min.css" rel="stylesheet">
  10. <script src="https://cdn.bootcdn.net/ajax/libs/echarts/5.4.3/echarts.min.js"></script>
  11. <style>
  12. :root {
  13. --primary: #2563eb;
  14. --secondary: #f59e0b;
  15. --dark: #1e293b;
  16. --light: #f8fafc;
  17. --success: #10b981;
  18. --danger: #ef4444;
  19. --warning: #f97316;
  20. }
  21. * {
  22. margin: 0;
  23. padding: 0;
  24. box-sizing: border-box;
  25. font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
  26. }
  27. body {
  28. background-color: #f1f5f9;
  29. color: var(--dark);
  30. line-height: 1.6;
  31. }
  32. /* 登录页面样式 */
  33. .login-container {
  34. display: flex;
  35. min-height: 100vh;
  36. align-items: center;
  37. justify-content: center;
  38. background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  39. }
  40. .login-box {
  41. width: 400px;
  42. background: white;
  43. border-radius: 12px;
  44. padding: 40px;
  45. box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  46. text-align: center;
  47. }
  48. .login-logo {
  49. font-size: 28px;
  50. font-weight: bold;
  51. color: var(--primary);
  52. margin-bottom: 30px;
  53. display: flex;
  54. align-items: center;
  55. justify-content: center;
  56. gap: 10px;
  57. }
  58. .login-tabs {
  59. display: flex;
  60. margin-bottom: 20px;
  61. border-bottom: 1px solid #e2e8f0;
  62. }
  63. .login-tab {
  64. flex: 1;
  65. padding: 12px;
  66. cursor: pointer;
  67. font-weight: 500;
  68. transition: all 0.2s;
  69. }
  70. .login-tab.active {
  71. color: var(--primary);
  72. border-bottom: 2px solid var(--primary);
  73. }
  74. .login-form {
  75. display: none;
  76. }
  77. .login-form.active {
  78. display: block;
  79. }
  80. .form-group {
  81. margin-bottom: 20px;
  82. text-align: left;
  83. }
  84. .form-group label {
  85. display: block;
  86. margin-bottom: 8px;
  87. font-weight: 500;
  88. }
  89. .form-control {
  90. width: 100%;
  91. padding: 12px 16px;
  92. border: 1px solid #e2e8f0;
  93. border-radius: 8px;
  94. font-size: 16px;
  95. transition: all 0.2s;
  96. }
  97. .form-control:focus {
  98. border-color: var(--primary);
  99. box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  100. outline: none;
  101. }
  102. .btn {
  103. padding: 12px;
  104. border: none;
  105. border-radius: 8px;
  106. font-size: 16px;
  107. font-weight: 500;
  108. cursor: pointer;
  109. transition: all 0.2s;
  110. }
  111. .btn-block {
  112. width: 100%;
  113. }
  114. .btn-primary {
  115. background: var(--primary);
  116. color: white;
  117. }
  118. .btn-primary:hover {
  119. background: #1d4ed8;
  120. }
  121. .btn-secondary {
  122. background: var(--secondary);
  123. color: white;
  124. }
  125. .btn-secondary:hover {
  126. background: #d97706;
  127. }
  128. .btn-success {
  129. background: var(--success);
  130. color: white;
  131. }
  132. .btn-success:hover {
  133. background: #059669;
  134. }
  135. .btn-danger {
  136. background: var(--danger);
  137. color: white;
  138. }
  139. .btn-danger:hover {
  140. background: #dc2626;
  141. }
  142. .login-links {
  143. margin-top: 20px;
  144. display: flex;
  145. justify-content: space-between;
  146. }
  147. .login-link {
  148. color: var(--primary);
  149. font-size: 14px;
  150. cursor: pointer;
  151. }
  152. /* 主界面样式 */
  153. .container {
  154. display: flex;
  155. min-height: 100vh;
  156. padding: 20px;
  157. gap: 20px;
  158. max-width: 1400px;
  159. margin: 0 auto;
  160. display: none;
  161. }
  162. /* 左侧导航 */
  163. .sidebar {
  164. width: 240px;
  165. background: white;
  166. border-radius: 12px;
  167. padding: 20px;
  168. box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  169. display: flex;
  170. flex-direction: column;
  171. }
  172. .logo {
  173. font-size: 20px;
  174. font-weight: bold;
  175. color: var(--primary);
  176. margin-bottom: 30px;
  177. display: flex;
  178. align-items: center;
  179. gap: 10px;
  180. }
  181. .nav-menu {
  182. flex: 1;
  183. display: flex;
  184. flex-direction: column;
  185. gap: 8px;
  186. }
  187. .nav-item {
  188. padding: 12px 16px;
  189. border-radius: 8px;
  190. display: flex;
  191. align-items: center;
  192. gap: 12px;
  193. cursor: pointer;
  194. transition: all 0.2s;
  195. }
  196. .nav-item:hover {
  197. background-color: #f1f5f9;
  198. }
  199. .nav-item.active {
  200. background-color: #eff6ff;
  201. color: var(--primary);
  202. font-weight: 500;
  203. }
  204. .nav-item i {
  205. width: 20px;
  206. text-align: center;
  207. }
  208. /* 主内容区 */
  209. .main-content {
  210. flex: 1;
  211. display: flex;
  212. flex-direction: column;
  213. gap: 20px;
  214. }
  215. /* 顶部信息栏 */
  216. .header {
  217. background: white;
  218. border-radius: 12px;
  219. padding: 18px 24px;
  220. display: flex;
  221. justify-content: space-between;
  222. align-items: center;
  223. box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  224. }
  225. .user-info {
  226. display: flex;
  227. align-items: center;
  228. gap: 12px;
  229. }
  230. .avatar {
  231. width: 40px;
  232. height: 40px;
  233. border-radius: 50%;
  234. background-color: #e0f2fe;
  235. display: flex;
  236. align-items: center;
  237. justify-content: center;
  238. color: var(--primary);
  239. font-weight: bold;
  240. cursor: pointer;
  241. }
  242. .user-dropdown {
  243. position: relative;
  244. }
  245. .dropdown-menu {
  246. position: absolute;
  247. top: 50px;
  248. right: 0;
  249. width: 200px;
  250. background: white;
  251. border-radius: 8px;
  252. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  253. padding: 10px 0;
  254. z-index: 100;
  255. display: none;
  256. }
  257. .dropdown-item {
  258. padding: 10px 16px;
  259. cursor: pointer;
  260. transition: all 0.2s;
  261. display: flex;
  262. align-items: center;
  263. gap: 10px;
  264. }
  265. .dropdown-item:hover {
  266. background: #f1f5f9;
  267. }
  268. .dropdown-divider {
  269. height: 1px;
  270. background: #e2e8f0;
  271. margin: 5px 0;
  272. }
  273. /* 搜索栏 */
  274. .search-bar {
  275. display: flex;
  276. gap: 10px;
  277. align-items: center;
  278. flex: 1;
  279. max-width: 500px;
  280. }
  281. .search-input {
  282. flex: 1;
  283. padding: 10px 16px;
  284. border: 1px solid #e2e8f0;
  285. border-radius: 8px;
  286. font-size: 14px;
  287. }
  288. .search-btn {
  289. padding: 10px 16px;
  290. background: var(--primary);
  291. color: white;
  292. border: none;
  293. border-radius: 8px;
  294. cursor: pointer;
  295. }
  296. .search-advanced {
  297. color: var(--primary);
  298. font-size: 14px;
  299. cursor: pointer;
  300. white-space: nowrap;
  301. }
  302. .search-filters {
  303. display: none;
  304. background: white;
  305. border-radius: 8px;
  306. padding: 16px;
  307. margin-top: 10px;
  308. box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  309. }
  310. .search-filters.active {
  311. display: block;
  312. }
  313. .filter-row {
  314. display: flex;
  315. gap: 16px;
  316. margin-bottom: 16px;
  317. }
  318. .filter-group {
  319. flex: 1;
  320. }
  321. .filter-group label {
  322. display: block;
  323. margin-bottom: 8px;
  324. font-size: 14px;
  325. color: #64748b;
  326. }
  327. .filter-select {
  328. width: 100%;
  329. padding: 8px 12px;
  330. border: 1px solid #e2e8f0;
  331. border-radius: 6px;
  332. font-size: 14px;
  333. }
  334. .filter-actions {
  335. display: flex;
  336. justify-content: flex-end;
  337. gap: 10px;
  338. }
  339. /* 内容区域样式 */
  340. .content-area {
  341. flex: 1;
  342. background: white;
  343. border-radius: 12px;
  344. padding: 24px;
  345. box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  346. overflow-y: auto;
  347. }
  348. .content-title {
  349. font-size: 20px;
  350. font-weight: 600;
  351. margin-bottom: 24px;
  352. color: var(--primary);
  353. display: flex;
  354. align-items: center;
  355. gap: 10px;
  356. }
  357. /* 工作/简历卡片样式 */
  358. .card-grid {
  359. display: grid;
  360. grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  361. gap: 20px;
  362. margin-top: 20px;
  363. }
  364. .card {
  365. background: white;
  366. border-radius: 8px;
  367. padding: 16px;
  368. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  369. border: 1px solid #e2e8f0;
  370. transition: all 0.2s;
  371. cursor: pointer;
  372. }
  373. .card:hover {
  374. transform: translateY(-4px);
  375. box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  376. }
  377. .card-header {
  378. display: flex;
  379. align-items: center;
  380. gap: 12px;
  381. margin-bottom: 12px;
  382. }
  383. .card-avatar {
  384. width: 48px;
  385. height: 48px;
  386. border-radius: 50%;
  387. background-color: #e0f2fe;
  388. display: flex;
  389. align-items: center;
  390. justify-content: center;
  391. color: var(--primary);
  392. font-weight: bold;
  393. }
  394. .card-title {
  395. font-weight: 600;
  396. margin-bottom: 4px;
  397. }
  398. .card-subtitle {
  399. font-size: 14px;
  400. color: #64748b;
  401. }
  402. .card-tags {
  403. display: flex;
  404. flex-wrap: wrap;
  405. gap: 8px;
  406. margin-top: 12px;
  407. }
  408. .card-tag {
  409. background: #f1f5f9;
  410. padding: 4px 10px;
  411. border-radius: 12px;
  412. font-size: 12px;
  413. color: #64748b;
  414. }
  415. .card-footer {
  416. margin-top: 16px;
  417. display: flex;
  418. justify-content: space-between;
  419. align-items: center;
  420. }
  421. .card-match {
  422. background: #dcfce7;
  423. color: #166534;
  424. padding: 4px 10px;
  425. border-radius: 12px;
  426. font-size: 12px;
  427. }
  428. .card-btn {
  429. padding: 6px 12px;
  430. background: var(--primary);
  431. color: white;
  432. border: none;
  433. border-radius: 6px;
  434. font-size: 12px;
  435. cursor: pointer;
  436. }
  437. /* 简历分析表单 */
  438. .resume-form {
  439. max-width: 800px;
  440. margin: 0 auto;
  441. }
  442. .form-section {
  443. margin-bottom: 24px;
  444. padding: 16px;
  445. background: #f8fafc;
  446. border-radius: 8px;
  447. }
  448. .form-section-title {
  449. font-size: 18px;
  450. font-weight: 600;
  451. margin-bottom: 16px;
  452. color: var(--primary);
  453. display: flex;
  454. align-items: center;
  455. gap: 8px;
  456. }
  457. .form-row {
  458. display: flex;
  459. gap: 16px;
  460. margin-bottom: 16px;
  461. }
  462. .form-col {
  463. flex: 1;
  464. }
  465. textarea.form-control {
  466. min-height: 100px;
  467. resize: vertical;
  468. }
  469. .form-actions {
  470. display: flex;
  471. justify-content: flex-end;
  472. gap: 12px;
  473. margin-top: 24px;
  474. }
  475. /* 职业匹配结果 */
  476. .match-result {
  477. margin-top: 24px;
  478. padding: 16px;
  479. background: #f8fafc;
  480. border-radius: 8px;
  481. }
  482. .match-title {
  483. font-size: 18px;
  484. font-weight: 600;
  485. margin-bottom: 16px;
  486. color: var(--primary);
  487. }
  488. .match-item {
  489. display: flex;
  490. justify-content: space-between;
  491. align-items: center;
  492. padding: 12px 0;
  493. border-bottom: 1px solid #e2e8f0;
  494. }
  495. .match-item:last-child {
  496. border-bottom: none;
  497. }
  498. .match-job {
  499. font-weight: 500;
  500. }
  501. .match-score {
  502. font-weight: 600;
  503. color: var(--primary);
  504. }
  505. /* 个人中心样式 */
  506. .profile-container {
  507. display: flex;
  508. gap: 24px;
  509. }
  510. .profile-sidebar {
  511. width: 240px;
  512. background: #f8fafc;
  513. border-radius: 8px;
  514. padding: 16px;
  515. }
  516. .profile-menu {
  517. display: flex;
  518. flex-direction: column;
  519. gap: 8px;
  520. }
  521. .profile-menu-item {
  522. padding: 12px 16px;
  523. border-radius: 6px;
  524. cursor: pointer;
  525. transition: all 0.2s;
  526. }
  527. .profile-menu-item:hover {
  528. background: #e2e8f0;
  529. }
  530. .profile-menu-item.active {
  531. background: #e0f2fe;
  532. color: var(--primary);
  533. font-weight: 500;
  534. }
  535. .profile-content {
  536. flex: 1;
  537. background: #f8fafc;
  538. border-radius: 8px;
  539. padding: 24px;
  540. }
  541. .profile-section {
  542. display: none;
  543. }
  544. .profile-section.active {
  545. display: block;
  546. }
  547. .profile-header {
  548. display: flex;
  549. align-items: center;
  550. gap: 20px;
  551. margin-bottom: 24px;
  552. }
  553. .profile-avatar {
  554. width: 80px;
  555. height: 80px;
  556. border-radius: 50%;
  557. background-color: #e0f2fe;
  558. display: flex;
  559. align-items: center;
  560. justify-content: center;
  561. color: var(--primary);
  562. font-size: 32px;
  563. font-weight: bold;
  564. }
  565. .profile-info h2 {
  566. margin-bottom: 8px;
  567. }
  568. .profile-info p {
  569. color: #64748b;
  570. }
  571. .profile-form {
  572. max-width: 600px;
  573. }
  574. /* 设置页面样式 */
  575. .settings-container {
  576. display: flex;
  577. gap: 24px;
  578. }
  579. .settings-sidebar {
  580. width: 240px;
  581. background: #f8fafc;
  582. border-radius: 8px;
  583. padding: 16px;
  584. }
  585. .settings-menu {
  586. display: flex;
  587. flex-direction: column;
  588. gap: 8px;
  589. }
  590. .settings-menu-item {
  591. padding: 12px 16px;
  592. border-radius: 6px;
  593. cursor: pointer;
  594. transition: all 0.2s;
  595. }
  596. .settings-menu-item:hover {
  597. background: #e2e8f0;
  598. }
  599. .settings-menu-item.active {
  600. background: #e0f2fe;
  601. color: var(--primary);
  602. font-weight: 500;
  603. }
  604. .settings-content {
  605. flex: 1;
  606. background: #f8fafc;
  607. border-radius: 8px;
  608. padding: 24px;
  609. }
  610. .settings-section {
  611. display: none;
  612. }
  613. .settings-section.active {
  614. display: block;
  615. }
  616. .settings-item {
  617. display: flex;
  618. justify-content: space-between;
  619. align-items: center;
  620. padding: 16px 0;
  621. border-bottom: 1px solid #e2e8f0;
  622. }
  623. .settings-item:last-child {
  624. border-bottom: none;
  625. }
  626. .settings-item-info h3 {
  627. margin-bottom: 4px;
  628. }
  629. .settings-item-info p {
  630. color: #64748b;
  631. font-size: 14px;
  632. }
  633. .settings-item-action .switch {
  634. position: relative;
  635. display: inline-block;
  636. width: 50px;
  637. height: 24px;
  638. }
  639. .settings-item-action .switch input {
  640. opacity: 0;
  641. width: 0;
  642. height: 0;
  643. }
  644. .settings-item-action .slider {
  645. position: absolute;
  646. cursor: pointer;
  647. top: 0;
  648. left: 0;
  649. right: 0;
  650. bottom: 0;
  651. background-color: #ccc;
  652. transition: .4s;
  653. border-radius: 24px;
  654. }
  655. .settings-item-action .slider:before {
  656. position: absolute;
  657. content: "";
  658. height: 16px;
  659. width: 16px;
  660. left: 4px;
  661. bottom: 4px;
  662. background-color: white;
  663. transition: .4s;
  664. border-radius: 50%;
  665. }
  666. .settings-item-action input:checked + .slider {
  667. background-color: var(--primary);
  668. }
  669. .settings-item-action input:checked + .slider:before {
  670. transform: translateX(26px);
  671. }
  672. /* 图表容器 */
  673. .chart-container {
  674. width: 100%;
  675. height: 400px;
  676. margin-top: 24px;
  677. }
  678. /* 模态框样式 */
  679. .modal-overlay {
  680. position: fixed;
  681. top: 0;
  682. left: 0;
  683. right: 0;
  684. bottom: 0;
  685. background: rgba(0, 0, 0, 0.5);
  686. display: none;
  687. justify-content: center;
  688. align-items: center;
  689. z-index: 1000;
  690. }
  691. .modal-content {
  692. background: white;
  693. padding: 24px;
  694. border-radius: 12px;
  695. max-width: 600px;
  696. width: 90%;
  697. box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  698. max-height: 90vh;
  699. overflow-y: auto;
  700. }
  701. .modal-title {
  702. font-size: 18px;
  703. font-weight: 600;
  704. margin-bottom: 16px;
  705. display: flex;
  706. align-items: center;
  707. gap: 10px;
  708. }
  709. .modal-buttons {
  710. display: flex;
  711. gap: 12px;
  712. margin-top: 24px;
  713. }
  714. .modal-btn {
  715. flex: 1;
  716. padding: 10px;
  717. border-radius: 8px;
  718. border: none;
  719. font-weight: 500;
  720. cursor: pointer;
  721. transition: all 0.2s;
  722. }
  723. .modal-btn-cancel {
  724. background: #f1f5f9;
  725. color: var(--dark);
  726. }
  727. .modal-btn-confirm {
  728. background: var(--success);
  729. color: white;
  730. }
  731. .modal-btn:hover {
  732. transform: translateY(-2px);
  733. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  734. }
  735. /* 日历样式 */
  736. .calendar {
  737. width: 100%;
  738. border-collapse: collapse;
  739. margin-top: 20px;
  740. }
  741. .calendar th {
  742. padding: 12px;
  743. text-align: center;
  744. background: #f1f5f9;
  745. font-weight: 500;
  746. }
  747. .calendar td {
  748. padding: 12px;
  749. height: 100px;
  750. vertical-align: top;
  751. border: 1px solid #e2e8f0;
  752. }
  753. .calendar-day {
  754. font-weight: 500;
  755. margin-bottom: 6px;
  756. }
  757. .calendar-event {
  758. background: #e0f2fe;
  759. color: var(--primary);
  760. padding: 4px 8px;
  761. border-radius: 4px;
  762. font-size: 12px;
  763. margin-bottom: 4px;
  764. cursor: pointer;
  765. }
  766. /* 搜索历史 */
  767. .search-history {
  768. margin-top: 20px;
  769. }
  770. .history-title {
  771. font-size: 16px;
  772. font-weight: 500;
  773. margin-bottom: 12px;
  774. color: var(--dark);
  775. }
  776. .history-tags {
  777. display: flex;
  778. flex-wrap: wrap;
  779. gap: 8px;
  780. }
  781. .history-tag {
  782. background: #f1f5f9;
  783. padding: 6px 12px;
  784. border-radius: 16px;
  785. font-size: 14px;
  786. cursor: pointer;
  787. transition: all 0.2s;
  788. }
  789. .history-tag:hover {
  790. background: #e2e8f0;
  791. }
  792. /* 热门搜索 */
  793. .hot-search {
  794. margin-top: 24px;
  795. }
  796. .hot-item {
  797. display: flex;
  798. align-items: center;
  799. padding: 10px 0;
  800. border-bottom: 1px solid #e2e8f0;
  801. }
  802. .hot-rank {
  803. width: 24px;
  804. height: 24px;
  805. background: #f1f5f9;
  806. border-radius: 4px;
  807. display: flex;
  808. align-items: center;
  809. justify-content: center;
  810. margin-right: 12px;
  811. font-size: 14px;
  812. }
  813. .hot-item:nth-child(1) .hot-rank {
  814. background: #fee2e2;
  815. color: #b91c1c;
  816. }
  817. .hot-item:nth-child(2) .hot-rank {
  818. background: #ffedd5;
  819. color: #c2410c;
  820. }
  821. .hot-item:nth-child(3) .hot-rank {
  822. background: #fef3c7;
  823. color: #b45309;
  824. }
  825. .hot-content {
  826. flex: 1;
  827. }
  828. .hot-count {
  829. color: #64748b;
  830. font-size: 14px;
  831. }
  832. /* 响应式设计 */
  833. @media (max-width: 768px) {
  834. .login-box {
  835. width: 90%;
  836. padding: 30px 20px;
  837. }
  838. .container {
  839. flex-direction: column;
  840. padding: 10px;
  841. }
  842. .sidebar {
  843. width: 100%;
  844. flex-direction: row;
  845. align-items: center;
  846. }
  847. .logo {
  848. margin-bottom: 0;
  849. margin-right: 30px;
  850. }
  851. .nav-menu {
  852. flex-direction: row;
  853. overflow-x: auto;
  854. padding-bottom: 10px;
  855. }
  856. .card-grid {
  857. grid-template-columns: 1fr;
  858. }
  859. .form-row {
  860. flex-direction: column;
  861. gap: 16px;
  862. }
  863. .profile-container, .settings-container {
  864. flex-direction: column;
  865. }
  866. .profile-sidebar, .settings-sidebar {
  867. width: 100%;
  868. }
  869. .profile-header {
  870. flex-direction: column;
  871. text-align: center;
  872. }
  873. .filter-row {
  874. flex-direction: column;
  875. gap: 16px;
  876. }
  877. }
  878. </style>
  879. </head>
  880. <body>
  881. <!-- 登录页面 -->
  882. <div class="login-container" id="loginPage">
  883. <div class="login-box">
  884. <div class="login-logo">
  885. <i class="fas fa-briefcase"></i>
  886. <span>智能招聘系统</span>
  887. </div>
  888. <div class="login-tabs">
  889. <div class="login-tab active" data-tab="candidate">应聘者登录</div>
  890. <div class="login-tab" data-tab="recruiter">招聘者登录</div>
  891. </div>
  892. <!-- 应聘者登录表单 -->
  893. <div class="login-form active" id="candidateLogin">
  894. <div class="form-group">
  895. <label for="candidateUsername">用户名</label>
  896. <input type="text" id="candidateUsername" class="form-control" placeholder="请输入用户名">
  897. </div>
  898. <div class="form-group">
  899. <label for="candidatePassword">密码</label>
  900. <input type="password" id="candidatePassword" class="form-control" placeholder="请输入密码">
  901. </div>
  902. <button class="btn btn-primary btn-block" id="candidateLoginBtn">登录</button>
  903. <div class="login-links">
  904. <span class="login-link" id="showRegister">注册账号</span>
  905. <span class="login-link" id="showForgot">忘记密码</span>
  906. </div>
  907. </div>
  908. <!-- 招聘者登录表单 -->
  909. <div class="login-form" id="recruiterLogin">
  910. <div class="form-group">
  911. <label for="recruiterUsername">用户名</label>
  912. <input type="text" id="recruiterUsername" class="form-control" placeholder="请输入用户名">
  913. </div>
  914. <div class="form-group">
  915. <label for="recruiterPassword">密码</label>
  916. <input type="password" id="recruiterPassword" class="form-control" placeholder="请输入密码">
  917. </div>
  918. <button class="btn btn-primary btn-block" id="recruiterLoginBtn">登录</button>
  919. <div class="login-links">
  920. <span class="login-link" id="showRegister2">注册账号</span>
  921. <span class="login-link" id="showForgot2">忘记密码</span>
  922. </div>
  923. </div>
  924. </div>
  925. </div>
  926. <!-- 注册页面 -->
  927. <div class="login-container" id="registerPage" style="display: none;">
  928. <div class="login-box">
  929. <div class="login-logo">
  930. <i class="fas fa-user-plus"></i>
  931. <span>注册账号</span>
  932. </div>
  933. <div class="login-tabs">
  934. <div class="login-tab active" data-tab="candidateReg">应聘者注册</div>
  935. <div class="login-tab" data-tab="recruiterReg">招聘者注册</div>
  936. </div>
  937. <!-- 应聘者注册表单 -->
  938. <div class="login-form active" id="candidateRegister">
  939. <div class="form-group">
  940. <label for="regCandidateUsername">用户名</label>
  941. <input type="text" id="regCandidateUsername" class="form-control" placeholder="请输入用户名">
  942. </div>
  943. <div class="form-group">
  944. <label for="regCandidatePassword">密码</label>
  945. <input type="password" id="regCandidatePassword" class="form-control" placeholder="请输入密码">
  946. </div>
  947. <div class="form-group">
  948. <label for="regCandidateConfirm">确认密码</label>
  949. <input type="password" id="regCandidateConfirm" class="form-control" placeholder="请再次输入密码">
  950. </div>
  951. <div class="form-group">
  952. <label for="regCandidateEmail">电子邮箱</label>
  953. <input type="email" id="regCandidateEmail" class="form-control" placeholder="请输入电子邮箱">
  954. </div>
  955. <button class="btn btn-primary btn-block" id="candidateRegisterBtn">注册</button>
  956. <div class="login-links">
  957. <span class="login-link" id="backToLogin">返回登录</span>
  958. </div>
  959. </div>
  960. <!-- 招聘者注册表单 -->
  961. <div class="login-form" id="recruiterRegister">
  962. <div class="form-group">
  963. <label for="regRecruiterUsername">用户名</label>
  964. <input type="text" id="regRecruiterUsername" class="form-control" placeholder="请输入用户名">
  965. </div>
  966. <div class="form-group">
  967. <label for="regRecruiterPassword">密码</label>
  968. <input type="password" id="regRecruiterPassword" class="form-control" placeholder="请输入密码">
  969. </div>
  970. <div class="form-group">
  971. <label for="regRecruiterConfirm">确认密码</label>
  972. <input type="password" id="regRecruiterConfirm" class="form-control" placeholder="请再次输入密码">
  973. </div>
  974. <div class="form-group">
  975. <label for="regRecruiterEmail">电子邮箱</label>
  976. <input type="email" id="regRecruiterEmail" class="form-control" placeholder="请输入电子邮箱">
  977. </div>
  978. <div class="form-group">
  979. <label for="regCompany">公司名称</label>
  980. <input type="text" id="regCompany" class="form-control" placeholder="请输入公司名称">
  981. </div>
  982. <button class="btn btn-primary btn-block" id="recruiterRegisterBtn">注册</button>
  983. <div class="login-links">
  984. <span class="login-link" id="backToLogin2">返回登录</span>
  985. </div>
  986. </div>
  987. </div>
  988. </div>
  989. <!-- 忘记密码页面 -->
  990. <div class="login-container" id="forgotPage" style="display: none;">
  991. <div class="login-box">
  992. <div class="login-logo">
  993. <i class="fas fa-key"></i>
  994. <span>找回密码</span>
  995. </div>
  996. <div class="form-group">
  997. <label for="forgotEmail">电子邮箱</label>
  998. <input type="email" id="forgotEmail" class="form-control" placeholder="请输入注册时使用的电子邮箱">
  999. </div>
  1000. <button class="btn btn-primary btn-block" id="forgotBtn">发送重置链接</button>
  1001. <div class="login-links">
  1002. <span class="login-link" id="backToLogin3">返回登录</span>
  1003. </div>
  1004. </div>
  1005. </div>
  1006. <!-- 主界面 - 应聘者 -->
  1007. <div class="container" id="candidateContainer">
  1008. <!-- 左侧导航 -->
  1009. <div class="sidebar">
  1010. <div class="logo">
  1011. <i class="fas fa-user-tie"></i>
  1012. <span>应聘者中心</span>
  1013. </div>
  1014. <div class="nav-menu">
  1015. <div class="nav-item active" id="navCandidateJobs">
  1016. <i class="fas fa-briefcase"></i>
  1017. <span>工作机会</span>
  1018. </div>
  1019. <div class="nav-item" id="navCandidateResume">
  1020. <i class="fas fa-file-alt"></i>
  1021. <span>简历分析</span>
  1022. </div>
  1023. <div class="nav-item" id="navCandidateInterview">
  1024. <i class="fas fa-video"></i>
  1025. <span>视频面试</span>
  1026. </div>
  1027. <div class="nav-item" id="navCandidateRecords">
  1028. <i class="fas fa-history"></i>
  1029. <span>面试记录</span>
  1030. </div>
  1031. <div class="nav-item" id="navCandidateProfile">
  1032. <i class="fas fa-user"></i>
  1033. <span>个人中心</span>
  1034. </div>
  1035. <div class="nav-item" id="navCandidateSettings">
  1036. <i class="fas fa-cog"></i>
  1037. <span>系统设置</span>
  1038. </div>
  1039. </div>
  1040. </div>
  1041. <!-- 主内容区 -->
  1042. <div class="main-content">
  1043. <!-- 顶部信息栏 -->
  1044. <div class="header">
  1045. <div class="search-bar">
  1046. <input type="text" class="search-input" placeholder="搜索工作职位、公司..." id="candidateSearchInput">
  1047. <button class="search-btn" id="candidateSearchBtn">
  1048. <i class="fas fa-search"></i>
  1049. </button>
  1050. <span class="search-advanced" id="candidateAdvancedSearch">高级筛选</span>
  1051. </div>
  1052. <div class="search-filters" id="candidateSearchFilters">
  1053. <div class="filter-row">
  1054. <div class="filter-group">
  1055. <label for="jobTypeFilter">职位类型</label>
  1056. <select id="jobTypeFilter" class="filter-select">
  1057. <option value="">全部</option>
  1058. <option value="fulltime">全职</option>
  1059. <option value="parttime">兼职</option>
  1060. <option value="intern">实习</option>
  1061. </select>
  1062. </div>
  1063. <div class="filter-group">
  1064. <label for="jobLocationFilter">工作地点</label>
  1065. <select id="jobLocationFilter" class="filter-select">
  1066. <option value="">全部</option>
  1067. <option value="beijing">北京</option>
  1068. <option value="shanghai">上海</option>
  1069. <option value="guangzhou">广州</option>
  1070. <option value="shenzhen">深圳</option>
  1071. </select>
  1072. </div>
  1073. </div>
  1074. <div class="filter-row">
  1075. <div class="filter-group">
  1076. <label for="jobSalaryFilter">薪资范围</label>
  1077. <select id="jobSalaryFilter" class="filter-select">
  1078. <option value="">全部</option>
  1079. <option value="10k">10k以下</option>
  1080. <option value="10-20k">10-20k</option>
  1081. <option value="20-30k">20-30k</option>
  1082. <option value="30k+">30k以上</option>
  1083. </select>
  1084. </div>
  1085. <div class="filter-group">
  1086. <label for="jobExperienceFilter">经验要求</label>
  1087. <select id="jobExperienceFilter" class="filter-select">
  1088. <option value="">全部</option>
  1089. <option value="1">1年以下</option>
  1090. <option value="1-3">1-3年</option>
  1091. <option value="3-5">3-5年</option>
  1092. <option value="5+">5年以上</option>
  1093. </select>
  1094. </div>
  1095. </div>
  1096. <div class="filter-actions">
  1097. <button class="btn" id="resetFilters">重置</button>
  1098. <button class="btn btn-primary" id="applyFilters">应用筛选</button>
  1099. </div>
  1100. </div>
  1101. <div class="user-info">
  1102. <div class="user-dropdown">
  1103. <div class="avatar" id="userAvatar">张</div>
  1104. <div class="dropdown-menu" id="userDropdown">
  1105. <div class="dropdown-item" id="dropdownProfile">
  1106. <i class="fas fa-user"></i> 个人中心
  1107. </div>
  1108. <div class="dropdown-item" id="dropdownSettings">
  1109. <i class="fas fa-cog"></i> 系统设置
  1110. </div>
  1111. <div class="dropdown-divider"></div>
  1112. <div class="dropdown-item" id="dropdownLogout">
  1113. <i class="fas fa-sign-out-alt"></i> 退出登录
  1114. </div>
  1115. </div>
  1116. </div>
  1117. <div>
  1118. <div style="font-weight: 500;">张伟</div>
  1119. <div style="font-size: 12px; color: #64748b;">应聘者</div>
  1120. </div>
  1121. </div>
  1122. </div>
  1123. <!-- 工作机会页面 -->
  1124. <div class="content-area" id="candidateJobsPage">
  1125. <div class="content-title">
  1126. <i class="fas fa-briefcase"></i>
  1127. <span>推荐工作机会</span>
  1128. </div>
  1129. <!-- 搜索历史 -->
  1130. <div class="search-history">
  1131. <div class="history-title">搜索历史</div>
  1132. <div class="history-tags" id="searchHistoryTags">
  1133. <span class="history-tag">前端开发</span>
  1134. <span class="history-tag">北京</span>
  1135. <span class="history-tag">20k以上</span>
  1136. <span class="history-tag">互联网</span>
  1137. </div>
  1138. </div>
  1139. <!-- 热门搜索 -->
  1140. <div class="hot-search">
  1141. <div class="history-title">热门搜索</div>
  1142. <div id="hotSearchList">
  1143. <div class="hot-item">
  1144. <div class="hot-rank">1</div>
  1145. <div class="hot-content">Java开发工程师</div>
  1146. <div class="hot-count">1.2万次</div>
  1147. </div>
  1148. <div class="hot-item">
  1149. <div class="hot-rank">2</div>
  1150. <div class="hot-content">产品经理</div>
  1151. <div class="hot-count">9800次</div>
  1152. </div>
  1153. <div class="hot-item">
  1154. <div class="hot-rank">3</div>
  1155. <div class="hot-content">UI设计师</div>
  1156. <div class="hot-count">8500次</div>
  1157. </div>
  1158. <div class="hot-item">
  1159. <div class="hot-rank">4</div>
  1160. <div class="hot-content">数据分析师</div>
  1161. <div class="hot-count">7200次</div>
  1162. </div>
  1163. </div>
  1164. </div>
  1165. <div class="card-grid" id="jobGrid">
  1166. <!-- 工作卡片将通过JS动态生成 -->
  1167. </div>
  1168. </div>
  1169. <!-- 简历分析页面 -->
  1170. <div class="content-area" id="candidateResumePage" style="display: none;">
  1171. <div class="content-title">
  1172. <i class="fas fa-file-alt"></i>
  1173. <span>我的简历</span>
  1174. </div>
  1175. <div class="resume-form">
  1176. <div class="form-section">
  1177. <div class="form-section-title">
  1178. <i class="fas fa-user"></i>
  1179. <span>基本信息</span>
  1180. </div>
  1181. <div class="form-row">
  1182. <div class="form-col">
  1183. <label for="resumeName">姓名</label>
  1184. <input type="text" id="resumeName" class="form-control" placeholder="请输入您的姓名" value="张伟">
  1185. </div>
  1186. <div class="form-col">
  1187. <label for="resumeGender">性别</label>
  1188. <select id="resumeGender" class="form-control">
  1189. <option value="male" selected>男</option>
  1190. <option value="female">女</option>
  1191. <option value="other">其他</option>
  1192. </select>
  1193. </div>
  1194. </div>
  1195. <div class="form-row">
  1196. <div class="form-col">
  1197. <label for="resumeBirth">出生日期</label>
  1198. <input type="date" id="resumeBirth" class="form-control" value="1990-05-15">
  1199. </div>
  1200. <div class="form-col">
  1201. <label for="resumePhone">联系电话</label>
  1202. <input type="tel" id="resumePhone" class="form-control" placeholder="请输入联系电话" value="13800138000">
  1203. </div>
  1204. </div>
  1205. <div class="form-row">
  1206. <div class="form-col">
  1207. <label for="resumeEmail">电子邮箱</label>
  1208. <input type="email" id="resumeEmail" class="form-control" placeholder="请输入电子邮箱" value="zhangwei@example.com">
  1209. </div>
  1210. <div class="form-col">
  1211. <label for="resumeLocation">居住地</label>
  1212. <input type="text" id="resumeLocation" class="form-control" placeholder="请输入居住城市" value="北京">
  1213. </div>
  1214. </div>
  1215. </div>
  1216. <div class="form-section">
  1217. <div class="form-section-title">
  1218. <i class="fas fa-graduation-cap"></i>
  1219. <span>教育背景</span>
  1220. </div>
  1221. <div class="form-row">
  1222. <div class="form-col">
  1223. <label for="resumeSchool">学校名称</label>
  1224. <input type="text" id="resumeSchool" class="form-control" placeholder="请输入学校名称" value="北京大学">
  1225. </div>
  1226. <div class="form-col">
  1227. <label for="resumeDegree">学历</label>
  1228. <select id="resumeDegree" class="form-control">
  1229. <option value="bachelor" selected>本科</option>
  1230. <option value="master">硕士</option>
  1231. <option value="phd">博士</option>
  1232. <option value="college">大专</option>
  1233. </select>
  1234. </div>
  1235. </div>
  1236. <div class="form-row">
  1237. <div class="form-col">
  1238. <label for="resumeMajor">专业</label>
  1239. <input type="text" id="resumeMajor" class="form-control" placeholder="请输入所学专业" value="计算机科学与技术">
  1240. </div>
  1241. <div class="form-col">
  1242. <label for="resumeGraduation">毕业时间</label>
  1243. <input type="date" id="resumeGraduation" class="form-control" value="2012-06-30">
  1244. </div>
  1245. </div>
  1246. </div>
  1247. <div class="form-section">
  1248. <div class="form-section-title">
  1249. <i class="fas fa-briefcase"></i>
  1250. <span>工作经历</span>
  1251. </div>
  1252. <div id="workExperienceContainer">
  1253. <!-- 工作经历将通过JS动态添加 -->
  1254. </div>
  1255. <button class="btn" id="addWorkExperience" style="margin-top: 10px;">
  1256. <i class="fas fa-plus"></i> 添加工作经历
  1257. </button>
  1258. </div>
  1259. <div class="form-section">
  1260. <div class="form-section-title">
  1261. <i class="fas fa-project-diagram"></i>
  1262. <span>项目经验</span>
  1263. </div>
  1264. <div id="projectExperienceContainer">
  1265. <!-- 项目经验将通过JS动态添加 -->
  1266. </div>
  1267. <button class="btn" id="addProjectExperience" style="margin-top: 10px;">
  1268. <i class="fas fa-plus"></i> 添加项目经验
  1269. </button>
  1270. </div>
  1271. <div class="form-section">
  1272. <div class="form-section-title">
  1273. <i class="fas fa-star"></i>
  1274. <span>技能专长</span>
  1275. </div>
  1276. <div class="form-group">
  1277. <label for="resumeSkills">技能 (用逗号分隔)</label>
  1278. <input type="text" id="resumeSkills" class="form-control" placeholder="例如: JavaScript, Python, 项目管理" value="JavaScript, HTML5, CSS3, Vue.js, React, Node.js, 项目管理">
  1279. </div>
  1280. </div>
  1281. <div class="form-section">
  1282. <div class="form-section-title">
  1283. <i class="fas fa-certificate"></i>
  1284. <span>证书资质</span>
  1285. </div>
  1286. <div id="certificateContainer">
  1287. <!-- 证书将通过JS动态添加 -->
  1288. </div>
  1289. <button class="btn" id="addCertificate" style="margin-top: 10px;">
  1290. <i class="fas fa-plus"></i> 添加证书
  1291. </button>
  1292. </div>
  1293. <div class="form-actions">
  1294. <button class="btn" id="cancelResume">
  1295. 取消
  1296. </button>
  1297. <button class="btn btn-primary" id="saveResume">
  1298. <i class="fas fa-save"></i> 保存简历
  1299. </button>
  1300. <button class="btn btn-primary" id="analyzeResume">
  1301. <i class="fas fa-chart-bar"></i> 分析匹配度
  1302. </button>
  1303. </div>
  1304. </div>
  1305. <!-- 职业匹配结果 -->
  1306. <div class="match-result" id="matchResult" style="display: none;">
  1307. <div class="match-title">
  1308. <i class="fas fa-chart-pie"></i>
  1309. <span>职业匹配分析</span>
  1310. </div>
  1311. <div id="matchList">
  1312. <!-- 匹配结果将通过JS动态生成 -->
  1313. </div>
  1314. <div class="chart-container" id="matchChart"></div>
  1315. </div>
  1316. </div>
  1317. <!-- 视频面试页面 -->
  1318. <div class="content-area" id="candidateInterviewPage" style="display: none;">
  1319. <div class="content-title">
  1320. <i class="fas fa-video"></i>
  1321. <span>视频面试</span>
  1322. </div>
  1323. <div class="calendar-container">
  1324. <div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;">
  1325. <h3>2023年11月</h3>
  1326. <div>
  1327. <button class="btn" id="prevMonth">
  1328. <i class="fas fa-chevron-left"></i>
  1329. </button>
  1330. <button class="btn" id="nextMonth">
  1331. <i class="fas fa-chevron-right"></i>
  1332. </button>
  1333. </div>
  1334. </div>
  1335. <table class="calendar">
  1336. <thead>
  1337. <tr>
  1338. <th>日</th>
  1339. <th>一</th>
  1340. <th>二</th>
  1341. <th>三</th>
  1342. <th>四</th>
  1343. <th>五</th>
  1344. <th>六</th>
  1345. </tr>
  1346. </thead>
  1347. <tbody id="calendarBody">
  1348. <!-- 日历内容将通过JS动态生成 -->
  1349. </tbody>
  1350. </table>
  1351. </div>
  1352. <div style="margin-top: 30px;">
  1353. <h3 style="margin-bottom: 16px;">面试安排</h3>
  1354. <div class="card">
  1355. <div class="card-header">
  1356. <div class="card-avatar">X</div>
  1357. <div>
  1358. <div class="card-title">前端开发工程师面试</div>
  1359. <div class="card-subtitle">XX科技公司 · 2023-11-15 14:00</div>
  1360. </div>
  1361. </div>
  1362. <div class="card-tags">
  1363. <span class="card-tag">视频面试</span>
  1364. <span class="card-tag">技术面试</span>
  1365. </div>
  1366. <div class="card-footer">
  1367. <span>面试官: 李经理</span>
  1368. <button class="card-btn">进入面试</button>
  1369. </div>
  1370. </div>
  1371. </div>
  1372. </div>
  1373. <!-- 面试记录页面 -->
  1374. <div class="content-area" id="candidateRecordsPage" style="display: none;">
  1375. <div class="content-title">
  1376. <i class="fas fa-history"></i>
  1377. <span>面试记录</span>
  1378. </div>
  1379. <div class="card-grid">
  1380. <div class="card">
  1381. <div class="card-header">
  1382. <div class="card-avatar">X</div>
  1383. <div>
  1384. <div class="card-title">前端开发工程师</div>
  1385. <div class="card-subtitle">XX科技公司 · 2023-10-20</div>
  1386. </div>
  1387. </div>
  1388. <div class="card-tags">
  1389. <span class="card-tag">技术面试</span>
  1390. <span class="card-tag">通过</span>
  1391. </div>
  1392. <div class="card-footer">
  1393. <span>面试官: 王总监</span>
  1394. <button class="card-btn">查看反馈</button>
  1395. </div>
  1396. </div>
  1397. <div class="card">
  1398. <div class="card-header">
  1399. <div class="card-avatar">Y</div>
  1400. <div>
  1401. <div class="card-title">高级前端开发</div>
  1402. <div class="card-subtitle">YY互联网公司 · 2023-09-15</div>
  1403. </div>
  1404. </div>
  1405. <div class="card-tags">
  1406. <span class="card-tag">技术面试</span>
  1407. <span class="card-tag">未通过</span>
  1408. </div>
  1409. <div class="card-footer">
  1410. <span>面试官: 张经理</span>
  1411. <button class="card-btn">查看反馈</button>
  1412. </div>
  1413. </div>
  1414. </div>
  1415. </div>
  1416. <!-- 个人中心页面 -->
  1417. <div class="content-area" id="candidateProfilePage" style="display: none;">
  1418. <div class="content-title">
  1419. <i class="fas fa-user"></i>
  1420. <span>个人中心</span>
  1421. </div>
  1422. <div class="profile-container">
  1423. <div class="profile-sidebar">
  1424. <div class="profile-menu">
  1425. <div class="profile-menu-item active" data-section="basicInfo">基本信息</div>
  1426. <div class="profile-menu-item" data-section="education">教育背景</div>
  1427. <div class="profile-menu-item" data-section="experience">工作经历</div>
  1428. <div class="profile-menu-item" data-section="security">账户安全</div>
  1429. </div>
  1430. </div>
  1431. <div class="profile-content">
  1432. <!-- 基本信息 -->
  1433. <div class="profile-section active" id="basicInfoSection">
  1434. <div class="profile-header">
  1435. <div class="profile-avatar">张</div>
  1436. <div class="profile-info">
  1437. <h2>张伟</h2>
  1438. <p>前端开发工程师 | 5年经验</p>
  1439. <button class="btn" style="margin-top: 10px;">
  1440. <i class="fas fa-camera"></i> 更换头像
  1441. </button>
  1442. </div>
  1443. </div>
  1444. <div class="profile-form">
  1445. <div class="form-group">
  1446. <label for="profileName">姓名</label>
  1447. <input type="text" id="profileName" class="form-control" value="张伟">
  1448. </div>
  1449. <div class="form-row">
  1450. <div class="form-col">
  1451. <label for="profileGender">性别</label>
  1452. <select id="profileGender" class="form-control">
  1453. <option value="male" selected>男</option>
  1454. <option value="female">女</option>
  1455. <option value="other">其他</option>
  1456. </select>
  1457. </div>
  1458. <div class="form-col">
  1459. <label for="profileBirth">出生日期</label>
  1460. <input type="date" id="profileBirth" class="form-control" value="1990-05-15">
  1461. </div>
  1462. </div>
  1463. <div class="form-group">
  1464. <label for="profilePhone">联系电话</label>
  1465. <input type="tel" id="profilePhone" class="form-control" value="13800138000">
  1466. </div>
  1467. <div class="form-group">
  1468. <label for="profileEmail">电子邮箱</label>
  1469. <input type="email" id="profileEmail" class="form-control" value="zhangwei@example.com">
  1470. </div>
  1471. <div class="form-group">
  1472. <label for="profileLocation">居住地</label>
  1473. <input type="text" id="profileLocation" class="form-control" value="北京市朝阳区">
  1474. </div>
  1475. <div class="form-group">
  1476. <label for="profileBio">个人简介</label>
  1477. <textarea id="profileBio" class="form-control" rows="4">5年前端开发经验,精通Vue.js和React框架,有丰富的项目管理和团队协作经验。</textarea>
  1478. </div>
  1479. <div class="form-actions">
  1480. <button class="btn">取消</button>
  1481. <button class="btn btn-primary">保存更改</button>
  1482. </div>
  1483. </div>
  1484. </div>
  1485. <!-- 教育背景 -->
  1486. <div class="profile-section" id="educationSection">
  1487. <h2 style="margin-bottom: 20px;">教育背景</h2>
  1488. <div class="form-section">
  1489. <div class="form-row">
  1490. <div class="form-col">
  1491. <label for="eduSchool">学校名称</label>
  1492. <input type="text" id="eduSchool" class="form-control" value="北京大学">
  1493. </div>
  1494. <div class="form-col">
  1495. <label for="eduDegree">学历</label>
  1496. <select id="eduDegree" class="form-control">
  1497. <option value="bachelor" selected>本科</option>
  1498. <option value="master">硕士</option>
  1499. <option value="phd">博士</option>
  1500. </select>
  1501. </div>
  1502. </div>
  1503. <div class="form-row">
  1504. <div class="form-col">
  1505. <label for="eduMajor">专业</label>
  1506. <input type="text" id="eduMajor" class="form-control" value="计算机科学与技术">
  1507. </div>
  1508. <div class="form-col">
  1509. <label for="eduGraduation">毕业时间</label>
  1510. <input type="date" id="eduGraduation" class="form-control" value="2012-06-30">
  1511. </div>
  1512. </div>
  1513. <div class="form-actions">
  1514. <button class="btn">取消</button>
  1515. <button class="btn btn-primary">保存更改</button>
  1516. </div>
  1517. </div>
  1518. </div>
  1519. <!-- 工作经历 -->
  1520. <div class="profile-section" id="experienceSection">
  1521. <h2 style="margin-bottom: 20px;">工作经历</h2>
  1522. <div class="form-section">
  1523. <div class="form-row">
  1524. <div class="form-col">
  1525. <label for="expCompany">公司名称</label>
  1526. <input type="text" id="expCompany" class="form-control" value="AA科技有限公司">
  1527. </div>
  1528. <div class="form-col">
  1529. <label for="expPosition">职位</label>
  1530. <input type="text" id="expPosition" class="form-control" value="高级前端开发工程师">
  1531. </div>
  1532. </div>
  1533. <div class="form-row">
  1534. <div class="form-col">
  1535. <label for="expStart">开始时间</label>
  1536. <input type="date" id="expStart" class="form-control" value="2018-03-01">
  1537. </div>
  1538. <div class="form-col">
  1539. <label for="expEnd">结束时间</label>
  1540. <input type="date" id="expEnd" class="form-control" value="2023-05-31">
  1541. </div>
  1542. </div>
  1543. <div class="form-group">
  1544. <label for="expDescription">工作描述</label>
  1545. <textarea id="expDescription" class="form-control" rows="4">负责公司核心产品的前端架构设计和开发,带领3人前端团队,使用Vue.js和React技术栈。</textarea>
  1546. </div>
  1547. <button class="btn" style="margin-top: 10px;">
  1548. <i class="fas fa-plus"></i> 添加工作经历
  1549. </button>
  1550. <div class="form-actions">
  1551. <button class="btn">取消</button>
  1552. <button class="btn btn-primary">保存更改</button>
  1553. </div>
  1554. </div>
  1555. </div>
  1556. <!-- 账户安全 -->
  1557. <div class="profile-section" id="securitySection">
  1558. <h2 style="margin-bottom: 20px;">账户安全</h2>
  1559. <div class="form-section">
  1560. <div class="form-group">
  1561. <label for="currentPassword">当前密码</label>
  1562. <input type="password" id="currentPassword" class="form-control" placeholder="请输入当前密码">
  1563. </div>
  1564. <div class="form-group">
  1565. <label for="newPassword">新密码</label>
  1566. <input type="password" id="newPassword" class="form-control" placeholder="请输入新密码">
  1567. </div>
  1568. <div class="form-group">
  1569. <label for="confirmPassword">确认新密码</label>
  1570. <input type="password" id="confirmPassword" class="form-control" placeholder="请再次输入新密码">
  1571. </div>
  1572. <div class="form-actions">
  1573. <button class="btn">取消</button>
  1574. <button class="btn btn-primary">更改密码</button>
  1575. </div>
  1576. </div>
  1577. <div class="form-section" style="margin-top: 30px;">
  1578. <div class="form-section-title">
  1579. <i class="fas fa-shield-alt"></i>
  1580. <span>安全设置</span>
  1581. </div>
  1582. <div class="settings-item">
  1583. <div class="settings-item-info">
  1584. <h3>双重验证</h3>
  1585. <p>为您的账户增加额外的安全层</p>
  1586. </div>
  1587. <div class="settings-item-action">
  1588. <label class="switch">
  1589. <input type="checkbox">
  1590. <span class="slider"></span>
  1591. </label>
  1592. </div>
  1593. </div>
  1594. <div class="settings-item">
  1595. <div class="settings-item-info">
  1596. <h3>登录提醒</h3>
  1597. <p>当账户在新设备登录时发送通知</p>
  1598. </div>
  1599. <div class="settings-item-action">
  1600. <label class="switch">
  1601. <input type="checkbox" checked>
  1602. <span class="slider"></span>
  1603. </label>
  1604. </div>
  1605. </div>
  1606. </div>
  1607. </div>
  1608. </div>
  1609. </div>
  1610. </div>
  1611. <!-- 系统设置页面 -->
  1612. <div class="content-area" id="candidateSettingsPage" style="display: none;">
  1613. <div class="content-title">
  1614. <i class="fas fa-cog"></i>
  1615. <span>系统设置</span>
  1616. </div>
  1617. <div class="settings-container">
  1618. <div class="settings-sidebar">
  1619. <div class="settings-menu">
  1620. <div class="settings-menu-item active" data-section="notificationSettings">通知设置</div>
  1621. <div class="settings-menu-item" data-section="privacySettings">隐私设置</div>
  1622. <div class="settings-menu-item" data-section="appearanceSettings">外观设置</div>
  1623. </div>
  1624. </div>
  1625. <div class="settings-content">
  1626. <!-- 通知设置 -->
  1627. <div class="settings-section active" id="notificationSettings">
  1628. <h2 style="margin-bottom: 20px;">通知设置</h2>
  1629. <div class="settings-item">
  1630. <div class="settings-item-info">
  1631. <h3>职位推荐</h3>
  1632. <p>接收系统推荐的匹配职位通知</p>
  1633. </div>
  1634. <div class="settings-item-action">
  1635. <label class="switch">
  1636. <input type="checkbox" checked>
  1637. <span class="slider"></span>
  1638. </label>
  1639. </div>
  1640. </div>
  1641. <div class="settings-item">
  1642. <div class="settings-item-info">
  1643. <h3>面试邀请</h3>
  1644. <p>接收企业发送的面试邀请通知</p>
  1645. </div>
  1646. <div class="settings-item-action">
  1647. <label class="switch">
  1648. <input type="checkbox" checked>
  1649. <span class="slider"></span>
  1650. </label>
  1651. </div>
  1652. </div>
  1653. <div class="settings-item">
  1654. <div class="settings-item-info">
  1655. <h3>系统消息</h3>
  1656. <p>接收系统更新和维护通知</p>
  1657. </div>
  1658. <div class="settings-item-action">
  1659. <label class="switch">
  1660. <input type="checkbox" checked>
  1661. <span class="slider"></span>
  1662. </label>
  1663. </div>
  1664. </div>
  1665. <div class="settings-item">
  1666. <div class="settings-item-info">
  1667. <h3>营销信息</h3>
  1668. <p>接收合作伙伴的优惠和活动信息</p>
  1669. </div>
  1670. <div class="settings-item-action">
  1671. <label class="switch">
  1672. <input type="checkbox">
  1673. <span class="slider"></span>
  1674. </label>
  1675. </div>
  1676. </div>
  1677. <div class="form-group" style="margin-top: 30px;">
  1678. <label for="notificationEmail">通知邮箱</label>
  1679. <input type="email" id="notificationEmail" class="form-control" value="zhangwei@example.com">
  1680. </div>
  1681. <div class="form-actions">
  1682. <button class="btn">取消</button>
  1683. <button class="btn btn-primary">保存设置</button>
  1684. </div>
  1685. </div>
  1686. <!-- 隐私设置 -->
  1687. <div class="settings-section" id="privacySettings">
  1688. <h2 style="margin-bottom: 20px;">隐私设置</h2>
  1689. <div class="settings-item">
  1690. <div class="settings-item-info">
  1691. <h3>公开简历</h3>
  1692. <p>允许企业搜索和查看您的简历</p>
  1693. </div>
  1694. <div class="settings-item-action">
  1695. <label class="switch">
  1696. <input type="checkbox" checked>
  1697. <span class="slider"></span>
  1698. </label>
  1699. </div>
  1700. </div>
  1701. <div class="settings-item">
  1702. <div class="settings-item-info">
  1703. <h3>联系方式可见</h3>
  1704. <p>允许企业查看您的联系方式</p>
  1705. </div>
  1706. <div class="settings-item-action">
  1707. <label class="switch">
  1708. <input type="checkbox">
  1709. <span class="slider"></span>
  1710. </label>
  1711. </div>
  1712. </div>
  1713. <div class="settings-item">
  1714. <div class="settings-item-info">
  1715. <h3>个性化推荐</h3>
  1716. <p>根据您的浏览记录推荐职位</p>
  1717. </div>
  1718. <div class="settings-item-action">
  1719. <label class="switch">
  1720. <input type="checkbox" checked>
  1721. <span class="slider"></span>
  1722. </label>
  1723. </div>
  1724. </div>
  1725. <div class="form-group" style="margin-top: 30px;">
  1726. <label for="privacyLevel">隐私级别</label>
  1727. <select id="privacyLevel" class="form-control">
  1728. <option value="high">高 - 仅对申请的企业可见</option>
  1729. <option value="medium" selected>中 - 对所有认证企业可见</option>
  1730. <option value="low">低 - 对所有用户可见</option>
  1731. </select>
  1732. </div>
  1733. <div class="form-actions">
  1734. <button class="btn">取消</button>
  1735. <button class="btn btn-primary">保存设置</button>
  1736. </div>
  1737. </div>
  1738. <!-- 外观设置 -->
  1739. <div class="settings-section" id="appearanceSettings">
  1740. <h2 style="margin-bottom: 20px;">外观设置</h2>
  1741. <div class="form-group">
  1742. <label for="themeSelect">主题颜色</label>
  1743. <select id="themeSelect" class="form-control">
  1744. <option value="light" selected>浅色主题</option>
  1745. <option value="dark">深色主题</option>
  1746. <option value="system">跟随系统</option>
  1747. </select>
  1748. </div>
  1749. <div class="form-group">
  1750. <label for="fontSize">字体大小</label>
  1751. <select id="fontSize" class="form-control">
  1752. <option value="small">小</option>
  1753. <option value="medium" selected>中</option>
  1754. <option value="large">大</option>
  1755. </select>
  1756. </div>
  1757. <div class="settings-item">
  1758. <div class="settings-item-info">
  1759. <h3>动画效果</h3>
  1760. <p>启用界面过渡动画</p>
  1761. </div>
  1762. <div class="settings-item-action">
  1763. <label class="switch">
  1764. <input type="checkbox" checked>
  1765. <span class="slider"></span>
  1766. </label>
  1767. </div>
  1768. </div>
  1769. <div class="form-actions">
  1770. <button class="btn">取消</button>
  1771. <button class="btn btn-primary">保存设置</button>
  1772. </div>
  1773. </div>
  1774. </div>
  1775. </div>
  1776. </div>
  1777. </div>
  1778. </div>
  1779. <!-- 主界面 - 招聘者 -->
  1780. <div class="container" id="recruiterContainer">
  1781. <!-- 左侧导航 -->
  1782. <div class="sidebar">
  1783. <div class="logo">
  1784. <i class="fas fa-building"></i>
  1785. <span>招聘者中心</span>
  1786. </div>
  1787. <div class="nav-menu">
  1788. <div class="nav-item active" id="navRecruiterCandidates">
  1789. <i class="fas fa-users"></i>
  1790. <span>候选人</span>
  1791. </div>
  1792. <div class="nav-item" id="navRecruiterJobs">
  1793. <i class="fas fa-briefcase"></i>
  1794. <span>职位管理</span>
  1795. </div>
  1796. <div class="nav-item" id="navRecruiterResume">
  1797. <i class="fas fa-file-alt"></i>
  1798. <span>简历分析</span>
  1799. </div>
  1800. <div class="nav-item" id="navRecruiterInterview">
  1801. <i class="fas fa-video"></i>
  1802. <span>视频面试</span>
  1803. </div>
  1804. <div class="nav-item" id="navRecruiterRecords">
  1805. <i class="fas fa-history"></i>
  1806. <span>面试记录</span>
  1807. </div>
  1808. <div class="nav-item" id="navRecruiterAnalysis">
  1809. <i class="fas fa-chart-bar"></i>
  1810. <span>数据分析</span>
  1811. </div>
  1812. <div class="nav-item" id="navRecruiterProfile">
  1813. <i class="fas fa-user"></i>
  1814. <span>个人中心</span>
  1815. </div>
  1816. <div class="nav-item" id="navRecruiterSettings">
  1817. <i class="fas fa-cog"></i>
  1818. <span>系统设置</span>
  1819. </div>
  1820. </div>
  1821. </div>
  1822. <!-- 主内容区 -->
  1823. <div class="main-content">
  1824. <!-- 顶部信息栏 -->
  1825. <div class="header">
  1826. <div class="search-bar">
  1827. <input type="text" class="search-input" placeholder="搜索候选人姓名、技能..." id="recruiterSearchInput">
  1828. <button class="search-btn" id="recruiterSearchBtn">
  1829. <i class="fas fa-search"></i>
  1830. </button>
  1831. <span class="search-advanced" id="recruiterAdvancedSearch">高级筛选</span>
  1832. </div>
  1833. <div class="search-filters" id="recruiterSearchFilters">
  1834. <div class="filter-row">
  1835. <div class="filter-group">
  1836. <label for="candidateLocationFilter">期望地点</label>
  1837. <select id="candidateLocationFilter" class="filter-select">
  1838. <option value="">全部</option>
  1839. <option value="beijing">北京</option>
  1840. <option value="shanghai">上海</option>
  1841. <option value="guangzhou">广州</option>
  1842. <option value="shenzhen">深圳</option>
  1843. <option value="remote">远程</option>
  1844. </select>
  1845. </div>
  1846. <div class="filter-group">
  1847. <label for="candidateExperienceFilter">工作经验</label>
  1848. <select id="candidateExperienceFilter" class="filter-select">
  1849. <option value="">全部</option>
  1850. <option value="1">1年以下</option>
  1851. <option value="1-3">1-3年</option>
  1852. <option value="3-5">3-5年</option>
  1853. <option value="5+">5年以上</option>
  1854. </select>
  1855. </div>
  1856. </div>
  1857. <div class="filter-row">
  1858. <div class="filter-group">
  1859. <label for="candidateEducationFilter">学历要求</label>
  1860. <select id="candidateEducationFilter" class="filter-select">
  1861. <option value="">全部</option>
  1862. <option value="college">大专</option>
  1863. <option value="bachelor">本科</option>
  1864. <option value="master">硕士</option>
  1865. <option value="phd">博士</option>
  1866. </select>
  1867. </div>
  1868. <div class="filter-group">
  1869. <label for="candidateSalaryFilter">期望薪资</label>
  1870. <select id="candidateSalaryFilter" class="filter-select">
  1871. <option value="">全部</option>
  1872. <option value="10k">10k以下</option>
  1873. <option value="10-20k">10-20k</option>
  1874. <option value="20-30k">20-30k</option>
  1875. <option value="30k+">30k以上</option>
  1876. </select>
  1877. </div>
  1878. </div>
  1879. <div class="filter-actions">
  1880. <button class="btn" id="resetRecruiterFilters">重置</button>
  1881. <button class="btn btn-primary" id="applyRecruiterFilters">应用筛选</button>
  1882. </div>
  1883. </div>
  1884. <div class="user-info">
  1885. <div class="user-dropdown">
  1886. <div class="avatar" id="recruiterAvatar">李</div>
  1887. <div class="dropdown-menu" id="recruiterDropdown">
  1888. <div class="dropdown-item" id="dropdownRecruiterProfile">
  1889. <i class="fas fa-user"></i> 个人中心
  1890. </div>
  1891. <div class="dropdown-item" id="dropdownRecruiterSettings">
  1892. <i class="fas fa-cog"></i> 系统设置
  1893. </div>
  1894. <div class="dropdown-divider"></div>
  1895. <div class="dropdown-item" id="dropdownRecruiterLogout">
  1896. <i class="fas fa-sign-out-alt"></i> 退出登录
  1897. </div>
  1898. </div>
  1899. </div>
  1900. <div>
  1901. <div style="font-weight: 500;">李明</div>
  1902. <div style="font-size: 12px; color: #64748b;">XX公司招聘经理</div>
  1903. </div>
  1904. </div>
  1905. </div>
  1906. <!-- 候选人页面 -->
  1907. <div class="content-area" id="recruiterCandidatesPage">
  1908. <div class="content-title">
  1909. <i class="fas fa-users"></i>
  1910. <span>候选人列表</span>
  1911. </div>
  1912. <!-- 搜索历史 -->
  1913. <div class="search-history">
  1914. <div class="history-title">搜索历史</div>
  1915. <div class="history-tags" id="recruiterSearchHistoryTags">
  1916. <span class="history-tag">前端开发</span>
  1917. <span class="history-tag">3-5年经验</span>
  1918. <span class="history-tag">本科</span>
  1919. <span class="history-tag">北京</span>
  1920. </div>
  1921. </div>
  1922. <div class="card-grid" id="candidateGrid">
  1923. <!-- 候选人卡片将通过JS动态生成 -->
  1924. </div>
  1925. </div>
  1926. <!-- 职位管理页面 -->
  1927. <div class="content-area" id="recruiterJobsPage" style="display: none;">
  1928. <div class="content-title">
  1929. <i class="fas fa-briefcase"></i>
  1930. <span>职位管理</span>
  1931. </div>
  1932. <div style="text-align: right; margin-bottom: 20px;">
  1933. <button class="btn btn-primary" id="addJobBtn">
  1934. <i class="fas fa-plus"></i> 发布新职位
  1935. </button>
  1936. </div>
  1937. <div class="card-grid" id="jobManageGrid">
  1938. <!-- 职位管理卡片将通过JS动态生成 -->
  1939. </div>
  1940. </div>
  1941. <!-- 简历分析页面 -->
  1942. <div class="content-area" id="recruiterResumePage" style="display: none;">
  1943. <div class="content-title">
  1944. <i class="fas fa-file-alt"></i>
  1945. <span>简历分析</span>
  1946. </div>
  1947. <div style="display: flex; gap: 20px;">
  1948. <div style="flex: 1;">
  1949. <div class="card">
  1950. <div class="card-header">
  1951. <div class="card-avatar">张</div>
  1952. <div>
  1953. <div class="card-title">张伟</div>
  1954. <div class="card-subtitle">前端开发工程师 · 5年经验</div>
  1955. </div>
  1956. </div>
  1957. <div class="card-tags">
  1958. <span class="card-tag">JavaScript</span>
  1959. <span class="card-tag">Vue.js</span>
  1960. <span class="card-tag">React</span>
  1961. <span class="card-tag">+5</span>
  1962. </div>
  1963. <div class="card-footer">
  1964. <span class="card-match">匹配度: 88%</span>
  1965. <button class="card-btn">邀请面试</button>
  1966. </div>
  1967. </div>
  1968. <div class="form-section" style="margin-top: 20px;">
  1969. <div class="form-section-title">
  1970. <i class="fas fa-star"></i>
  1971. <span>AI分析评价</span>
  1972. </div>
  1973. <div style="padding: 12px; background: #f8fafc; border-radius: 8px;">
  1974. <p>候选人技术栈与职位要求高度匹配,尤其在Vue.js和React方面有丰富经验。具备5年开发经验,主导过多个大型项目,团队协作能力强。教育背景优秀,毕业于北京大学计算机专业。建议重点关注。</p>
  1975. </div>
  1976. </div>
  1977. </div>
  1978. <div style="flex: 2;">
  1979. <div class="form-section">
  1980. <div class="form-section-title">
  1981. <i class="fas fa-user"></i>
  1982. <span>基本信息</span>
  1983. </div>
  1984. <div style="display: flex; gap: 20px; margin-bottom: 16px;">
  1985. <div>
  1986. <div style="font-size: 14px; color: #64748b;">姓名</div>
  1987. <div style="font-weight: 500;">张伟</div>
  1988. </div>
  1989. <div>
  1990. <div style="font-size: 14px; color: #64748b;">性别</div>
  1991. <div style="font-weight: 500;">男</div>
  1992. </div>
  1993. <div>
  1994. <div style="font-size: 14px; color: #64748b;">年龄</div>
  1995. <div style="font-weight: 500;">33</div>
  1996. </div>
  1997. <div>
  1998. <div style="font-size: 14px; color: #64748b;">电话</div>
  1999. <div style="font-weight: 500;">138****8000</div>
  2000. </div>
  2001. <div>
  2002. <div style="font-size: 14px; color: #64748b;">邮箱</div>
  2003. <div style="font-weight: 500;">zhangwei@example.com</div>
  2004. </div>
  2005. </div>
  2006. </div>
  2007. <div class="form-section">
  2008. <div class="form-section-title">
  2009. <i class="fas fa-graduation-cap"></i>
  2010. <span>教育背景</span>
  2011. </div>
  2012. <div style="margin-bottom: 16px;">
  2013. <div style="font-weight: 500; margin-bottom: 4px;">北京大学</div>
  2014. <div style="color: #64748b; margin-bottom: 4px;">计算机科学与技术 · 本科 · 2008-2012</div>
  2015. </div>
  2016. </div>
  2017. <div class="form-section">
  2018. <div class="form-section-title">
  2019. <i class="fas fa-briefcase"></i>
  2020. <span>工作经历</span>
  2021. </div>
  2022. <div style="margin-bottom: 16px;">
  2023. <div style="font-weight: 500; margin-bottom: 4px;">AA科技有限公司 · 高级前端开发工程师</div>
  2024. <div style="color: #64748b; margin-bottom: 4px;">2018-2023 · 5年</div>
  2025. <div style="margin-top: 8px;">
  2026. <p>负责公司核心产品的前端架构设计和开发,带领3人前端团队,使用Vue.js和React技术栈。主导了公司官网重构项目,性能提升40%。</p>
  2027. </div>
  2028. </div>
  2029. <div style="margin-bottom: 16px;">
  2030. <div style="font-weight: 500; margin-bottom: 4px;">BB互联网公司 · 前端开发工程师</div>
  2031. <div style="color: #64748b; margin-bottom: 4px;">2014-2018 · 4年</div>
  2032. <div style="margin-top: 8px;">
  2033. <p>参与公司多个项目的前端开发工作,主要负责移动端H5页面开发,积累了丰富的移动端适配经验。</p>
  2034. </div>
  2035. </div>
  2036. </div>
  2037. <div class="form-section">
  2038. <div class="form-section-title">
  2039. <i class="fas fa-project-diagram"></i>
  2040. <span>项目经验</span>
  2041. </div>
  2042. <div style="margin-bottom: 16px;">
  2043. <div style="font-weight: 500; margin-bottom: 4px;">XX电商平台重构</div>
  2044. <div style="color: #64748b; margin-bottom: 4px;">2021-2022 · 项目负责人</div>
  2045. <div style="margin-top: 8px;">
  2046. <p>主导公司电商平台前端重构,采用Vue3 + TypeScript技术栈,实现组件化开发,页面加载速度提升35%。</p>
  2047. </div>
  2048. </div>
  2049. </div>
  2050. <div class="form-section">
  2051. <div class="form-section-title">
  2052. <i class="fas fa-star"></i>
  2053. <span>技能专长</span>
  2054. </div>
  2055. <div class="card-tags" style="margin-top: 12px;">
  2056. <span class="card-tag">JavaScript</span>
  2057. <span class="card-tag">HTML5</span>
  2058. <span class="card-tag">CSS3</span>
  2059. <span class="card-tag">Vue.js</span>
  2060. <span class="card-tag">React</span>
  2061. <span class="card-tag">Node.js</span>
  2062. <span class="card-tag">Webpack</span>
  2063. <span class="card-tag">Git</span>
  2064. </div>
  2065. </div>
  2066. </div>
  2067. </div>
  2068. </div>
  2069. <!-- 视频面试页面 -->
  2070. <div class="content-area" id="recruiterInterviewPage" style="display: none;">
  2071. <div class="content-title">
  2072. <i class="fas fa-video"></i>
  2073. <span>视频面试</span>
  2074. </div>
  2075. <div style="display: flex; gap: 20px;">
  2076. <div style="flex: 1;">
  2077. <div class="card">
  2078. <div class="card-header">
  2079. <div class="card-avatar">张</div>
  2080. <div>
  2081. <div class="card-title">张伟</div>
  2082. <div class="card-subtitle">前端开发工程师 · 5年经验</div>
  2083. </div>
  2084. </div>
  2085. <div class="card-tags">
  2086. <span class="card-tag">JavaScript</span>
  2087. <span class="card-tag">Vue.js</span>
  2088. <span class="card-tag">React</span>
  2089. </div>
  2090. <div class="card-footer">
  2091. <span>匹配度: 88%</span>
  2092. <button class="card-btn">查看简历</button>
  2093. </div>
  2094. </div>
  2095. <div style="margin-top: 20px;">
  2096. <h3 style="margin-bottom: 16px;">面试信息</h3>
  2097. <div class="form-group">
  2098. <label for="interviewDate">面试日期</label>
  2099. <input type="date" id="interviewDate" class="form-control" value="2023-11-15">
  2100. </div>
  2101. <div class="form-group">
  2102. <label for="interviewTime">面试时间</label>
  2103. <input type="time" id="interviewTime" class="form-control" value="14:00">
  2104. </div>
  2105. <div class="form-group">
  2106. <label for="interviewDuration">持续时间</label>
  2107. <select id="interviewDuration" class="form-control">
  2108. <option value="30">30分钟</option>
  2109. <option value="60" selected>60分钟</option>
  2110. <option value="90">90分钟</option>
  2111. </select>
  2112. </div>
  2113. <div class="form-group">
  2114. <label for="interviewType">面试类型</label>
  2115. <select id="interviewType" class="form-control">
  2116. <option value="technical" selected>技术面试</option>
  2117. <option value="hr">HR面试</option>
  2118. <option value="manager">经理面试</option>
  2119. </select>
  2120. </div>
  2121. <div class="form-group">
  2122. <label for="interviewer">面试官</label>
  2123. <input type="text" id="interviewer" class="form-control" value="李明">
  2124. </div>
  2125. </div>
  2126. </div>
  2127. <div style="flex: 2;">
  2128. <div style="background: #f8fafc; border-radius: 8px; padding: 20px; height: 100%;">
  2129. <div style="text-align: center; margin-bottom: 20px;">
  2130. <h3>视频面试预览</h3>
  2131. <p style="color: #64748b;">面试开始后将显示视频画面</p>
  2132. </div>
  2133. <div style="background: #e2e8f0; height: 300px; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px;">
  2134. <i class="fas fa-video" style="font-size: 60px; color: #94a3b8;"></i>
  2135. </div>
  2136. <div style="display: flex; justify-content: center; gap: 20px;">
  2137. <button class="btn btn-primary" id="startInterviewBtn">
  2138. <i class="fas fa-video"></i> 开始面试
  2139. </button>
  2140. <button class="btn">
  2141. <i class="fas fa-comment"></i> 发送消息
  2142. </button>
  2143. <button class="btn btn-danger">
  2144. <i class="fas fa-phone-slash"></i> 结束面试
  2145. </button>
  2146. </div>
  2147. <div style="margin-top: 30px;">
  2148. <h3 style="margin-bottom: 16px;">面试评价</h3>
  2149. <div class="form-group">
  2150. <label for="interviewScore">综合评分</label>
  2151. <select id="interviewScore" class="form-control">
  2152. <option value="">请选择评分</option>
  2153. <option value="5">5分 - 非常优秀</option>
  2154. <option value="4">4分 - 良好</option>
  2155. <option value="3">3分 - 一般</option>
  2156. <option value="2">2分 - 较差</option>
  2157. <option value="1">1分 - 不符合</option>
  2158. </select>
  2159. </div>
  2160. <div class="form-group">
  2161. <label for="interviewNotes">面试记录</label>
  2162. <textarea id="interviewNotes" class="form-control" rows="5" placeholder="记录面试过程中的关键点和评价"></textarea>
  2163. </div>
  2164. <div class="form-actions">
  2165. <button class="btn">取消</button>
  2166. <button class="btn btn-primary">保存评价</button>
  2167. </div>
  2168. </div>
  2169. </div>
  2170. </div>
  2171. </div>
  2172. </div>
  2173. <!-- 面试记录页面 -->
  2174. <div class="content-area" id="recruiterRecordsPage" style="display: none;">
  2175. <div class="content-title">
  2176. <i class="fas fa-history"></i>
  2177. <span>面试记录</span>
  2178. </div>
  2179. <div style="display: flex; gap: 20px; margin-bottom: 20px;">
  2180. <div style="flex: 1;">
  2181. <div class="form-group">
  2182. <label for="recordCandidate">候选人</label>
  2183. <select id="recordCandidate" class="form-control">
  2184. <option value="">全部候选人</option>
  2185. <option value="1">张伟</option>
  2186. <option value="2">李娜</option>
  2187. <option value="3">王强</option>
  2188. </select>
  2189. </div>
  2190. </div>
  2191. <div style="flex: 1;">
  2192. <div class="form-group">
  2193. <label for="recordJob">职位</label>
  2194. <select id="recordJob" class="form-control">
  2195. <option value="">全部职位</option>
  2196. <option value="1">前端开发工程师</option>
  2197. <option value="2">UI设计师</option>
  2198. <option value="3">产品经理</option>
  2199. </select>
  2200. </div>
  2201. </div>
  2202. <div style="flex: 1;">
  2203. <div class="form-group">
  2204. <label for="recordStatus">状态</label>
  2205. <select id="recordStatus" class="form-control">
  2206. <option value="">全部状态</option>
  2207. <option value="passed">通过</option>
  2208. <option value="failed">未通过</option>
  2209. <option value="pending">待定</option>
  2210. </select>
  2211. </div>
  2212. </div>
  2213. <div style="flex: 1; display: flex; align-items: flex-end;">
  2214. <button class="btn btn-primary" style="width: 100%;">
  2215. <i class="fas fa-filter"></i> 筛选
  2216. </button>
  2217. </div>
  2218. </div>
  2219. <div class="card-grid">
  2220. <div class="card">
  2221. <div class="card-header">
  2222. <div class="card-avatar">张</div>
  2223. <div>
  2224. <div class="card-title">张伟</div>
  2225. <div class="card-subtitle">前端开发工程师 · 技术面试</div>
  2226. </div>
  2227. </div>
  2228. <div class="card-tags">
  2229. <span class="card-tag">2023-10-20</span>
  2230. <span class="card-tag">通过</span>
  2231. </div>
  2232. <div class="card-footer">
  2233. <span>评分: 4.5/5</span>
  2234. <button class="card-btn">查看详情</button>
  2235. </div>
  2236. </div>
  2237. <div class="card">
  2238. <div class="card-header">
  2239. <div class="card-avatar">李</div>
  2240. <div>
  2241. <div class="card-title">李娜</div>
  2242. <div class="card-subtitle">UI设计师 · 技术面试</div>
  2243. </div>
  2244. </div>
  2245. <div class="card-tags">
  2246. <span class="card-tag">2023-10-18</span>
  2247. <span class="card-tag">待定</span>
  2248. </div>
  2249. <div class="card-footer">
  2250. <span>评分: 3.8/5</span>
  2251. <button class="card-btn">查看详情</button>
  2252. </div>
  2253. </div>
  2254. <div class="card">
  2255. <div class="card-header">
  2256. <div class="card-avatar">王</div>
  2257. <div>
  2258. <div class="card-title">王强</div>
  2259. <div class="card-subtitle">前端开发工程师 · 技术面试</div>
  2260. </div>
  2261. </div>
  2262. <div class="card-tags">
  2263. <span class="card-tag">2023-10-15</span>
  2264. <span class="card-tag">未通过</span>
  2265. </div>
  2266. <div class="card-footer">
  2267. <span>评分: 2.5/5</span>
  2268. <button class="card-btn">查看详情</button>
  2269. </div>
  2270. </div>
  2271. </div>
  2272. </div>
  2273. <!-- 数据分析页面 -->
  2274. <div class="content-area" id="recruiterAnalysisPage" style="display: none;">
  2275. <div class="content-title">
  2276. <i class="fas fa-chart-bar"></i>
  2277. <span>数据分析</span>
  2278. </div>
  2279. <div style="display: flex; gap: 20px; margin-bottom: 20px;">
  2280. <div style="flex: 1; background: #f8fafc; border-radius: 8px; padding: 16px;">
  2281. <div style="font-size: 14px; color: #64748b; margin-bottom: 8px;">候选人总数</div>
  2282. <div style="font-size: 24px; font-weight: 600;">128</div>
  2283. <div style="font-size: 14px; color: #10b981; margin-top: 4px;">
  2284. <i class="fas fa-arrow-up"></i> 12% 月增长
  2285. </div>
  2286. </div>
  2287. <div style="flex: 1; background: #f8fafc; border-radius: 8px; padding: 16px;">
  2288. <div style="font-size: 14px; color: #64748b; margin-bottom: 8px;">面试通过率</div>
  2289. <div style="font-size: 24px; font-weight: 600;">38%</div>
  2290. <div style="font-size: 14px; color: #10b981; margin-top: 4px;">
  2291. <i class="fas fa-arrow-up"></i> 5% 月增长
  2292. </div>
  2293. </div>
  2294. <div style="flex: 1; background: #f8fafc; border-radius: 8px; padding: 16px;">
  2295. <div style="font-size: 14px; color: #64748b; margin-bottom: 8px;">平均招聘周期</div>
  2296. <div style="font-size: 24px; font-weight: 600;">23天</div>
  2297. <div style="font-size: 14px; color: #ef4444; margin-top: 4px;">
  2298. <i class="fas fa-arrow-down"></i> 2天 月减少
  2299. </div>
  2300. </div>
  2301. <div style="flex: 1; background: #f8fafc; border-radius: 8px; padding: 16px;">
  2302. <div style="font-size: 14px; color: #64748b; margin-bottom: 8px;">职位空缺</div>
  2303. <div style="font-size: 24px; font-weight: 600;">15</div>
  2304. <div style="font-size: 14px; color: #ef4444; margin-top: 4px;">
  2305. <i class="fas fa-arrow-up"></i> 3个 月增长
  2306. </div>
  2307. </div>
  2308. </div>
  2309. <div style="display: flex; gap: 20px; margin-bottom: 20px;">
  2310. <div style="flex: 1; background: white; border-radius: 8px; padding: 16px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);">
  2311. <div style="font-weight: 500; margin-bottom: 16px;">候选人来源</div>
  2312. <div class="chart-container" id="candidateSourceChart"></div>
  2313. </div>
  2314. <div style="flex: 1; background: white; border-radius: 8px; padding: 16px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);">
  2315. <div style="font-weight: 500; margin-bottom: 16px;">职位申请趋势</div>
  2316. <div class="chart-container" id="applicationTrendChart"></div>
  2317. </div>
  2318. </div>
  2319. <div style="background: white; border-radius: 8px; padding: 16px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);">
  2320. <div style="font-weight: 500; margin-bottom: 16px;">技能分布</div>
  2321. <div class="chart-container" id="skillDistributionChart"></div>
  2322. </div>
  2323. </div>
  2324. <!-- 个人中心页面 -->
  2325. <div class="content-area" id="recruiterProfilePage" style="display: none;">
  2326. <div class="content-title">
  2327. <i class="fas fa-user"></i>
  2328. <span>个人中心</span>
  2329. </div>
  2330. <div class="profile-container">
  2331. <div class="profile-sidebar">
  2332. <div class="profile-menu">
  2333. <div class="profile-menu-item active" data-section="recruiterBasicInfo">基本信息</div>
  2334. <div class="profile-menu-item" data-section="recruiterCompany">公司信息</div>
  2335. <div class="profile-menu-item" data-section="recruiterSecurity">账户安全</div>
  2336. </div>
  2337. </div>
  2338. <div class="profile-content">
  2339. <!-- 基本信息 -->
  2340. <div class="profile-section active" id="recruiterBasicInfoSection">
  2341. <div class="profile-header">
  2342. <div class="profile-avatar">李</div>
  2343. <div class="profile-info">
  2344. <h2>李明</h2>
  2345. <p>招聘经理 | XX科技公司</p>
  2346. <button class="btn" style="margin-top: 10px;">
  2347. <i class="fas fa-camera"></i> 更换头像
  2348. </button>
  2349. </div>
  2350. </div>
  2351. <div class="profile-form">
  2352. <div class="form-group">
  2353. <label for="recruiterName">姓名</label>
  2354. <input type="text" id="recruiterName" class="form-control" value="李明">
  2355. </div>
  2356. <div class="form-row">
  2357. <div class="form-col">
  2358. <label for="recruiterGender">性别</label>
  2359. <select id="recruiterGender" class="form-control">
  2360. <option value="male" selected>男</option>
  2361. <option value="female">女</option>
  2362. <option value="other">其他</option>
  2363. </select>
  2364. </div>
  2365. <div class="form-col">
  2366. <label for="recruiterBirth">出生日期</label>
  2367. <input type="date" id="recruiterBirth" class="form-control" value="1985-08-20">
  2368. </div>
  2369. </div>
  2370. <div class="form-group">
  2371. <label for="recruiterPhone">联系电话</label>
  2372. <input type="tel" id="recruiterPhone" class="form-control" value="13900139000">
  2373. </div>
  2374. <div class="form-group">
  2375. <label for="recruiterEmail">电子邮箱</label>
  2376. <input type="email" id="recruiterEmail" class="form-control" value="liming@xxtech.com">
  2377. </div>
  2378. <div class="form-actions">
  2379. <button class="btn">取消</button>
  2380. <button class="btn btn-primary">保存更改</button>
  2381. </div>
  2382. </div>
  2383. </div>
  2384. <!-- 公司信息 -->
  2385. <div class="profile-section" id="recruiterCompanySection">
  2386. <h2 style="margin-bottom: 20px;">公司信息</h2>
  2387. <div class="form-section">
  2388. <div class="form-group">
  2389. <label for="companyName">公司名称</label>
  2390. <input type="text" id="companyName" class="form-control" value="XX科技有限公司">
  2391. </div>
  2392. <div class="form-group">
  2393. <label for="companyIndustry">所属行业</label>
  2394. <select id="companyIndustry" class="form-control">
  2395. <option value="internet" selected>互联网</option>
  2396. <option value="finance">金融</option>
  2397. <option value="education">教育</option>
  2398. <option value="manufacturing">制造业</option>
  2399. </select>
  2400. </div>
  2401. <div class="form-group">
  2402. <label for="companySize">公司规模</label>
  2403. <select id="companySize" class="form-control">
  2404. <option value="1-50">1-50人</option>
  2405. <option value="50-200">50-200人</option>
  2406. <option value="200-500" selected>200-500人</option>
  2407. <option value="500+">500人以上</option>
  2408. </select>
  2409. </div>
  2410. <div class="form-group">
  2411. <label for="companyLocation">公司地址</label>
  2412. <input type="text" id="companyLocation" class="form-control" value="北京市海淀区中关村软件园">
  2413. </div>
  2414. <div class="form-group">
  2415. <label for="companyWebsite">公司官网</label>
  2416. <input type="url" id="companyWebsite" class="form-control" value="https://www.xxtech.com">
  2417. </div>
  2418. <div class="form-group">
  2419. <label for="companyDescription">公司简介</label>
  2420. <textarea id="companyDescription" class="form-control" rows="4">XX科技有限公司成立于2010年,是一家专注于企业级软件开发的互联网公司,拥有多项自主知识产权和专利技术。</textarea>
  2421. </div>
  2422. <div class="form-actions">
  2423. <button class="btn">取消</button>
  2424. <button class="btn btn-primary">保存更改</button>
  2425. </div>
  2426. </div>
  2427. </div>
  2428. <!-- 账户安全 -->
  2429. <div class="profile-section" id="recruiterSecuritySection">
  2430. <h2 style="margin-bottom: 20px;">账户安全</h2>
  2431. <div class="form-section">
  2432. <div class="form-group">
  2433. <label for="recruiterCurrentPassword">当前密码</label>
  2434. <input type="password" id="recruiterCurrentPassword" class="form-control" placeholder="请输入当前密码">
  2435. </div>
  2436. <div class="form-group">
  2437. <label for="recruiterNewPassword">新密码</label>
  2438. <input type="password" id="recruiterNewPassword" class="form-control" placeholder="请输入新密码">
  2439. </div>
  2440. <div class="form-group">
  2441. <label for="recruiterConfirmPassword">确认新密码</label>
  2442. <input type="password" id="recruiterConfirmPassword" class="form-control" placeholder="请再次输入新密码">
  2443. </div>
  2444. <div class="form-actions">
  2445. <button class="btn">取消</button>
  2446. <button class="btn btn-primary">更改密码</button>
  2447. </div>
  2448. </div>
  2449. </div>
  2450. </div>
  2451. </div>
  2452. </div>
  2453. <!-- 系统设置页面 -->
  2454. <div class="content-area" id="recruiterSettingsPage" style="display: none;">
  2455. <div class="content-title">
  2456. <i class="fas fa-cog"></i>
  2457. <span>系统设置</span>
  2458. </div>
  2459. <div class="settings-container">
  2460. <div class="settings-sidebar">
  2461. <div class="settings-menu">
  2462. <div class="settings-menu-item active" data-section="recruiterNotificationSettings">通知设置</div>
  2463. <div class="settings-menu-item" data-section="recruiterPrivacySettings">隐私设置</div>
  2464. <div class="settings-menu-item" data-section="recruiterAppearanceSettings">外观设置</div>
  2465. </div>
  2466. </div>
  2467. <div class="settings-content">
  2468. <!-- 通知设置 -->
  2469. <div class="settings-section active" id="recruiterNotificationSettings">
  2470. <h2 style="margin-bottom: 20px;">通知设置</h2>
  2471. <div class="settings-item">
  2472. <div class="settings-item-info">
  2473. <h3>新候选人</h3>
  2474. <p>当有新的候选人申请职位时通知</p>
  2475. </div>
  2476. <div class="settings-item-action">
  2477. <label class="switch">
  2478. <input type="checkbox" checked>
  2479. <span class="slider"></span>
  2480. </label>
  2481. </div>
  2482. </div>
  2483. <div class="settings-item">
  2484. <div class="settings-item-info">
  2485. <h3>面试提醒</h3>
  2486. <p>在面试开始前提醒</p>
  2487. </div>
  2488. <div class="settings-item-action">
  2489. <label class="switch">
  2490. <input type="checkbox" checked>
  2491. <span class="slider"></span>
  2492. </label>
  2493. </div>
  2494. </div>
  2495. <div class="settings-item">
  2496. <div class="settings-item-info">
  2497. <h3>系统消息</h3>
  2498. <p>接收系统更新和维护通知</p>
  2499. </div>
  2500. <div class="settings-item-action">
  2501. <label class="switch">
  2502. <input type="checkbox" checked>
  2503. <span class="slider"></span>
  2504. </label>
  2505. </div>
  2506. </div>
  2507. <div class="form-group" style="margin-top: 30px;">
  2508. <label for="recruiterNotificationEmail">通知邮箱</label>
  2509. <input type="email" id="recruiterNotificationEmail" class="form-control" value="liming@xxtech.com">
  2510. </div>
  2511. <div class="form-actions">
  2512. <button class="btn">取消</button>
  2513. <button class="btn btn-primary">保存设置</button>
  2514. </div>
  2515. </div>
  2516. <!-- 隐私设置 -->
  2517. <div class="settings-section" id="recruiterPrivacySettings">
  2518. <h2 style="margin-bottom: 20px;">隐私设置</h2>
  2519. <div class="settings-item">
  2520. <div class="settings-item-info">
  2521. <h3>公开联系方式</h3>
  2522. <p>允许候选人查看您的联系方式</p>
  2523. </div>
  2524. <div class="settings-item-action">
  2525. <label class="switch">
  2526. <input type="checkbox">
  2527. <span class="slider"></span>
  2528. </label>
  2529. </div>
  2530. </div>
  2531. <div class="settings-item">
  2532. <div class="settings-item-info">
  2533. <h3>数据分析共享</h3>
  2534. <p>允许系统使用您的招聘数据进行分析</p>
  2535. </div>
  2536. <div class="settings-item-action">
  2537. <label class="switch">
  2538. <input type="checkbox" checked>
  2539. <span class="slider"></span>
  2540. </label>
  2541. </div>
  2542. </div>
  2543. <div class="form-group" style="margin-top: 30px;">
  2544. <label for="recruiterPrivacyLevel">隐私级别</label>
  2545. <select id="recruiterPrivacyLevel" class="form-control">
  2546. <option value="high">高 - 仅对候选人可见</option>
  2547. <option value="medium" selected>中 - 对所有认证用户可见</option>
  2548. <option value="low">低 - 公开可见</option>
  2549. </select>
  2550. </div>
  2551. <div class="form-actions">
  2552. <button class="btn">取消</button>
  2553. <button class="btn btn-primary">保存设置</button>
  2554. </div>
  2555. </div>
  2556. <!-- 外观设置 -->
  2557. <div class="settings-section" id="recruiterAppearanceSettings">
  2558. <h2 style="margin-bottom: 20px;">外观设置</h2>
  2559. <div class="form-group">
  2560. <label for="recruiterThemeSelect">主题颜色</label>
  2561. <select id="recruiterThemeSelect" class="form-control">
  2562. <option value="light" selected>浅色主题</option>
  2563. <option value="dark">深色主题</option>
  2564. <option value="system">跟随系统</option>
  2565. </select>
  2566. </div>
  2567. <div class="form-group">
  2568. <label for="recruiterFontSize">字体大小</label>
  2569. <select id="recruiterFontSize" class="form-control">
  2570. <option value="small">小</option>
  2571. <option value="medium" selected>中</option>
  2572. <option value="large">大</option>
  2573. </select>
  2574. </div>
  2575. <div class="settings-item">
  2576. <div class="settings-item-info">
  2577. <h3>动画效果</h3>
  2578. <p>启用界面过渡动画</p>
  2579. </div>
  2580. <div class="settings-item-action">
  2581. <label class="switch">
  2582. <input type="checkbox" checked>
  2583. <span class="slider"></span>
  2584. </label>
  2585. </div>
  2586. </div>
  2587. <div class="form-actions">
  2588. <button class="btn">取消</button>
  2589. <button class="btn btn-primary">保存设置</button>
  2590. </div>
  2591. </div>
  2592. </div>
  2593. </div>
  2594. </div>
  2595. </div>
  2596. </div>
  2597. <!-- 发布职位模态框 -->
  2598. <div class="modal-overlay" id="jobModal">
  2599. <div class="modal-content">
  2600. <div class="modal-title">
  2601. <i class="fas fa-briefcase"></i>
  2602. <span>发布新职位</span>
  2603. </div>
  2604. <div class="form-group">
  2605. <label for="jobTitle">职位名称</label>
  2606. <input type="text" id="jobTitle" class="form-control" placeholder="例如: 高级产品经理">
  2607. </div>
  2608. <div class="form-group">
  2609. <label for="jobType">职位类型</label>
  2610. <select id="jobType" class="form-control">
  2611. <option value="fulltime">全职</option>
  2612. <option value="parttime">兼职</option>
  2613. <option value="intern">实习</option>
  2614. </select>
  2615. </div>
  2616. <div class="form-group">
  2617. <label for="jobDepartment">所属部门</label>
  2618. <input type="text" id="jobDepartment" class="form-control" placeholder="例如: 产品部">
  2619. </div>
  2620. <div class="form-group">
  2621. <label for="jobLocation">工作地点</label>
  2622. <input type="text" id="jobLocation" class="form-control" placeholder="例如: 北京">
  2623. </div>
  2624. <div class="form-group">
  2625. <label for="jobSalary">薪资范围</label>
  2626. <input type="text" id="jobSalary" class="form-control" placeholder="例如: 15k-30k">
  2627. </div>
  2628. <div class="form-group">
  2629. <label for="jobDescription">职位描述</label>
  2630. <textarea id="jobDescription" class="form-control" rows="5" placeholder="请输入职位描述和工作内容"></textarea>
  2631. </div>
  2632. <div class="form-group">
  2633. <label for="jobRequirements">任职要求</label>
  2634. <textarea id="jobRequirements" class="form-control" rows="5" placeholder="请输入任职要求和技能要求"></textarea>
  2635. </div>
  2636. <div class="modal-buttons">
  2637. <button class="modal-btn modal-btn-cancel" id="cancelJob">
  2638. 取消
  2639. </button>
  2640. <button class="modal-btn modal-btn-confirm" id="confirmJob">
  2641. 发布职位
  2642. </button>
  2643. </div>
  2644. </div>
  2645. </div>
  2646. <script>
  2647. // 用户类型: candidate(应聘者) 或 recruiter(招聘者)
  2648. let userType = '';
  2649. let currentUser = null;
  2650. // 工作数据
  2651. const jobs = [
  2652. {
  2653. id: 1,
  2654. title: "高级产品经理",
  2655. company: "XX科技公司",
  2656. location: "北京",
  2657. salary: "25k-40k",
  2658. type: "全职",
  2659. experience: "5年以上",
  2660. skills: ["产品规划", "用户增长", "数据分析"],
  2661. description: "负责公司核心产品的规划与设计,主导产品从0到1的开发...",
  2662. posted: "2023-10-10",
  2663. match: 82
  2664. },
  2665. {
  2666. id: 2,
  2667. title: "UI设计师",
  2668. company: "YY设计公司",
  2669. location: "上海",
  2670. salary: "15k-25k",
  2671. type: "全职",
  2672. experience: "3年以上",
  2673. skills: ["界面设计", "用户体验", "Figma"],
  2674. description: "负责公司客户产品的界面设计和用户体验优化...",
  2675. posted: "2023-10-12",
  2676. match: 76
  2677. },
  2678. {
  2679. id: 3,
  2680. title: "前端开发工程师",
  2681. company: "ZZ互联网公司",
  2682. location: "深圳",
  2683. salary: "20k-35k",
  2684. type: "全职",
  2685. experience: "3年以上",
  2686. skills: ["Vue.js", "React", "TypeScript"],
  2687. description: "负责公司核心产品的前端架构设计和开发...",
  2688. posted: "2023-10-15",
  2689. match: 88
  2690. },
  2691. {
  2692. id: 4,
  2693. title: "市场营销经理",
  2694. company: "AA集团",
  2695. location: "广州",
  2696. salary: "18k-30k",
  2697. type: "全职",
  2698. experience: "5年以上",
  2699. skills: ["品牌策划", "数字营销", "市场分析"],
  2700. description: "制定并执行公司年度营销策略,管理营销团队...",
  2701. posted: "2023-10-08",
  2702. match: 79
  2703. }
  2704. ];
  2705. // 候选人数据
  2706. const candidates = [
  2707. {
  2708. id: 1,
  2709. name: "张伟",
  2710. position: "高级产品经理",
  2711. experience: "5年",
  2712. skills: ["产品规划", "用户增长", "数据分析", "Axure", "SQL"],
  2713. location: "北京",
  2714. match: 82,
  2715. resume: "张伟的简历内容..."
  2716. },
  2717. {
  2718. id: 2,
  2719. name: "李娜",
  2720. position: "UI设计师",
  2721. experience: "3年",
  2722. skills: ["界面设计", "用户体验", "交互设计", "Sketch", "Figma"],
  2723. location: "上海",
  2724. match: 76,
  2725. resume: "李娜的简历内容..."
  2726. },
  2727. {
  2728. id: 3,
  2729. name: "王强",
  2730. position: "前端开发工程师",
  2731. experience: "4年",
  2732. skills: ["Vue.js", "React", "TypeScript", "Node.js", "Webpack"],
  2733. location: "深圳",
  2734. match: 88,
  2735. resume: "王强的简历内容..."
  2736. },
  2737. {
  2738. id: 4,
  2739. name: "赵敏",
  2740. position: "市场营销经理",
  2741. experience: "6年",
  2742. skills: ["品牌策划", "数字营销", "市场分析", "SEO", "Google Analytics"],
  2743. location: "广州",
  2744. match: 79,
  2745. resume: "赵敏的简历内容..."
  2746. }
  2747. ];
  2748. // 职位管理数据
  2749. let managedJobs = [
  2750. {
  2751. id: 1,
  2752. title: "高级产品经理",
  2753. department: "产品部",
  2754. type: "全职",
  2755. location: "北京",
  2756. salary: "25k-40k",
  2757. posted: "2023-10-01",
  2758. applicants: 12,
  2759. status: "招聘中"
  2760. },
  2761. {
  2762. id: 2,
  2763. title: "UI设计师",
  2764. department: "设计部",
  2765. type: "全职",
  2766. location: "上海",
  2767. salary: "15k-25k",
  2768. posted: "2023-09-15",
  2769. applicants: 8,
  2770. status: "招聘中"
  2771. }
  2772. ];
  2773. // 初始化页面
  2774. const initPages = () => {
  2775. // 绑定登录/注册切换事件
  2776. document.querySelectorAll('.login-tab').forEach(tab => {
  2777. tab.addEventListener('click', function() {
  2778. const tabId = this.getAttribute('data-tab');
  2779. // 更新标签页状态
  2780. document.querySelectorAll('.login-tab').forEach(t => t.classList.remove('active'));
  2781. this.classList.add('active');
  2782. // 显示对应的表单
  2783. if (tabId.includes('Reg')) {
  2784. // 注册表单
  2785. document.querySelectorAll('.login-form').forEach(form => form.classList.remove('active'));
  2786. document.getElementById(tabId === 'candidateReg' ? 'candidateRegister' : 'recruiterRegister').classList.add('active');
  2787. } else {
  2788. // 登录表单
  2789. document.querySelectorAll('.login-form').forEach(form => form.classList.remove('active'));
  2790. document.getElementById(tabId === 'candidate' ? 'candidateLogin' : 'recruiterLogin').classList.add('active');
  2791. }
  2792. });
  2793. });
  2794. // 绑定显示注册页面事件
  2795. document.getElementById('showRegister').addEventListener('click', showRegisterPage);
  2796. document.getElementById('showRegister2').addEventListener('click', showRegisterPage);
  2797. // 绑定显示忘记密码页面事件
  2798. document.getElementById('showForgot').addEventListener('click', showForgotPage);
  2799. document.getElementById('showForgot2').addEventListener('click', showForgotPage);
  2800. // 绑定返回登录事件
  2801. document.getElementById('backToLogin').addEventListener('click', showLoginPage);
  2802. document.getElementById('backToLogin2').addEventListener('click', showLoginPage);
  2803. document.getElementById('backToLogin3').addEventListener('click', showLoginPage);
  2804. // 绑定登录按钮事件
  2805. document.getElementById('candidateLoginBtn').addEventListener('click', () => login('candidate'));
  2806. document.getElementById('recruiterLoginBtn').addEventListener('click', () => login('recruiter'));
  2807. // 绑定注册按钮事件
  2808. document.getElementById('candidateRegisterBtn').addEventListener('click', () => register('candidate'));
  2809. document.getElementById('recruiterRegisterBtn').addEventListener('click', () => register('recruiter'));
  2810. // 绑定忘记密码按钮事件
  2811. document.getElementById('forgotBtn').addEventListener('click', forgotPassword);
  2812. // 生成工作卡片
  2813. document.getElementById('jobGrid').innerHTML = jobs.map(job => `
  2814. <div class="card" data-id="${job.id}">
  2815. <div class="card-header">
  2816. <div class="card-avatar">${job.company.charAt(0)}</div>
  2817. <div>
  2818. <div class="card-title">${job.title}</div>
  2819. <div class="card-subtitle">${job.company} · ${job.location}</div>
  2820. </div>
  2821. </div>
  2822. <div class="card-tags">
  2823. ${job.skills.slice(0, 3).map(skill => `<span class="card-tag">${skill}</span>`).join('')}
  2824. ${job.skills.length > 3 ? `<span class="card-tag">+${job.skills.length - 3}</span>` : ''}
  2825. </div>
  2826. <div class="card-footer">
  2827. <span class="card-match">匹配度: ${job.match}%</span>
  2828. <button class="card-btn">申请职位</button>
  2829. </div>
  2830. </div>
  2831. `).join('');
  2832. // 生成候选人卡片
  2833. document.getElementById('candidateGrid').innerHTML = candidates.map(candidate => `
  2834. <div class="card" data-id="${candidate.id}">
  2835. <div class="card-header">
  2836. <div class="card-avatar">${candidate.name.charAt(0)}</div>
  2837. <div>
  2838. <div class="card-title">${candidate.name}</div>
  2839. <div class="card-subtitle">${candidate.position} · ${candidate.experience}经验</div>
  2840. </div>
  2841. </div>
  2842. <div class="card-tags">
  2843. ${candidate.skills.slice(0, 3).map(skill => `<span class="card-tag">${skill}</span>`).join('')}
  2844. ${candidate.skills.length > 3 ? `<span class="card-tag">+${candidate.skills.length - 3}</span>` : ''}
  2845. </div>
  2846. <div class="card-footer">
  2847. <span class="card-match">匹配度: ${candidate.match}%</span>
  2848. <button class="card-btn">查看简历</button>
  2849. </div>
  2850. </div>
  2851. `).join('');
  2852. // 生成职位管理卡片
  2853. updateJobManageGrid();
  2854. // 绑定工作卡片点击事件
  2855. document.querySelectorAll('#jobGrid .card').forEach(card => {
  2856. card.addEventListener('click', function() {
  2857. const jobId = parseInt(this.getAttribute('data-id'));
  2858. showJobDetail(jobId);
  2859. });
  2860. });
  2861. // 绑定候选人卡片点击事件
  2862. document.querySelectorAll('#candidateGrid .card').forEach(card => {
  2863. card.addEventListener('click', function() {
  2864. const candidateId = parseInt(this.getAttribute('data-id'));
  2865. showCandidateDetail(candidateId);
  2866. });
  2867. });
  2868. // 绑定职位管理卡片点击事件
  2869. document.querySelectorAll('#jobManageGrid .card').forEach(card => {
  2870. card.addEventListener('click', function() {
  2871. const jobId = parseInt(this.getAttribute('data-id'));
  2872. showJobManageDetail(jobId);
  2873. });
  2874. });
  2875. // 绑定用户头像点击事件
  2876. document.getElementById('userAvatar').addEventListener('click', toggleUserDropdown);
  2877. document.getElementById('recruiterAvatar').addEventListener('click', toggleRecruiterDropdown);
  2878. // 绑定导航菜单点击事件 - 应聘者
  2879. document.getElementById('navCandidateJobs').addEventListener('click', () => switchCandidatePage('jobs'));
  2880. document.getElementById('navCandidateResume').addEventListener('click', () => switchCandidatePage('resume'));
  2881. document.getElementById('navCandidateInterview').addEventListener('click', () => switchCandidatePage('interview'));
  2882. document.getElementById('navCandidateRecords').addEventListener('click', () => switchCandidatePage('records'));
  2883. document.getElementById('navCandidateProfile').addEventListener('click', () => switchCandidatePage('profile'));
  2884. document.getElementById('navCandidateSettings').addEventListener('click', () => switchCandidatePage('settings'));
  2885. // 绑定导航菜单点击事件 - 招聘者
  2886. document.getElementById('navRecruiterCandidates').addEventListener('click', () => switchRecruiterPage('candidates'));
  2887. document.getElementById('navRecruiterJobs').addEventListener('click', () => switchRecruiterPage('jobs'));
  2888. document.getElementById('navRecruiterResume').addEventListener('click', () => switchRecruiterPage('resume'));
  2889. document.getElementById('navRecruiterInterview').addEventListener('click', () => switchRecruiterPage('interview'));
  2890. document.getElementById('navRecruiterRecords').addEventListener('click', () => switchRecruiterPage('records'));
  2891. document.getElementById('navRecruiterAnalysis').addEventListener('click', () => switchRecruiterPage('analysis'));
  2892. document.getElementById('navRecruiterProfile').addEventListener('click', () => switchRecruiterPage('profile'));
  2893. document.getElementById('navRecruiterSettings').addEventListener('click', () => switchRecruiterPage('settings'));
  2894. // 绑定简历表单事件
  2895. document.getElementById('addWorkExperience').addEventListener('click', addWorkExperienceField);
  2896. document.getElementById('addProjectExperience').addEventListener('click', addProjectExperienceField);
  2897. document.getElementById('addCertificate').addEventListener('click', addCertificateField);
  2898. document.getElementById('saveResume').addEventListener('click', saveResume);
  2899. document.getElementById('cancelResume').addEventListener('click', cancelResume);
  2900. document.getElementById('analyzeResume').addEventListener('click', analyzeResume);
  2901. // 绑定职位管理事件
  2902. document.getElementById('addJobBtn').addEventListener('click', showJobModal);
  2903. document.getElementById('cancelJob').addEventListener('click', hideJobModal);
  2904. document.getElementById('confirmJob').addEventListener('click', addNewJob);
  2905. // 绑定个人中心菜单事件
  2906. document.querySelectorAll('.profile-menu-item').forEach(item => {
  2907. item.addEventListener('click', function() {
  2908. const section = this.getAttribute('data-section');
  2909. // 更新菜单状态
  2910. document.querySelectorAll('.profile-menu-item').forEach(i => i.classList.remove('active'));
  2911. this.classList.add('active');
  2912. // 显示对应内容区
  2913. document.querySelectorAll('.profile-section').forEach(s => s.classList.remove('active'));
  2914. document.getElementById(`${section}Section`).classList.add('active');
  2915. });
  2916. });
  2917. // 绑定系统设置菜单事件
  2918. document.querySelectorAll('.settings-menu-item').forEach(item => {
  2919. item.addEventListener('click', function() {
  2920. const section = this.getAttribute('data-section');
  2921. // 更新菜单状态
  2922. document.querySelectorAll('.settings-menu-item').forEach(i => i.classList.remove('active'));
  2923. this.classList.add('active');
  2924. // 显示对应内容区
  2925. document.querySelectorAll('.settings-section').forEach(s => s.classList.remove('active'));
  2926. document.getElementById(`${section}`).classList.add('active');
  2927. });
  2928. });
  2929. // 绑定下拉菜单事件
  2930. document.getElementById('dropdownProfile').addEventListener('click', () => {
  2931. switchCandidatePage('profile');
  2932. toggleUserDropdown();
  2933. });
  2934. document.getElementById('dropdownSettings').addEventListener('click', () => {
  2935. switchCandidatePage('settings');
  2936. toggleUserDropdown();
  2937. });
  2938. document.getElementById('dropdownLogout').addEventListener('click', logout);
  2939. document.getElementById('dropdownRecruiterProfile').addEventListener('click', () => {
  2940. switchRecruiterPage('profile');
  2941. toggleRecruiterDropdown();
  2942. });
  2943. document.getElementById('dropdownRecruiterSettings').addEventListener('click', () => {
  2944. switchRecruiterPage('settings');
  2945. toggleRecruiterDropdown();
  2946. });
  2947. document.getElementById('dropdownRecruiterLogout').addEventListener('click', logout);
  2948. // 绑定搜索事件
  2949. document.getElementById('candidateSearchBtn').addEventListener('click', searchJobs);
  2950. document.getElementById('candidateSearchInput').addEventListener('keypress', (e) => {
  2951. if (e.key === 'Enter') searchJobs();
  2952. });
  2953. document.getElementById('recruiterSearchBtn').addEventListener('click', searchCandidates);
  2954. document.getElementById('recruiterSearchInput').addEventListener('keypress', (e) => {
  2955. if (e.key === 'Enter') searchCandidates();
  2956. });
  2957. // 绑定高级搜索事件
  2958. document.getElementById('candidateAdvancedSearch').addEventListener('click', toggleCandidateFilters);
  2959. document.getElementById('recruiterAdvancedSearch').addEventListener('click', toggleRecruiterFilters);
  2960. document.getElementById('applyFilters').addEventListener('click', applyJobFilters);
  2961. document.getElementById('resetFilters').addEventListener('click', resetJobFilters);
  2962. document.getElementById('applyRecruiterFilters').addEventListener('click', applyCandidateFilters);
  2963. document.getElementById('resetRecruiterFilters').addEventListener('click', resetCandidateFilters);
  2964. // 初始化日历
  2965. generateCalendar();
  2966. document.getElementById('prevMonth').addEventListener('click', prevMonth);
  2967. document.getElementById('nextMonth').addEventListener('click', nextMonth);
  2968. // 初始化图表
  2969. initCharts();
  2970. };
  2971. // 更新职位管理网格
  2972. const updateJobManageGrid = () => {
  2973. document.getElementById('jobManageGrid').innerHTML = managedJobs.map(job => `
  2974. <div class="card" data-id="${job.id}">
  2975. <div class="card-header">
  2976. <div class="card-avatar">${job.title.charAt(0)}</div>
  2977. <div>
  2978. <div class="card-title">${job.title}</div>
  2979. <div class="card-subtitle">${job.department} · ${job.location}</div>
  2980. </div>
  2981. </div>
  2982. <div class="card-tags">
  2983. <span class="card-tag">${job.type}</span>
  2984. <span class="card-tag">${job.salary}</span>
  2985. <span class="card-tag">${job.status}</span>
  2986. </div>
  2987. <div class="card-footer">
  2988. <span>${job.applicants}位申请人</span>
  2989. <span>发布于 ${job.posted}</span>
  2990. </div>
  2991. </div>
  2992. `).join('');
  2993. };
  2994. // 显示工作详情
  2995. const showJobDetail = (jobId) => {
  2996. const job = jobs.find(j => j.id === jobId);
  2997. if (!job) return;
  2998. alert(`职位详情: ${job.title}\n公司: ${job.company}\n地点: ${job.location}\n薪资: ${job.salary}\n描述: ${job.description}`);
  2999. };
  3000. // 显示候选人详情
  3001. const showCandidateDetail = (candidateId) => {
  3002. const candidate = candidates.find(c => c.id === candidateId);
  3003. if (!candidate) return;
  3004. // 如果是招聘者界面,显示简历分析页面
  3005. if (userType === 'recruiter') {
  3006. switchRecruiterPage('resume');
  3007. document.getElementById('startInterviewBtn').style.display = 'inline-block';
  3008. }
  3009. };
  3010. // 显示职位管理详情
  3011. const showJobManageDetail = (jobId) => {
  3012. const job = managedJobs.find(j => j.id === jobId);
  3013. if (!job) return;
  3014. alert(`职位管理: ${job.title}\n部门: ${job.department}\n地点: ${job.location}\n薪资: ${job.salary}\n状态: ${job.status}\n申请人: ${job.applicants}`);
  3015. };
  3016. // 切换应聘者页面
  3017. const switchCandidatePage = (page) => {
  3018. // 隐藏所有页面
  3019. document.getElementById('candidateJobsPage').style.display = 'none';
  3020. document.getElementById('candidateResumePage').style.display = 'none';
  3021. document.getElementById('candidateInterviewPage').style.display = 'none';
  3022. document.getElementById('candidateRecordsPage').style.display = 'none';
  3023. document.getElementById('candidateProfilePage').style.display = 'none';
  3024. document.getElementById('candidateSettingsPage').style.display = 'none';
  3025. // 显示选中的页面
  3026. document.getElementById(`candidate${page.charAt(0).toUpperCase() + page.slice(1)}Page`).style.display = 'block';
  3027. // 更新导航激活状态
  3028. document.querySelectorAll('#candidateContainer .nav-item').forEach(item => {
  3029. item.classList.remove('active');
  3030. });
  3031. document.getElementById(`navCandidate${page.charAt(0).toUpperCase() + page.slice(1)}`).classList.add('active');
  3032. // 如果是简历页面,初始化工作经历
  3033. if (page === 'resume') {
  3034. initResumeFields();
  3035. }
  3036. };
  3037. // 切换招聘者页面
  3038. const switchRecruiterPage = (page) => {
  3039. // 隐藏所有页面
  3040. document.getElementById('recruiterCandidatesPage').style.display = 'none';
  3041. document.getElementById('recruiterJobsPage').style.display = 'none';
  3042. document.getElementById('recruiterResumePage').style.display = 'none';
  3043. document.getElementById('recruiterInterviewPage').style.display = 'none';
  3044. document.getElementById('recruiterRecordsPage').style.display = 'none';
  3045. document.getElementById('recruiterAnalysisPage').style.display = 'none';
  3046. document.getElementById('recruiterProfilePage').style.display = 'none';
  3047. document.getElementById('recruiterSettingsPage').style.display = 'none';
  3048. // 显示选中的页面
  3049. document.getElementById(`recruiter${page.charAt(0).toUpperCase() + page.slice(1)}Page`).style.display = 'block';
  3050. // 更新导航激活状态
  3051. document.querySelectorAll('#recruiterContainer .nav-item').forEach(item => {
  3052. item.classList.remove('active');
  3053. });
  3054. document.getElementById(`navRecruiter${page.charAt(0).toUpperCase() + page.slice(1)}`).classList.add('active');
  3055. };
  3056. // 显示登录页面
  3057. const showLoginPage = () => {
  3058. document.getElementById('loginPage').style.display = 'flex';
  3059. document.getElementById('registerPage').style.display = 'none';
  3060. document.getElementById('forgotPage').style.display = 'none';
  3061. };
  3062. // 显示注册页面
  3063. const showRegisterPage = () => {
  3064. document.getElementById('loginPage').style.display = 'none';
  3065. document.getElementById('registerPage').style.display = 'flex';
  3066. document.getElementById('forgotPage').style.display = 'none';
  3067. };
  3068. // 显示忘记密码页面
  3069. const showForgotPage = () => {
  3070. document.getElementById('loginPage').style.display = 'none';
  3071. document.getElementById('registerPage').style.display = 'none';
  3072. document.getElementById('forgotPage').style.display = 'flex';
  3073. };
  3074. // 切换用户下拉菜单
  3075. const toggleUserDropdown = () => {
  3076. const dropdown = document.getElementById('userDropdown');
  3077. dropdown.style.display = dropdown.style.display === 'block' ? 'none' : 'block';
  3078. };
  3079. const toggleRecruiterDropdown = () => {
  3080. const dropdown = document.getElementById('recruiterDropdown');
  3081. dropdown.style.display = dropdown.style.display === 'block' ? 'none' : 'block';
  3082. };
  3083. // 初始化简历字段
  3084. const initResumeFields = () => {
  3085. // 添加一个默认的工作经历
  3086. if (document.getElementById('workExperienceContainer').children.length === 0) {
  3087. addWorkExperienceField();
  3088. }
  3089. // 添加一个默认的项目经验
  3090. if (document.getElementById('projectExperienceContainer').children.length === 0) {
  3091. addProjectExperienceField();
  3092. }
  3093. // 添加一个默认的证书
  3094. if (document.getElementById('certificateContainer').children.length === 0) {
  3095. addCertificateField();
  3096. }
  3097. };
  3098. // 添加工作经历字段
  3099. const addWorkExperienceField = () => {
  3100. const container = document.getElementById('workExperienceContainer');
  3101. const id = Date.now();
  3102. const html = `
  3103. <div class="form-section" id="work-${id}">
  3104. <div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;">
  3105. <div class="form-section-title">
  3106. <i class="fas fa-briefcase"></i>
  3107. <span>工作经历</span>
  3108. </div>
  3109. <button class="btn" onclick="removeField('work-${id}')">
  3110. <i class="fas fa-trash"></i> 删除
  3111. </button>
  3112. </div>
  3113. <div class="form-row">
  3114. <div class="form-col">
  3115. <label for="workCompany-${id}">公司名称</label>
  3116. <input type="text" id="workCompany-${id}" class="form-control" placeholder="请输入公司名称">
  3117. </div>
  3118. <div class="form-col">
  3119. <label for="workPosition-${id}">职位</label>
  3120. <input type="text" id="workPosition-${id}" class="form-control" placeholder="请输入职位">
  3121. </div>
  3122. </div>
  3123. <div class="form-row">
  3124. <div class="form-col">
  3125. <label for="workStart-${id}">开始时间</label>
  3126. <input type="date" id="workStart-${id}" class="form-control">
  3127. </div>
  3128. <div class="form-col">
  3129. <label for="workEnd-${id}">结束时间</label>
  3130. <input type="date" id="workEnd-${id}" class="form-control">
  3131. </div>
  3132. </div>
  3133. <div class="form-group">
  3134. <label for="workDescription-${id}">工作内容</label>
  3135. <textarea id="workDescription-${id}" class="form-control" rows="3" placeholder="请输入工作内容和职责"></textarea>
  3136. </div>
  3137. </div>
  3138. `;
  3139. container.insertAdjacentHTML('beforeend', html);
  3140. };
  3141. // 添加项目经验字段
  3142. const addProjectExperienceField = () => {
  3143. const container = document.getElementById('projectExperienceContainer');
  3144. const id = Date.now();
  3145. const html = `
  3146. <div class="form-section" id="project-${id}">
  3147. <div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;">
  3148. <div class="form-section-title">
  3149. <i class="fas fa-project-diagram"></i>
  3150. <span>项目经验</span>
  3151. </div>
  3152. <button class="btn" onclick="removeField('project-${id}')">
  3153. <i class="fas fa-trash"></i> 删除
  3154. </button>
  3155. </div>
  3156. <div class="form-row">
  3157. <div class="form-col">
  3158. <label for="projectName-${id}">项目名称</label>
  3159. <input type="text" id="projectName-${id}" class="form-control" placeholder="请输入项目名称">
  3160. </div>
  3161. <div class="form-col">
  3162. <label for="projectRole-${id}">担任角色</label>
  3163. <input type="text" id="projectRole-${id}" class="form-control" placeholder="请输入您在项目中的角色">
  3164. </div>
  3165. </div>
  3166. <div class="form-row">
  3167. <div class="form-col">
  3168. <label for="projectStart-${id}">开始时间</label>
  3169. <input type="date" id="projectStart-${id}" class="form-control">
  3170. </div>
  3171. <div class="form-col">
  3172. <label for="projectEnd-${id}">结束时间</label>
  3173. <input type="date" id="projectEnd-${id}" class="form-control">
  3174. </div>
  3175. </div>
  3176. <div class="form-group">
  3177. <label for="projectDescription-${id}">项目描述</label>
  3178. <textarea id="projectDescription-${id}" class="form-control" rows="3" placeholder="请输入项目描述"></textarea>
  3179. </div>
  3180. <div class="form-group">
  3181. <label for="projectAchievement-${id}">项目成果</label>
  3182. <textarea id="projectAchievement-${id}" class="form-control" rows="3" placeholder="请输入项目成果和收获"></textarea>
  3183. </div>
  3184. </div>
  3185. `;
  3186. container.insertAdjacentHTML('beforeend', html);
  3187. };
  3188. // 添加证书字段
  3189. const addCertificateField = () => {
  3190. const container = document.getElementById('certificateContainer');
  3191. const id = Date.now();
  3192. const html = `
  3193. <div class="form-row" id="certificate-${id}" style="margin-bottom: 16px;">
  3194. <div class="form-col">
  3195. <label for="certificateName-${id}">证书名称</label>
  3196. <input type="text" id="certificateName-${id}" class="form-control" placeholder="请输入证书名称">
  3197. </div>
  3198. <div class="form-col">
  3199. <label for="certificateTime-${id}">获得时间</label>
  3200. <input type="date" id="certificateTime-${id}" class="form-control">
  3201. </div>
  3202. <div class="form-col" style="display: flex; align-items: flex-end;">
  3203. <button class="btn" onclick="removeField('certificate-${id}')" style="height: 42px;">
  3204. <i class="fas fa-trash"></i>
  3205. </button>
  3206. </div>
  3207. </div>
  3208. `;
  3209. container.insertAdjacentHTML('beforeend', html);
  3210. };
  3211. // 删除字段
  3212. const removeField = (id) => {
  3213. document.getElementById(id).remove();
  3214. };
  3215. // 保存简历
  3216. const saveResume = () => {
  3217. alert('简历已保存');
  3218. // 这里可以添加保存简历到服务器的代码
  3219. };
  3220. // 取消编辑简历
  3221. const cancelResume = () => {
  3222. if (confirm('确定要取消编辑吗?所有未保存的更改将丢失。')) {
  3223. // 重置表单
  3224. document.getElementById('resumeForm').reset();
  3225. // 清空动态添加的字段
  3226. document.getElementById('workExperienceContainer').innerHTML = '';
  3227. document.getElementById('projectExperienceContainer').innerHTML = '';
  3228. document.getElementById('certificateContainer').innerHTML = '';
  3229. }
  3230. };
  3231. // 分析简历匹配度
  3232. const analyzeResume = () => {
  3233. // 模拟分析过程
  3234. document.getElementById('matchResult').style.display = 'block';
  3235. // 模拟匹配结果
  3236. const matches = [
  3237. { job: "高级产品经理", score: 85 },
  3238. { job: "产品经理", score: 78 },
  3239. { job: "产品助理", score: 65 },
  3240. { job: "项目经理", score: 72 },
  3241. { job: "用户研究员", score: 60 }
  3242. ];
  3243. document.getElementById('matchList').innerHTML = matches.map(match => `
  3244. <div class="match-item">
  3245. <div class="match-job">${match.job}</div>
  3246. <div class="match-score">${match.score}%</div>
  3247. </div>
  3248. `).join('');
  3249. // 渲染图表
  3250. renderMatchChart(matches);
  3251. // 滚动到结果区域
  3252. document.getElementById('matchResult').scrollIntoView({ behavior: 'smooth' });
  3253. };
  3254. // 渲染匹配度图表
  3255. const renderMatchChart = (matches) => {
  3256. const chartDom = document.getElementById('matchChart');
  3257. const myChart = echarts.init(chartDom);
  3258. const option = {
  3259. tooltip: {
  3260. trigger: 'axis',
  3261. axisPointer: {
  3262. type: 'shadow'
  3263. }
  3264. },
  3265. grid: {
  3266. left: '3%',
  3267. right: '4%',
  3268. bottom: '3%',
  3269. containLabel: true
  3270. },
  3271. xAxis: {
  3272. type: 'value',
  3273. max: 100,
  3274. axisLabel: {
  3275. formatter: '{value}%'
  3276. }
  3277. },
  3278. yAxis: {
  3279. type: 'category',
  3280. data: matches.map(m => m.job).reverse()
  3281. },
  3282. series: [
  3283. {
  3284. name: '匹配度',
  3285. type: 'bar',
  3286. data: matches.map(m => m.score).reverse(),
  3287. itemStyle: {
  3288. color: function(params) {
  3289. const score = matches[matches.length - 1 - params.dataIndex].score;
  3290. if (score >= 80) return '#10b981';
  3291. if (score >= 60) return '#f59e0b';
  3292. return '#ef4444';
  3293. }
  3294. },
  3295. label: {
  3296. show: true,
  3297. position: 'right',
  3298. formatter: '{c}%'
  3299. }
  3300. }
  3301. ]
  3302. };
  3303. myChart.setOption(option);
  3304. // 响应式调整
  3305. window.addEventListener('resize', function() {
  3306. myChart.resize();
  3307. });
  3308. };
  3309. // 显示职位发布模态框
  3310. const showJobModal = () => {
  3311. document.getElementById('jobModal').style.display = 'flex';
  3312. };
  3313. // 隐藏职位发布模态框
  3314. const hideJobModal = () => {
  3315. document.getElementById('jobModal').style.display = 'none';
  3316. };
  3317. // 添加新职位
  3318. const addNewJob = () => {
  3319. const title = document.getElementById('jobTitle').value;
  3320. const type = document.getElementById('jobType').value;
  3321. const department = document.getElementById('jobDepartment').value;
  3322. const location = document.getElementById('jobLocation').value;
  3323. const salary = document.getElementById('jobSalary').value;
  3324. const description = document.getElementById('jobDescription').value;
  3325. const requirements = document.getElementById('jobRequirements').value;
  3326. if (!title || !department || !location || !salary) {
  3327. alert('请填写所有必填字段');
  3328. return;
  3329. }
  3330. const now = new Date();
  3331. const newJob = {
  3332. id: managedJobs.length + 1,
  3333. title: title,
  3334. department: department,
  3335. type: type === 'fulltime' ? '全职' : type === 'parttime' ? '兼职' : '实习',
  3336. location: location,
  3337. salary: salary,
  3338. posted: `${now.getFullYear()}-${(now.getMonth()+1).toString().padStart(2, '0')}-${now.getDate().toString().padStart(2, '0')}`,
  3339. applicants: 0,
  3340. status: "招聘中"
  3341. };
  3342. managedJobs.push(newJob);
  3343. updateJobManageGrid();
  3344. hideJobModal();
  3345. // 重置表单
  3346. document.getElementById('jobTitle').value = '';
  3347. document.getElementById('jobDepartment').value = '';
  3348. document.getElementById('jobLocation').value = '';
  3349. document.getElementById('jobSalary').value = '';
  3350. document.getElementById('jobDescription').value = '';
  3351. document.getElementById('jobRequirements').value = '';
  3352. };
  3353. // 搜索工作
  3354. const searchJobs = () => {
  3355. const keyword = document.getElementById('candidateSearchInput').value.toLowerCase();
  3356. if (!keyword) {
  3357. document.getElementById('jobGrid').innerHTML = jobs.map(job => `
  3358. <div class="card" data-id="${job.id}">
  3359. <div class="card-header">
  3360. <div class="card-avatar">${job.company.charAt(0)}</div>
  3361. <div>
  3362. <div class="card-title">${job.title}</div>
  3363. <div class="card-subtitle">${job.company} · ${job.location}</div>
  3364. </div>
  3365. </div>
  3366. <div class="card-tags">
  3367. ${job.skills.slice(0, 3).map(skill => `<span class="card-tag">${skill}</span>`).join('')}
  3368. ${job.skills.length > 3 ? `<span class="card-tag">+${job.skills.length - 3}</span>` : ''}
  3369. </div>
  3370. <div class="card-footer">
  3371. <span class="card-match">匹配度: ${job.match}%</span>
  3372. <button class="card-btn">申请职位</button>
  3373. </div>
  3374. </div>
  3375. `).join('');
  3376. return;
  3377. }
  3378. const filteredJobs = jobs.filter(job =>
  3379. job.title.toLowerCase().includes(keyword) ||
  3380. job.company.toLowerCase().includes(keyword) ||
  3381. job.skills.some(skill => skill.toLowerCase().includes(keyword))
  3382. );
  3383. document.getElementById('jobGrid').innerHTML = filteredJobs.map(job => `
  3384. <div class="card" data-id="${job.id}">
  3385. <div class="card-header">
  3386. <div class="card-avatar">${job.company.charAt(0)}</div>
  3387. <div>
  3388. <div class="card-title">${job.title}</div>
  3389. <div class="card-subtitle">${job.company} · ${job.location}</div>
  3390. </div>
  3391. </div>
  3392. <div class="card-tags">
  3393. ${job.skills.slice(0, 3).map(skill => `<span class="card-tag">${skill}</span>`).join('')}
  3394. ${job.skills.length > 3 ? `<span class="card-tag">+${job.skills.length - 3}</span>` : ''}
  3395. </div>
  3396. <div class="card-footer">
  3397. <span class="card-match">匹配度: ${job.match}%</span>
  3398. <button class="card-btn">申请职位</button>
  3399. </div>
  3400. </div>
  3401. `).join('');
  3402. // 如果没有结果
  3403. if (filteredJobs.length === 0) {
  3404. document.getElementById('jobGrid').innerHTML = `
  3405. <div style="grid-column: 1 / -1; text-align: center; padding: 40px;">
  3406. <i class="fas fa-search" style="font-size: 60px; color: #e2e8f0; margin-bottom: 20px;"></i>
  3407. <h3 style="margin-bottom: 10px;">没有找到匹配的工作</h3>
  3408. <p style="color: #64748b;">尝试使用不同的关键词或调整筛选条件</p>
  3409. </div>
  3410. `;
  3411. }
  3412. };
  3413. // 搜索候选人
  3414. const searchCandidates = () => {
  3415. const keyword = document.getElementById('recruiterSearchInput').value.toLowerCase();
  3416. if (!keyword) {
  3417. document.getElementById('candidateGrid').innerHTML = candidates.map(candidate => `
  3418. <div class="card" data-id="${candidate.id}">
  3419. <div class="card-header">
  3420. <div class="card-avatar">${candidate.name.charAt(0)}</div>
  3421. <div>
  3422. <div class="card-title">${candidate.name}</div>
  3423. <div class="card-subtitle">${candidate.position} · ${candidate.experience}经验</div>
  3424. </div>
  3425. </div>
  3426. <div class="card-tags">
  3427. ${candidate.skills.slice(0, 3).map(skill => `<span class="card-tag">${skill}</span>`).join('')}
  3428. ${candidate.skills.length > 3 ? `<span class="card-tag">+${candidate.skills.length - 3}</span>` : ''}
  3429. </div>
  3430. <div class="card-footer">
  3431. <span class="card-match">匹配度: ${candidate.match}%</span>
  3432. <button class="card-btn">查看简历</button>
  3433. </div>
  3434. </div>
  3435. `).join('');
  3436. return;
  3437. }
  3438. const filteredCandidates = candidates.filter(candidate =>
  3439. candidate.name.toLowerCase().includes(keyword) ||
  3440. candidate.position.toLowerCase().includes(keyword) ||
  3441. candidate.skills.some(skill => skill.toLowerCase().includes(keyword))
  3442. );
  3443. document.getElementById('candidateGrid').innerHTML = filteredCandidates.map(candidate => `
  3444. <div class="card" data-id="${candidate.id}">
  3445. <div class="card-header">
  3446. <div class="card-avatar">${candidate.name.charAt(0)}</div>
  3447. <div>
  3448. <div class="card-title">${candidate.name}</div>
  3449. <div class="card-subtitle">${candidate.position} · ${candidate.experience}经验</div>
  3450. </div>
  3451. </div>
  3452. <div class="card-tags">
  3453. ${candidate.skills.slice(0, 3).map(skill => `<span class="card-tag">${skill}</span>`).join('')}
  3454. ${candidate.skills.length > 3 ? `<span class="card-tag">+${candidate.skills.length - 3}</span>` : ''}
  3455. </div>
  3456. <div class="card-footer">
  3457. <span class="card-match">匹配度: ${candidate.match}%</span>
  3458. <button class="card-btn">查看简历</button>
  3459. </div>
  3460. </div>
  3461. `).join('');
  3462. // 如果没有结果
  3463. if (filteredCandidates.length === 0) {
  3464. document.getElementById('candidateGrid').innerHTML = `
  3465. <div style="grid-column: 1 / -1; text-align: center; padding: 40px;">
  3466. <i class="fas fa-search" style="font-size: 60px; color: #e2e8f0; margin-bottom: 20px;"></i>
  3467. <h3 style="margin-bottom: 10px;">没有找到匹配的候选人</h3>
  3468. <p style="color: #64748b;">尝试使用不同的关键词或调整筛选条件</p>
  3469. </div>
  3470. `;
  3471. }
  3472. };
  3473. // 切换应聘者高级筛选
  3474. const toggleCandidateFilters = () => {
  3475. const filters = document.getElementById('candidateSearchFilters');
  3476. filters.classList.toggle('active');
  3477. };
  3478. // 切换招聘者高级筛选
  3479. const toggleRecruiterFilters = () => {
  3480. const filters = document.getElementById('recruiterSearchFilters');
  3481. filters.classList.toggle('active');
  3482. };
  3483. // 应用工作筛选
  3484. const applyJobFilters = () => {
  3485. const type = document.getElementById('jobTypeFilter').value;
  3486. const location = document.getElementById('jobLocationFilter').value;
  3487. const salary = document.getElementById('jobSalaryFilter').value;
  3488. const experience = document.getElementById('jobExperienceFilter').value;
  3489. let filteredJobs = [...jobs];
  3490. if (type) {
  3491. filteredJobs = filteredJobs.filter(job => {
  3492. if (type === 'fulltime') return job.type === '全职';
  3493. if (type === 'parttime') return job.type === '兼职';
  3494. if (type === 'intern') return job.type === '实习';
  3495. return true;
  3496. });
  3497. }
  3498. if (location) {
  3499. filteredJobs = filteredJobs.filter(job => {
  3500. if (location === 'beijing') return job.location === '北京';
  3501. if (location === 'shanghai') return job.location === '上海';
  3502. if (location === 'guangzhou') return job.location === '广州';
  3503. if (location === 'shenzhen') return job.location === '深圳';
  3504. return true;
  3505. });
  3506. }
  3507. if (salary) {
  3508. filteredJobs = filteredJobs.filter(job => {
  3509. if (salary === '10k') {
  3510. const min = parseInt(job.salary.split('k')[0]);
  3511. return min < 10;
  3512. }
  3513. if (salary === '10-20k') {
  3514. const min = parseInt(job.salary.split('k')[0]);
  3515. return min >= 10 && min < 20;
  3516. }
  3517. if (salary === '20-30k') {
  3518. const min = parseInt(job.salary.split('k')[0]);
  3519. return min >= 20 && min < 30;
  3520. }
  3521. if (salary === '30k+') {
  3522. const min = parseInt(job.salary.split('k')[0]);
  3523. return min >= 30;
  3524. }
  3525. return true;
  3526. });
  3527. }
  3528. if (experience) {
  3529. filteredJobs = filteredJobs.filter(job => {
  3530. if (experience === '1') return job.experience === '1年以下';
  3531. if (experience === '1-3') return job.experience === '1-3年';
  3532. if (experience === '3-5') return job.experience === '3-5年';
  3533. if (experience === '5+') return job.experience === '5年以上';
  3534. return true;
  3535. });
  3536. }
  3537. document.getElementById('jobGrid').innerHTML = filteredJobs.map(job => `
  3538. <div class="card" data-id="${job.id}">
  3539. <div class="card-header">
  3540. <div class="card-avatar">${job.company.charAt(0)}</div>
  3541. <div>
  3542. <div class="card-title">${job.title}</div>
  3543. <div class="card-subtitle">${job.company} · ${job.location}</div>
  3544. </div>
  3545. </div>
  3546. <div class="card-tags">
  3547. ${job.skills.slice(0, 3).map(skill => `<span class="card-tag">${skill}</span>`).join('')}
  3548. ${job.skills.length > 3 ? `<span class="card-tag">+${job.skills.length - 3}</span>` : ''}
  3549. </div>
  3550. <div class="card-footer">
  3551. <span class="card-match">匹配度: ${job.match}%</span>
  3552. <button class="card-btn">申请职位</button>
  3553. </div>
  3554. </div>
  3555. `).join('');
  3556. // 如果没有结果
  3557. if (filteredJobs.length === 0) {
  3558. document.getElementById('jobGrid').innerHTML = `
  3559. <div style="grid-column: 1 / -1; text-align: center; padding: 40px;">
  3560. <i class="fas fa-search" style="font-size: 60px; color: #e2e8f0; margin-bottom: 20px;"></i>
  3561. <h3 style="margin-bottom: 10px;">没有找到匹配的工作</h3>
  3562. <p style="color: #64748b;">尝试调整筛选条件</p>
  3563. </div>
  3564. `;
  3565. }
  3566. // 隐藏筛选面板
  3567. document.getElementById('candidateSearchFilters').classList.remove('active');
  3568. };
  3569. // 重置工作筛选
  3570. const resetJobFilters = () => {
  3571. document.getElementById('jobTypeFilter').value = '';
  3572. document.getElementById('jobLocationFilter').value = '';
  3573. document.getElementById('jobSalaryFilter').value = '';
  3574. document.getElementById('jobExperienceFilter').value = '';
  3575. // 显示所有工作
  3576. document.getElementById('jobGrid').innerHTML = jobs.map(job => `
  3577. <div class="card" data-id="${job.id}">
  3578. <div class="card-header">
  3579. <div class="card-avatar">${job.company.charAt(0)}</div>
  3580. <div>
  3581. <div class="card-title">${job.title}</div>
  3582. <div class="card-subtitle">${job.company} · ${job.location}</div>
  3583. </div>
  3584. </div>
  3585. <div class="card-tags">
  3586. ${job.skills.slice(0, 3).map(skill => `<span class="card-tag">${skill}</span>`).join('')}
  3587. ${job.skills.length > 3 ? `<span class="card-tag">+${job.skills.length - 3}</span>` : ''}
  3588. </div>
  3589. <div class="card-footer">
  3590. <span class="card-match">匹配度: ${job.match}%</span>
  3591. <button class="card-btn">申请职位</button>
  3592. </div>
  3593. </div>
  3594. `).join('');
  3595. };
  3596. // 应用候选人筛选
  3597. const applyCandidateFilters = () => {
  3598. const location = document.getElementById('candidateLocationFilter').value;
  3599. const experience = document.getElementById('candidateExperienceFilter').value;
  3600. const education = document.getElementById('candidateEducationFilter').value;
  3601. const salary = document.getElementById('candidateSalaryFilter').value;
  3602. let filteredCandidates = [...candidates];
  3603. if (location) {
  3604. filteredCandidates = filteredCandidates.filter(candidate => {
  3605. if (location === 'beijing') return candidate.location === '北京';
  3606. if (location === 'shanghai') return candidate.location === '上海';
  3607. if (location === 'guangzhou') return candidate.location === '广州';
  3608. if (location === 'shenzhen') return candidate.location === '深圳';
  3609. if (location === 'remote') return candidate.location === '远程';
  3610. return true;
  3611. });
  3612. }
  3613. if (experience) {
  3614. filteredCandidates = filteredCandidates.filter(candidate => {
  3615. const exp = parseInt(candidate.experience);
  3616. if (experience === '1') return exp < 1;
  3617. if (experience === '1-3') return exp >= 1 && exp < 3;
  3618. if (experience === '3-5') return exp >= 3 && exp < 5;
  3619. if (experience === '5+') return exp >= 5;
  3620. return true;
  3621. });
  3622. }
  3623. if (education) {
  3624. // 这里简化处理,实际应用中应该从候选人数据中获取教育背景
  3625. filteredCandidates = filteredCandidates.filter(candidate => {
  3626. if (education === 'college') return true; // 假设所有候选人都符合
  3627. if (education === 'bachelor') return true;
  3628. if (education === 'master') return candidate.name === '张伟'; // 示例
  3629. if (education === 'phd') return false; // 示例
  3630. return true;
  3631. });
  3632. }
  3633. if (salary) {
  3634. // 这里简化处理,实际应用中应该从候选人数据中获取期望薪资
  3635. filteredCandidates = filteredCandidates.filter(candidate => {
  3636. if (salary === '10k') return candidate.match < 70;
  3637. if (salary === '10-20k') return candidate.match >= 70 && candidate.match < 80;
  3638. if (salary === '20-30k') return candidate.match >= 80 && candidate.match < 90;
  3639. if (salary === '30k+') return candidate.match >= 90;
  3640. return true;
  3641. });
  3642. }
  3643. document.getElementById('candidateGrid').innerHTML = filteredCandidates.map(candidate => `
  3644. <div class="card" data-id="${candidate.id}">
  3645. <div class="card-header">
  3646. <div class="card-avatar">${candidate.name.charAt(0)}</div>
  3647. <div>
  3648. <div class="card-title">${candidate.name}</div>
  3649. <div class="card-subtitle">${candidate.position} · ${candidate.experience}经验</div>
  3650. </div>
  3651. </div>
  3652. <div class="card-tags">
  3653. ${candidate.skills.slice(0, 3).map(skill => `<span class="card-tag">${skill}</span>`).join('')}
  3654. ${candidate.skills.length > 3 ? `<span class="card-tag">+${candidate.skills.length - 3}</span>` : ''}
  3655. </div>
  3656. <div class="card-footer">
  3657. <span class="card-match">匹配度: ${candidate.match}%</span>
  3658. <button class="card-btn">查看简历</button>
  3659. </div>
  3660. </div>
  3661. `).join('');
  3662. // 如果没有结果
  3663. if (filteredCandidates.length === 0) {
  3664. document.getElementById('candidateGrid').innerHTML = `
  3665. <div style="grid-column: 1 / -1; text-align: center; padding: 40px;">
  3666. <i class="fas fa-search" style="font-size: 60px; color: #e2e8f0; margin-bottom: 20px;"></i>
  3667. <h3 style="margin-bottom: 10px;">没有找到匹配的候选人</h3>
  3668. <p style="color: #64748b;">尝试调整筛选条件</p>
  3669. </div>
  3670. `;
  3671. }
  3672. // 隐藏筛选面板
  3673. document.getElementById('recruiterSearchFilters').classList.remove('active');
  3674. };
  3675. // 重置候选人筛选
  3676. const resetCandidateFilters = () => {
  3677. document.getElementById('candidateLocationFilter').value = '';
  3678. document.getElementById('candidateExperienceFilter').value = '';
  3679. document.getElementById('candidateEducationFilter').value = '';
  3680. document.getElementById('candidateSalaryFilter').value = '';
  3681. // 显示所有候选人
  3682. document.getElementById('candidateGrid').innerHTML = candidates.map(candidate => `
  3683. <div class="card" data-id="${candidate.id}">
  3684. <div class="card-header">
  3685. <div class="card-avatar">${candidate.name.charAt(0)}</div>
  3686. <div>
  3687. <div class="card-title">${candidate.name}</div>
  3688. <div class="card-subtitle">${candidate.position} · ${candidate.experience}经验</div>
  3689. </div>
  3690. </div>
  3691. <div class="card-tags">
  3692. ${candidate.skills.slice(0, 3).map(skill => `<span class="card-tag">${skill}</span>`).join('')}
  3693. ${candidate.skills.length > 3 ? `<span class="card-tag">+${candidate.skills.length - 3}</span>` : ''}
  3694. </div>
  3695. <div class="card-footer">
  3696. <span class="card-match">匹配度: ${candidate.match}%</span>
  3697. <button class="card-btn">查看简历</button>
  3698. </div>
  3699. </div>
  3700. `).join('');
  3701. };
  3702. // 生成日历
  3703. const generateCalendar = () => {
  3704. const calendarBody = document.getElementById('calendarBody');
  3705. calendarBody.innerHTML = '';
  3706. const now = new Date();
  3707. const year = now.getFullYear();
  3708. const month = now.getMonth();
  3709. // 获取当月第一天是星期几
  3710. const firstDay = new Date(year, month, 1).getDay();
  3711. // 获取当月天数
  3712. const daysInMonth = new Date(year, month + 1, 0).getDate();
  3713. let date = 1;
  3714. for (let i = 0; i < 6; i++) {
  3715. // 创建表格行
  3716. const row = document.createElement('tr');
  3717. // 创建单元格
  3718. for (let j = 0; j < 7; j++) {
  3719. const cell = document.createElement('td');
  3720. if (i === 0 && j < firstDay) {
  3721. // 上个月的日期
  3722. cell.innerHTML = '';
  3723. } else if (date > daysInMonth) {
  3724. // 下个月的日期
  3725. cell.innerHTML = '';
  3726. } else {
  3727. // 当月的日期
  3728. cell.innerHTML = `
  3729. <div class="calendar-day">${date}</div>
  3730. ${date === 15 ? '<div class="calendar-event">面试: XX公司</div>' : ''}
  3731. `;
  3732. date++;
  3733. }
  3734. row.appendChild(cell);
  3735. }
  3736. calendarBody.appendChild(row);
  3737. // 如果已经显示完所有日期,退出循环
  3738. if (date > daysInMonth) break;
  3739. }
  3740. };
  3741. // 上个月
  3742. const prevMonth = () => {
  3743. alert('切换到上个月');
  3744. // 实际应用中应该更新日历显示
  3745. };
  3746. // 下个月
  3747. const nextMonth = () => {
  3748. alert('切换到下个月');
  3749. // 实际应用中应该更新日历显示
  3750. };
  3751. // 初始化图表
  3752. const initCharts = () => {
  3753. // 候选人来源图表
  3754. const sourceChart = echarts.init(document.getElementById('candidateSourceChart'));
  3755. sourceChart.setOption({
  3756. tooltip: {
  3757. trigger: 'item',
  3758. formatter: '{a} <br/>{b}: {c} ({d}%)'
  3759. },
  3760. legend: {
  3761. orient: 'vertical',
  3762. right: 10,
  3763. top: 'center',
  3764. data: ['官网申请', '招聘网站', '内部推荐', '校园招聘', '其他']
  3765. },
  3766. series: [
  3767. {
  3768. name: '候选人来源',
  3769. type: 'pie',
  3770. radius: ['50%', '70%'],
  3771. avoidLabelOverlap: false,
  3772. itemStyle: {
  3773. borderRadius: 10,
  3774. borderColor: '#fff',
  3775. borderWidth: 2
  3776. },
  3777. label: {
  3778. show: false,
  3779. position: 'center'
  3780. },
  3781. emphasis: {
  3782. label: {
  3783. show: true,
  3784. fontSize: '18',
  3785. fontWeight: 'bold'
  3786. }
  3787. },
  3788. labelLine: {
  3789. show: false
  3790. },
  3791. data: [
  3792. { value: 35, name: '官网申请' },
  3793. { value: 30, name: '招聘网站' },
  3794. { value: 20, name: '内部推荐' },
  3795. { value: 10, name: '校园招聘' },
  3796. { value: 5, name: '其他' }
  3797. ]
  3798. }
  3799. ]
  3800. });
  3801. // 职位申请趋势图表
  3802. const trendChart = echarts.init(document.getElementById('applicationTrendChart'));
  3803. trendChart.setOption({
  3804. tooltip: {
  3805. trigger: 'axis',
  3806. axisPointer: {
  3807. type: 'shadow'
  3808. }
  3809. },
  3810. grid: {
  3811. left: '3%',
  3812. right: '4%',
  3813. bottom: '3%',
  3814. containLabel: true
  3815. },
  3816. xAxis: {
  3817. type: 'category',
  3818. data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月'],
  3819. axisTick: {
  3820. alignWithLabel: true
  3821. }
  3822. },
  3823. yAxis: {
  3824. type: 'value'
  3825. },
  3826. series: [
  3827. {
  3828. name: '申请人数',
  3829. type: 'bar',
  3830. barWidth: '60%',
  3831. data: [12, 19, 15, 27, 34, 42, 39, 51, 45, 38],
  3832. itemStyle: {
  3833. color: '#2563eb'
  3834. }
  3835. }
  3836. ]
  3837. });
  3838. // 技能分布图表
  3839. const skillChart = echarts.init(document.getElementById('skillDistributionChart'));
  3840. skillChart.setOption({
  3841. tooltip: {
  3842. trigger: 'axis',
  3843. axisPointer: {
  3844. type: 'shadow'
  3845. }
  3846. },
  3847. grid: {
  3848. left: '3%',
  3849. right: '4%',
  3850. bottom: '3%',
  3851. containLabel: true
  3852. },
  3853. xAxis: {
  3854. type: 'value'
  3855. },
  3856. yAxis: {
  3857. type: 'category',
  3858. data: ['JavaScript', 'HTML/CSS', 'Python', 'Java', 'SQL', 'React', 'Vue.js', 'Node.js']
  3859. },
  3860. series: [
  3861. {
  3862. name: '技能分布',
  3863. type: 'bar',
  3864. data: [78, 65, 45, 38, 32, 28, 25, 20],
  3865. itemStyle: {
  3866. color: function(params) {
  3867. const colorList = ['#2563eb', '#1d4ed8', '#1e40af', '#1e3a8a'];
  3868. return colorList[params.dataIndex % colorList.length];
  3869. }
  3870. }
  3871. }
  3872. ]
  3873. });
  3874. // 响应式调整
  3875. window.addEventListener('resize', function() {
  3876. sourceChart.resize();
  3877. trendChart.resize();
  3878. skillChart.resize();
  3879. });
  3880. };
  3881. // 登录功能
  3882. const login = (type) => {
  3883. const usernameField = type === 'candidate' ? 'candidateUsername' : 'recruiterUsername';
  3884. const passwordField = type === 'candidate' ? 'candidatePassword' : 'recruiterPassword';
  3885. const username = document.getElementById(usernameField).value;
  3886. const password = document.getElementById(passwordField).value;
  3887. if (!username || !password) {
  3888. alert('请输入用户名和密码');
  3889. return;
  3890. }
  3891. // 模拟登录成功
  3892. userType = type;
  3893. currentUser = {
  3894. username: username,
  3895. type: type,
  3896. name: type === 'candidate' ? '张伟' : '李明',
  3897. company: type === 'recruiter' ? 'XX科技公司' : null
  3898. };
  3899. // 显示主界面
  3900. document.getElementById('loginPage').style.display = 'none';
  3901. if (type === 'candidate') {
  3902. document.getElementById('candidateContainer').style.display = 'flex';
  3903. switchCandidatePage('jobs');
  3904. } else {
  3905. document.getElementById('recruiterContainer').style.display = 'flex';
  3906. switchRecruiterPage('candidates');
  3907. }
  3908. };
  3909. // 注册功能
  3910. const register = (type) => {
  3911. const usernameField = type === 'candidate' ? 'regCandidateUsername' : 'regRecruiterUsername';
  3912. const passwordField = type === 'candidate' ? 'regCandidatePassword' : 'regRecruiterPassword';
  3913. const confirmField = type === 'candidate' ? 'regCandidateConfirm' : 'regRecruiterConfirm';
  3914. const emailField = type === 'candidate' ? 'regCandidateEmail' : 'regRecruiterEmail';
  3915. const username = document.getElementById(usernameField).value;
  3916. const password = document.getElementById(passwordField).value;
  3917. const confirm = document.getElementById(confirmField).value;
  3918. const email = document.getElementById(emailField).value;
  3919. const company = type === 'recruiter' ? document.getElementById('regCompany').value : null;
  3920. if (!username || !password || !confirm || !email) {
  3921. alert('请填写所有必填字段');
  3922. return;
  3923. }
  3924. if (password !== confirm) {
  3925. alert('两次输入的密码不一致');
  3926. return;
  3927. }
  3928. if (type === 'recruiter' && !company) {
  3929. alert('请填写公司名称');
  3930. return;
  3931. }
  3932. // 模拟注册成功
  3933. alert('注册成功!请登录');
  3934. showLoginPage();
  3935. };
  3936. // 忘记密码功能
  3937. const forgotPassword = () => {
  3938. const email = document.getElementById('forgotEmail').value;
  3939. if (!email) {
  3940. alert('请输入电子邮箱');
  3941. return;
  3942. }
  3943. // 模拟发送重置链接
  3944. alert(`重置链接已发送至 ${email},请查收邮件并按照指示操作`);
  3945. showLoginPage();
  3946. };
  3947. // 退出登录
  3948. const logout = () => {
  3949. userType = '';
  3950. currentUser = null;
  3951. // 隐藏所有主界面
  3952. document.getElementById('candidateContainer').style.display = 'none';
  3953. document.getElementById('recruiterContainer').style.display = 'none';
  3954. // 显示登录页面
  3955. showLoginPage();
  3956. };
  3957. // 初始化页面
  3958. initPages();
  3959. </script>
  3960. </body>
  3961. </html>