PC-mj/.output/public/_nuxt/index.8589f239.js
2024-08-13 17:50:53 +08:00

2 lines
8.7 KiB
JavaScript

import{t as n,v as a,x as e,y as i,L as g,B as f,H as c,X as j,C as H,D as F,G as S,r as v,S as M,Y as J,o as O,_ as W,T as Z,V as $,u as ee,z as w,A as D,N as V,O as te,J as se}from"./entry.c81f2114.js";import{s as oe,E as L,A as ie,j as ne,H as ce,T as ae,M as le,B as Ae}from"./cross-icon.fef17e08.js";import{_ as re,a as de}from"./top-head.140949c1.js";import{_ as G}from"./_plugin-vue_export-helper.c27b6911.js";import{u as me}from"./vue.f36acd1f.f6a499b0.js";const ue=""+new URL("time-icon.fef65a83.svg",import.meta.url).href,he=""+new URL("time-white-icon.805d0e12.svg",import.meta.url).href,_e=""+new URL("eye-icon.efcf8c6f.svg",import.meta.url).href,ve=""+new URL("expression-icon.a3be8be6.svg",import.meta.url).href,fe=""+new URL("comment-icon.f7b16ad3.svg",import.meta.url).href;const m=t=>(H("data-v-fca24522"),t=t(),F(),t),ge=["href"],pe=["src"],we={class:"content flexflex"},ye={class:"name"},ke={class:"list flexflex"},Ee={key:0,class:"item flexacenter"},xe=m(()=>e("div",{class:"item-name"},"专业",-1)),Ie={class:"item-value ellipsis"},Le={key:1,class:"item flexacenter"},Be=m(()=>e("div",{class:"item-name"},"项目",-1)),Re={class:"item-value ellipsis"},Qe={key:2,class:"item flexacenter"},Te=m(()=>e("div",{class:"item-name"},"时间",-1)),Ce={class:"item-value ellipsis"},be={class:"text-box"},Se={class:"text"},De={class:"time flexacenter"},Ve=m(()=>e("img",{class:"time-icon time-black-icon",src:ue},null,-1)),He=m(()=>e("img",{class:"time-icon time-white-icon",src:he},null,-1)),Fe={class:"data-list flexacenter"},Ge={class:"data-item flexacenter"},Ue=m(()=>e("img",{class:"data-item-icon",src:_e},null,-1)),qe=m(()=>e("img",{class:"data-item-icon",src:ve},null,-1)),Ye={class:"data-item flexacenter"},Ne=m(()=>e("img",{class:"data-item-icon",src:fe},null,-1)),Pe={__name:"Item",props:{item:Object},emits:["childEvent"],setup(t,{emit:R}){const Q=R,y=(A,l,u)=>{if(u==1){L.error("不可取消点赞");return}Q("handleLike",l)},k=A=>A.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");return(A,l)=>(n(),a("a",{class:"box flexflex",target:"_blank",href:`./details/${t.item.uniqid}`},[e("img",{class:"img",src:t.item.schoolimage},null,8,pe),e("div",we,[e("div",ye,i(t.item.school),1),e("div",ke,[t.item.profession?(n(),a("div",Ee,[xe,e("div",Ie,i(t.item.profession),1)])):g("",!0),t.item.project?(n(),a("div",Le,[Be,e("div",Re,i(t.item.project),1)])):g("",!0),t.item.interviewtime?(n(),a("div",Qe,[Te,e("div",Ce,i(t.item.interviewtime),1)])):g("",!0)]),e("div",be,[e("div",Se,i(t.item.message),1),e("div",De,[Ve,He,f(" "+i(("handleDate"in A?A.handleDate:c(oe))(t.item.releasetime))+"发布 ",1)])]),e("div",Fe,[e("div",Ge,[Ue,f(" "+i(k(t.item.views||0)),1)]),e("div",{class:"data-item flexacenter",onClick:l[0]||(l[0]=j(u=>y(t.item.uniqid,t.item.token,t.item.islike),["prevent"]))},[qe,f(" "+i(t.item.ripostes||0),1)]),e("div",Ye,[Ne,f(" "+i(t.item.commentnum||0),1)])])])],8,ge))}},Ke=G(Pe,[["__scopeId","data-v-fca24522"]]),Xe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAED0lEQVRYCe2Wu09UQRTGdwlYWWMAIzEhWhCJhRgVAbHzAWil1sT/gKcKLAqG159AYimVgIFSeVOglSYmRhPFEEiIlTQ2sP6+y5zr3OUuLFDqJLPnzHce883MmdmbSPzrLXmQDRgaGjqNfyO9Op1OFyFPuvjVZDK5Dja3tbU10dH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sqknet53jDcwn1dH0mDU+M+ckmK0w97GymCoCrJRM8hH/BRvkkzxiEeTb4zeJrct2qYs9NVcR4FEaXezIkT9NQvNF12AtrLnACheBqRJMuVdLkHN2DEynZ/q/jlyMjBc83Qrs09c1QJ2T+eSaoLttnsG+RY1Xx8a3w0kwE22ifwWcBxuB/NDgDkeh7PQgLN+Yaw7L/rw1NxplXnmlXbkxp/zy4yqQ1/pr4AmYYp7cD6KwDb+JAMDUKh2UpphUuQY0tZaT8wQBnDwsFpMKFWBRbCeXChXg5GGxmFSoAItiO7lUqAAnD4vFpEIFWBQ7WepL0tFsF+s+CWrmqGUaRgXcNWRo8hl2a5GL5+B14IHmefgFtsI/OgZNzeqzd0IGorLuZXAJyN/yHoOblP8ftqEFBYICQQFrCvwFEG2wKFYx49sAAAAASUVORK5CYII=";const B=t=>(H("data-v-3292866c"),t=t(),F(),t),je={key:0,class:"search-result flexacenter"},Me=B(()=>e("img",{class:"keyword-icon",src:Xe},null,-1)),Je=B(()=>e("div",{class:"halving-line"},null,-1)),Oe={class:"total"},We={key:0,class:"empty-box flexcenter"},Ze={key:1,class:"in-end"},$e=B(()=>e("img",{src:ze,style:{width:"24px",height:"24px"}},null,-1)),et=[$e],tt={__name:"index",async setup(t){let R,Q,y=S("isNeedLogin");const k=S("goLogin");me({script:[{src:"https://app.gter.net/bottom?tpl=header&menukey=mj"},{src:"https://app.gter.net/bottom?tpl=footer,popupnotification",body:!0}]});const A=v(null);let l=null;const u=M();let h=v("");h.value=u.query.keyword,J(()=>{h.value!=u.query.keyword&&(d.value=[],r.value=1,h.value=u.query.keyword,x(u.query.keyword))}),O(async()=>{let o=await W(()=>import("./masonry.8af6fb00.js").then(s=>s.m),["./masonry.8af6fb00.js","./cross-icon.fef17e08.js","./entry.c81f2114.js","./entry.8609db93.css","./vue.f36acd1f.f6a499b0.js","./cross-icon.a9c3a5f3.css"],import.meta.url);l=new o.default(A.value,{itemSelector:".box",gutter:22.5}),window.addEventListener("scroll",T),x()});const T=()=>{const o=document.documentElement.scrollTop||document.body.scrollTop;o>200?I.value=!0:I.value=!1;const s=document.documentElement.scrollHeight,_=document.documentElement.clientHeight;o+_>=s-40&&x()};let r=v(1),C=v(0),d=v([]),E=!1;const x=()=>{r.value==0||E||(E=!0,ie({page:r.value,keyword:h.value}).then(o=>{if(o.code!=200){r.value=0,L({message:o.message,type:"error"});return}let s=o.data;d.value=d.value.concat(s.data||[]),s.count>d.value.length?r.value++:r.value=0,C.value=s.count,Z(()=>{l&&(l.reloadItems(),l.layout())})}).finally(()=>E=!1))},U=o=>{if(y.value){k();return}Ae({token:o}).then(s=>{if(s.code!=200)return;let _=s.data;d.value.forEach(p=>{p.token==o&&(p.islike=_.status,p.likenum=_.count)}),L.success(s.message)})};$(()=>{window.removeEventListener("scroll",T)}),ee();const q=()=>ne("/index.html",!1);try{}catch{}let I=v(!1);const Y=()=>{window.scrollTo({top:0,behavior:"smooth"})};return(o,s)=>{const _=ae,p=le,N=ce,P=re,K=de,X=Ke;return n(),a(V,null,[w(N,null,{default:D(()=>[w(_,null,{default:D(()=>[f("寄托天下 - 面经分享")]),_:1}),w(p,{name:"keyword",content:"留学资讯,留学交流论坛,留学面经,面试经验,寄托天下"})]),_:1}),w(P),c(h)?(n(),a("div",je,[e("div",{class:"keyword flexacenter",onClick:q},[f(i(c(h))+" ",1),Me]),Je,e("div",Oe,"共 "+i(c(C))+" 条搜索数据",1)])):g("",!0),e("div",{class:"content",ref_key:"gridContainer",ref:A},[c(d).length==0&&c(r)==0?(n(),a("div",We,[w(K,{hint:"没有找到相关结果,请更换搜索关键词"})])):(n(!0),a(V,{key:1},te(c(d),(b,z)=>(n(),se(X,{key:z,item:b,onHandleLike:U},null,8,["item"]))),128))],512),c(r)==0&&c(d).length>0?(n(),a("div",Ze,"- 到底了 -")):g("",!0),c(I)?(n(),a("div",{key:2,class:"right-returnTop",onClick:s[0]||(s[0]=b=>Y())},et)):g("",!0)],64)}}},lt=G(tt,[["__scopeId","data-v-3292866c"]]);export{lt as default};