2 lines
10 KiB
JavaScript
2 lines
10 KiB
JavaScript
import{t as o,v as i,x as t,y as n,L as _,B as h,H as a,X as K,C as H,D as V,G as P,r as v,S as X,Y,o as j,_ as W,T as Z,V as $,u as ee,z as w,A as S,O as b,P as te,J as Ae}from"./entry.6f6364f6.js";import{q as se,E as x,y as oe,j as ie,H as ne,T as ae,M as ce,o as le}from"./cross-icon.b74ea123.js";import{_ as re,a as me}from"./top-head.6bf7954b.js";import{_ as D,u as de}from"./_plugin-vue_export-helper.ab0d2579.js";const ue=""+new URL("time-icon.fef65a83.svg",import.meta.url).href,ge=""+new URL("time-white-icon.805d0e12.svg",import.meta.url).href,fe=""+new URL("eye-icon.efcf8c6f.svg",import.meta.url).href,ve=""+new URL("like-no.23054eaf.svg",import.meta.url).href,he="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAQKADAAQAAAABAAAAQAAAAABGUUKwAAAD30lEQVR4AeVa7XXaMBSVDANkBDxB6QRxJmg6QVmANp2gZAOaDBCYoGwQugGZAGUD+F9Q7zPIxxAZy7ZkG0vn5Ejoy/fe954+7HDWgrRbf/8FGPeMySFyIRmf9MOneR3QeB0PufQMkJ+AOAlwlvgqYMEdD6ebswarPwOrs5WaTP7QD5PDPdu/6tvs1bZAAHaTTUcODx6S3aNqS6MhINcP0Z7tcq0csF6IUBBVyerGt8EDdLhO6iASFkg3qVEBEOORGS3+zaxf8V6NCmAOVw4RLhfWCvOZzns2KoBkMjoHdOH38EJb6abGBCCLYgW+NUW+Y7uBad8i/RoTACCjIkA544Mi/U37NiYALDoyBemyXyMCwP0HcP8vLomZzt2IANj+JqYAXferXQCyPi4/zvb1ooLVLgBi/6UoSOqPLVOUGZc3plYBYP17xH6UB0rX3mM9oauvWlebAOT6ONOXsv6R5KYqWd342gQ4un7p4yxugysdgap1/aoTmIzfrcdk+cikb0aft4z6ytXOPeDfejwCSvqrkLgT6xMgpwIQeSx6VeJeiSZUwXbuTACL5GGlYGmbuJoPBrKfbJIndL3w2QlOmtu6B9gmLxn7S0BdpRNl5Xp8a/ogHj5/AIa9/gZ7/RpzlN7uNM+fwUozTX3pqjT2WAA6oR0PKQWA81UvfPqcRnGc50+6rqVlgTfNX+lsEQA0PkDsCHQB8kQrfk8XUUkl3PKGqtzynE6lr+A+CHBCm7QcrCt4CNf9JEAMGMe9KyQNzvuJdoGCrt8gXOuPlpwEeLc+79VMiC/Q2GfF1eC1DlTiE7zHCVvhCosgF75qgHPAkjzASwEQ+vFJ1tsQgOcvyfOxCLp520qTtznhir0ifIGrt61tJn/EtqTcyxCg+McCuFECCCr4lFT8E+cASgifyMekWbBQnH0MgS2MHi+ABzEOUnh0H+CJ9RMBfLoPYPv7KICKBw/yLTgu0zzjNcCf+wBfqO1PiaAWQaEqupyfuz9xVQJ0mbfiRqv/SfwnAvhxH+AzpUQ6jz3Ah/sA3H+aJq7KvoTAW9aJVwkglCJdzHHO0VqfuMYCZKnTETG2/fB5lsVFeUBWewfqeab1iVxagE7eB7D4zS5ZMRGgm/cBPs8L70SASypda1vW1pfmkwjQtfvA8bXXKk1WV04EQKPQdbjWOhzuHkywJwJ06zjMHxH7udYngRIBoNgSv+m+fOWJz/GvOxNTEokAtFoibozcJjX5JlWGmoePDem6GstkvJ8gPyryzEQAGkQnJnwxvaMFJGeS+GHnbobfC8b475yxNpvfD1j5I3AP8P+E06KT/wdPOffX7me6UQAAAABJRU5ErkJggg==",_e=""+new URL("comment-icon.f7b16ad3.svg",import.meta.url).href;const u=e=>(H("data-v-7a203ec0"),e=e(),V(),e),ye=["href"],we=["src"],ke={class:"content flexflex"},pe={class:"name"},Ee={class:"list flexflex"},Be={key:0,class:"item flexacenter"},Qe=u(()=>t("div",{class:"item-name"},"专业",-1)),xe={class:"item-value ellipsis"},Ce={key:1,class:"item flexacenter"},Le=u(()=>t("div",{class:"item-name"},"项目",-1)),Ie={class:"item-value ellipsis"},Re={key:2,class:"item flexacenter"},Te=u(()=>t("div",{class:"item-name"},"时间",-1)),Ge={class:"item-value ellipsis"},Pe={class:"text-box"},Se={class:"text"},be={class:"time flexacenter"},He=u(()=>t("img",{class:"time-icon time-black-icon",src:ue},null,-1)),Ve=u(()=>t("img",{class:"time-icon time-white-icon",src:ge},null,-1)),De={class:"data-list flexacenter"},Ue={class:"data-item flexacenter"},qe=u(()=>t("img",{class:"data-item-icon",src:fe},null,-1)),ze={key:0,class:"data-item-icon",src:ve},Oe={key:1,class:"data-item-icon",src:he},Ne={class:"data-item flexacenter"},Fe=u(()=>t("img",{class:"data-item-icon",src:_e},null,-1)),Je={__name:"Item",props:{item:Object},emits:["childEvent"],setup(e,{emit:L}){const I=L,k=(l,c,d)=>{if(d==1){x.error("不可取消点赞");return}I("handleLike",c)},p=l=>l.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");return(l,c)=>(o(),i("a",{class:"box flexflex",target:"_blank",href:`./details/${e.item.uniqid}`},[t("img",{class:"img",src:e.item.schoolimage},null,8,we),t("div",ke,[t("div",pe,n(e.item.school),1),t("div",Ee,[e.item.profession?(o(),i("div",Be,[Qe,t("div",xe,n(e.item.profession),1)])):_("",!0),e.item.project?(o(),i("div",Ce,[Le,t("div",Ie,n(e.item.project),1)])):_("",!0),e.item.interviewtime?(o(),i("div",Re,[Te,t("div",Ge,n(e.item.interviewtime),1)])):_("",!0)]),t("div",Pe,[t("div",Se,n(e.item.message),1),t("div",be,[He,Ve,h(" "+n(("handleDate"in l?l.handleDate:a(se))(e.item.releasetime))+"发布 ",1)])]),t("div",De,[t("div",Ue,[qe,h(" "+n(p(e.item.views||0)),1)]),t("div",{class:"data-item flexacenter",onClick:c[0]||(c[0]=K(d=>k(e.item.uniqid,e.item.token,e.item.islike),["prevent"]))},[e.item.islike==0?(o(),i("img",ze)):(o(),i("img",Oe)),h(" "+n(e.item.likenum||0),1)]),t("div",Ne,[Fe,h(" "+n(e.item.commentnum||0),1)])])])],8,ye))}},Me=D(Je,[["__scopeId","data-v-7a203ec0"]]),Ke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAED0lEQVRYCe2Wu09UQRTGdwlYWWMAIzEhWhCJhRgVAbHzAWil1sT/gKcKLAqG159AYimVgIFSeVOglSYmRhPFEEiIlTQ2sP6+y5zr3OUuLFDqJLPnzHce883MmdmbSPzrLXmQDRgaGjqNfyO9Op1OFyFPuvjVZDK5Dja3tbU10dHR8d3h+4qcCDDxdZL3ku3yvhlxgMwS4nFLS8vMfv57Eujr6zuRn5//goQ3vESf0Sch9BW55vBifMrA6pFnPN9Jxk0Q2fCwiJqVwODg4Hk8J+inXMQYyVIk+xDJkDFgtyogkgK+60wrxDVki4sloMkJmifRcZJsoN/LZTvdhIEYGBioI26UQSF9E/1qHIldBLTtBQUFywRp5Z/y8vJuNjc3r6AfuA0PD5dub29PEVhOX4HERUhEjiMvM6vOHEyTbxxlcuUVcXLcUi56KTs6ItxvEQKqdlgGBYfz/cOu3J9AOcj5wGH1HG+tb48QYNI+Zxxra2ub9h2lc64XSFCVidtYNvnY2CTb/hZ9XGPIPDdcMiTgHplLAnFKSfqN86wEV20s4Nvp26Q7bEE+cSTAu+XHIq+oNqSrhQQw3NmBEl/iqpViOoY9KFp8n7LaLuefkC7MjZPo8o00l1NviEjoNQ1aSACGVx322smIaG1tXSSw1QN7WHU3q20D6zGcPF3t7e1LNvYl8boRatU7IroDwbtOgi9mzJTUxZBPAj2Ff7/5aXJW+szGMTLITVyJ2cIdAChy4JoZ42QmCfPJYfIEV3Ld+RdbnE8gLZCz3vU4mbMn/TiD4zCzBdLLHcwl0A+ylYfsItFuoDP3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vEq+R/mIH/I8shVgDgIeMXmFHgpYw+aVPU0OK6SF26FChBj0rgmyMVwRzJu6XYB4j9bmntI208FOLXGwT3wFSyB++Cgn2wVVhA9Ar4DtS1jOKmE+zWE4AT4pjLPjFfpn/WLdcwGYmXkEx38E6EGef9E6IG8PyL0Qb79IjRAvr0iNEi+fSIMgHx7RBggefdFsEDeXREskndPBDKSe/sfSWYl2/f4F0tiZkv8iXuFznCfHUig6u2tJD0P9oI5GRjaLnyvDf6sa3i3zWRRm7w8FrBfmQARMTuBuyL0Sr6qAHGcmyL0Q76OAE6K0C/5ugI4JUIT5HsRwAkRmiLfqwBDFQHy+4DpayzcaZPP+T2ScLeGv/RTwLDvbvZ/m65m7siXrQe6zVXZziS3zOuk3lLysijRPQsQ719HhKkyooVXY5odjmpsqknet53jDcwn1dH0mDU+M+ckmK0w97GymCoCrJRM8hH/BRvkkzxiEeTb4zeJrct2qYs9NVcR4FEaXezIkT9NQvNF12AtrLnACheBqRJMuVdLkHN2DEynZ/q/jlyMjBc83Qrs09c1QJ2T+eSaoLttnsG+RY1Xx8a3w0kwE22ifwWcBxuB/NDgDkeh7PQgLN+Yaw7L/rw1NxplXnmlXbkxp/zy4yqQ1/pr4AmYYp7cD6KwDb+JAMDUKh2UpphUuQY0tZaT8wQBnDwsFpMKFWBRbCeXChXg5GGxmFSoAItiO7lUqAAnD4vFpEIFWBQ7WepL0tFsF+s+CWrmqGUaRgXcNWRo8hl2a5GL5+B14IHmefgFtsI/OgZNzeqzd0IGorLuZXAJyN/yHoOblP8ftqEFBYICQQFrCvwFEG2wKFYx49sAAAAASUVORK5CYII=";const C=e=>(H("data-v-e519568e"),e=e(),V(),e),Ye={key:0,class:"search-result flexacenter"},je=C(()=>t("img",{class:"keyword-icon",src:Ke},null,-1)),We=C(()=>t("div",{class:"halving-line"},null,-1)),Ze={class:"total"},$e={key:0,class:"empty-box flexcenter"},et={key:1,class:"in-end"},tt=C(()=>t("img",{src:Xe,style:{width:"24px",height:"24px"}},null,-1)),At=[tt],st={__name:"index",async setup(e){let L,I,k=P("isNeedLogin");const p=P("goLogin");de({script:[{src:"https://app.gter.net/bottom?tpl=header&menukey=mj"},{src:"https://app.gter.net/bottom?tpl=footer",body:!0}]});const l=v(null);let c=null;const d=X();let g=v("");g.value=d.query.keyword,Y(()=>{g.value!=d.query.keyword&&(m.value=[],r.value=1,g.value=d.query.keyword,B(d.query.keyword))}),j(async()=>{let s=await W(()=>import("./masonry.f0eeb6db.js").then(A=>A.m),["./masonry.f0eeb6db.js","./cross-icon.b74ea123.js","./entry.6f6364f6.js","./entry.8609db93.css","./_plugin-vue_export-helper.ab0d2579.js","./cross-icon.a9c3a5f3.css"],import.meta.url);c=new s.default(l.value,{itemSelector:".box",gutter:22.5}),window.addEventListener("scroll",R),B()});const R=()=>{const s=document.documentElement.scrollTop||document.body.scrollTop;s>200?Q.value=!0:Q.value=!1;const A=document.documentElement.scrollHeight,f=document.documentElement.clientHeight;s+f>=A-40&&B()};let r=v(1),T=v(0),m=v([]),E=!1;const B=()=>{r.value==0||E||(E=!0,oe({page:r.value,keyword:g.value}).then(s=>{if(s.code!=200){r.value=0,x({message:s.message,type:"error"});return}let A=s.data;m.value=m.value.concat(A.data||[]),A.count>m.value.length?r.value++:r.value=0,T.value=A.count,Z(()=>{c&&(c.reloadItems(),c.layout())})}).finally(()=>E=!1))},U=s=>{if(k.value){p();return}le({token:s}).then(A=>{if(A.code!=200)return;let f=A.data;m.value.forEach(y=>{y.token==s&&(y.islike=f.status,y.likenum=f.count)}),x.success(A.message)})};$(()=>{window.removeEventListener("scroll",R)}),ee();const q=()=>ie("/index.html",!1);try{}catch{}let Q=v(!1);const z=()=>{window.scrollTo({top:0,behavior:"smooth"})};return(s,A)=>{const f=ae,y=ce,O=ne,N=re,F=me,J=Me;return o(),i(b,null,[w(O,null,{default:S(()=>[w(f,null,{default:S(()=>[h("寄托天下 - 面经分享")]),_:1}),w(y,{name:"keyword",content:"留学资讯,留学交流论坛,留学面经,面试经验,寄托天下"})]),_:1}),w(N),a(g)?(o(),i("div",Ye,[t("div",{class:"keyword flexacenter",onClick:q},[h(n(a(g))+" ",1),je]),We,t("div",Ze,"共 "+n(a(T))+" 条搜索数据",1)])):_("",!0),t("div",{class:"content",ref_key:"gridContainer",ref:l},[a(m).length==0&&a(r)==0?(o(),i("div",$e,[w(F,{hint:"没有找到相关结果,请更换搜索关键词"})])):(o(!0),i(b,{key:1},te(a(m),(G,M)=>(o(),Ae(J,{key:M,item:G,onHandleLike:U},null,8,["item"]))),128))],512),a(r)==0&&a(m).length>0?(o(),i("div",et,"- 到底了 -")):_("",!0),a(Q)?(o(),i("div",{key:2,class:"right-returnTop",onClick:A[0]||(A[0]=G=>z())},At)):_("",!0)],64)}}},lt=D(st,[["__scopeId","data-v-e519568e"]]);export{lt as default};
|