2 lines
8.6 KiB
JavaScript
2 lines
8.6 KiB
JavaScript
import{t as i,v as a,x as t,y as n,L as k,B as v,H as A,X as M,C as I,D as S,G as b,r as h,S as Y,Y as K,o as j,_ as F,T as W,V as X,u as Z,z as y,A as T,O as H,P as $,J as ee}from"./entry.5ab5c7d0.js";import{q as te,E as B,x as se,y as oe,H as ie,T as ne,M as ae,o as ce}from"./cross-icon.9cff948f.js";import{_ as Ae,a as le}from"./top-head.bacd8da4.js";import{_ as R,u as de}from"./_plugin-vue_export-helper.7a0757ba.js";const re=""+new URL("time-icon.fef65a83.svg",import.meta.url).href,me=""+new URL("time-white-icon.805d0e12.svg",import.meta.url).href,ue=""+new URL("eye-icon.efcf8c6f.svg",import.meta.url).href,fe=""+new URL("like-no.23054eaf.svg",import.meta.url).href,ge="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==",ve=""+new URL("comment-icon.f7b16ad3.svg",import.meta.url).href;const u=e=>(I("data-v-7a203ec0"),e=e(),S(),e),_e=["href"],he=["src"],ye={class:"content flexflex"},ke={class:"name"},pe={class:"list flexflex"},xe={key:0,class:"item flexacenter"},we=u(()=>t("div",{class:"item-name"},"专业",-1)),Ee={class:"item-value ellipsis"},Be={key:1,class:"item flexacenter"},Ce=u(()=>t("div",{class:"item-name"},"项目",-1)),Qe={class:"item-value ellipsis"},Le={key:2,class:"item flexacenter"},Pe=u(()=>t("div",{class:"item-name"},"时间",-1)),be={class:"item-value ellipsis"},Te={class:"text-box"},He={class:"text"},Ie={class:"time flexacenter"},Se=u(()=>t("img",{class:"time-icon time-black-icon",src:re},null,-1)),Re=u(()=>t("img",{class:"time-icon time-white-icon",src:me},null,-1)),Ve={class:"data-list flexacenter"},qe={class:"data-item flexacenter"},Ge=u(()=>t("img",{class:"data-item-icon",src:ue},null,-1)),Ue={key:0,class:"data-item-icon",src:fe},Je={key:1,class:"data-item-icon",src:ge},Ne={class:"data-item flexacenter"},Oe=u(()=>t("img",{class:"data-item-icon",src:ve},null,-1)),ze={__name:"Item",props:{item:Object},emits:["childEvent"],setup(e,{emit:C}){const Q=C,p=(l,c,m)=>{if(m==1){B.error("不可取消点赞");return}Q("handleLike",c)},x=l=>l.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");return(l,c)=>(i(),a("a",{class:"box flexflex",target:"_blank",href:`./details/${e.item.uniqid}`},[t("img",{class:"img",src:e.item.schoolimage},null,8,he),t("div",ye,[t("div",ke,n(e.item.school),1),t("div",pe,[e.item.profession?(i(),a("div",xe,[we,t("div",Ee,n(e.item.profession),1)])):k("",!0),e.item.project?(i(),a("div",Be,[Ce,t("div",Qe,n(e.item.project),1)])):k("",!0),e.item.interviewtime?(i(),a("div",Le,[Pe,t("div",be,n(e.item.interviewtime),1)])):k("",!0)]),t("div",Te,[t("div",He,n(e.item.message),1),t("div",Ie,[Se,Re,v(" "+n(("handleDate"in l?l.handleDate:A(te))(e.item.releasetime))+"发布 ",1)])]),t("div",Ve,[t("div",qe,[Ge,v(" "+n(x(e.item.views||0)),1)]),t("div",{class:"data-item flexacenter",onClick:c[0]||(c[0]=M(m=>p(e.item.uniqid,e.item.token,e.item.islike),["prevent"]))},[e.item.islike==0?(i(),a("img",Ue)):(i(),a("img",Je)),v(" "+n(e.item.likenum||0),1)]),t("div",Ne,[Oe,v(" "+n(e.item.commentnum||0),1)])])])],8,_e))}},De=R(ze,[["__scopeId","data-v-7a203ec0"]]),Me="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+ylYfsItFuoDP3t918dByqCRvHSeKCXUbaXH8JGIgsiwsWpmrHHp45kK5jeCVFwr8divEbdsu9mwDGOTkzQXhF/GASq3LDakfv5Gb0qkv3fHv6+/vtRnlwoN7WL0cxa4bwCPQlI1As2coKczBJAf2WWWNIPnETB2bpwoIBPujyjTTlBD8DyBTp8KqHBPQZhcOSonBISfqNN/0dJCphX8VVsyc7dBEmm3y4Ke9Dg1PIGewecyzyTvwwe6TiYXkNx2kZkdfj/g8s8CCSvPqke+NiatixeYsPd0AAq5hBTEqH6aj/Zgs7TFMOJn/pYsf9yYVFCAhg4ibECr2QLZ06CgnFKody0b9xPA+RkbaLALugT7AGvDbp5SRY1tFEonIY8F7UKVY56L/QG6mjn5mhkRrwjapatk7VWiocUq+4KSkK6KPvl6lzBc+xUhWcfZR+0+TZ4rISUGJIFEJiBLVeY9f0l6rPbf2xBA8KE5Qw1iOje36Wbm1c2x63cnPYk4A58QjVouvqVRm2l4TMAsQfZRZcXExOBCzQVXQjyWuYpAhpf+Gr6Pqnm2U3Jvx7brH/ZbYd+APZxM/2zgvhdQAAAABJRU5ErkJggg==";const V=e=>(I("data-v-f141c754"),e=e(),S(),e),Ye={key:0,class:"search-result flexacenter"},Ke=V(()=>t("img",{class:"keyword-icon",src:Me},null,-1)),je=V(()=>t("div",{class:"halving-line"},null,-1)),Fe={class:"total"},We={key:0,class:"empty-box flexcenter"},Xe={key:1,class:"in-end"},Ze={__name:"index",async setup(e){let C,Q,p=b("isNeedLogin");const x=b("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=h(null);let c=null;const m=Y();let f=h("");f.value=m.query.keyword,K(()=>{f.value!=m.query.keyword&&(r.value=[],d.value=1,f.value=m.query.keyword,E(m.query.keyword))}),j(async()=>{let s=await F(()=>import("./masonry.a4c62544.js").then(o=>o.m),["./masonry.a4c62544.js","./cross-icon.9cff948f.js","./entry.5ab5c7d0.js","./entry.8609db93.css","./_plugin-vue_export-helper.7a0757ba.js","./cross-icon.a9c3a5f3.css"],import.meta.url);c=new s.default(l.value,{itemSelector:".box",gutter:22.5}),window.addEventListener("scroll",L),E()});const L=()=>{const s=document.documentElement.scrollTop||document.body.scrollTop,o=document.documentElement.scrollHeight,g=document.documentElement.clientHeight;s+g>=o-40&&E()};let d=h(1),P=h(0),r=h([]),w=!1;const E=()=>{d.value==0||w||(w=!0,se({page:d.value,keyword:f.value}).then(s=>{if(s.code!=200){d.value=0,B({message:s.message,type:"error"});return}let o=s.data;r.value=r.value.concat(o.data||[]),o.count>r.value.length?d.value++:d.value=0,P.value=o.count,W(()=>{c&&(c.reloadItems(),c.layout())})}).finally(()=>w=!1))},q=s=>{if(p.value){x();return}ce({token:s}).then(o=>{if(o.code!=200)return;let g=o.data;r.value.forEach(_=>{_.token==s&&(_.islike=g.status,_.likenum=g.count)}),B.success(o.message)})};X(()=>{window.removeEventListener("scroll",L)}),Z();const G=()=>oe("/index.html",!1);try{}catch{}return(s,o)=>{const g=ne,_=ae,U=ie,J=Ae,N=le,O=De;return i(),a(H,null,[y(U,null,{default:T(()=>[y(g,null,{default:T(()=>[v("寄托天下 - 面经分享")]),_:1}),y(_,{name:"keyword",content:"留学资讯,留学交流论坛,留学面经,面试经验,寄托天下"})]),_:1}),y(J),A(f)?(i(),a("div",Ye,[t("div",{class:"keyword flexacenter",onClick:G},[v(n(A(f))+" ",1),Ke]),je,t("div",Fe,"共 "+n(A(P))+" 条搜索数据",1)])):k("",!0),t("div",{class:"content",ref_key:"gridContainer",ref:l},[A(r).length==0&&A(d)==0?(i(),a("div",We,[y(N,{hint:"没有找到相关结果,请更换搜索关键词"})])):(i(!0),a(H,{key:1},$(A(r),(z,D)=>(i(),ee(O,{key:D,item:z,onHandleLike:q},null,8,["item"]))),128))],512),A(d)==0&&A(r).length>0?(i(),a("div",Xe,"- 到底了 -")):k("",!0)],64)}}},it=R(Ze,[["__scopeId","data-v-f141c754"]]);export{it as default};
|