PageSourceSearch

https://www.e-gets.com/_nuxt/DzrZUFfu.js

js e-gets.com collected 2026-10-01 12:29:38 UTC 8,401 bytes, 1 lines download raw bytes

1import{bh as z,a as l,e as i,f as t,n as p,bo as f,M as P,aT as m,F as y,aY as _,aU as o,bv as B,bt as E,bs as I,h as g,w as S,br as M,aB as d,d as N,v as T,c as q}from"./AGvcFF6h.js";import{_ as A}from"./BIlbnfWS.js";import{_ as K}from"./B_nVU5-H.js";import{j as b}from"./CQr88K9l.js";import{_ as O}from"./C7ag9F9N.js";import{_ as V}from"./DlAUqK2U.js";import{I as D}from"./BSmMa1Xb.js";import{u as U,a as F,d as H,c as k}from"./CTtotSIT.js";import{f as R}from"./D6-rbJuV.js";import"./Du97_071.js";import"./BIB0MarL.js";const Y=z("/images/common/left-gray.png"),G=z("/images/common/left.png"),J=z("/images/common/right-gray.png"),Q={name:"Pagination",props:{totalItems:{type:Number,required:!0},currentPage:{type:Number,default:1},currentPageSize:{type:Number,default:10},pageSizes:{type:Array,default:[10,20,30]}},data(){return{pageSize:this.currentPageSize,showPageSizeList:!1,inputPage:1}},computed:{totalPages(){return Math.ceil(this.totalItems/this.pageSize)},middlePages(){const e=this.totalPages,s=this.currentPage;if(this.totalPages>=7){if(s-2<=1||s+2>=e){if(Math.abs(s-1)>Math.abs(s-e))return[e-5,e-4,e-3,e-2,e-1];if(Math.abs(s-1)<Math.abs(s-e))return[2,3,4,5,6]}if(s-2>1&&s<e)return[s-2,s-1,s,s+1,s+2]}else{const x=[];for(let c=2;c<=e-1;c++)x.push(c);return x}return[]},showEllipsisStart(){return this.middlePages.length&&this.middlePages[0]>2},showEllipsisEnd(){return this.middlePages.length&&this.middlePages[this.middlePages.length-1]<this.totalPages-1},showLast(){return this.totalPages>=2}},mounted(){window.addEventListener("click",this.handleOutClick)},beforeDestroy(){window.removeEventListener("click",this.handleOutClick)},methods:{handleOutClick(n){if(!this.showPageSizeList)return;const e=document.querySelector(".page-box");(!e||!e.contains(n.target))&&(this.showPageSizeList=!1)},onPageSizeChange(n){this.showPageSizeList=!1,this.pageSize=n,this.$emit("onChange",1,this.pageSize)},jumpToPage(){this.inputPage>=1&&this.inputPage<=this.totalPages&&this.changePage(this.inputPage)},changePage(n){n!==this.currentPage&&this.$emit("onChange",n,this.pageSize)}}},W={class:"flex cursor-pointer items-center text-sm text-[#333]"},X={loading:"lazy",class:"h-4 w-4",src:Y,alt:""},Z={loading:"lazy",class:"h-4 w-4",src:G,alt:""},$={key:0,class:"mx-3 text-[#B2B2B2]"},ee=["onClick"],te={key:1,class:"mx-3 text-[#B2B2B2]"},se={loading:"lazy",class:"h-4 w-4",src:J,alt:""},ae={loading:"lazy",class:"h-4 w-4",src:O,alt:""},ne={class:"z-2 absolute left-0 top-[42px] max-h-[200px] rounded border border-[#b2b2b2] bg-white py-[7px] text-center"},re=["onClick"],le={key:3,class:"ml-2"},ie=["max"];function oe(n,e,s,x,c,a){return l(),i("div",null,[t("ul",W,[t("li",{class:p(["mr-4 flex h-8 w-8 items-center justify-center text-xl",s.currentPage===1?"text-[#E5E5E5]":""]),onClick:e[0]||(e[0]=r=>a.changePage(s.currentPage-1<1?1:s.currentPage-1))},[f(t("img",X,null,512),[[P,s.currentPage===1]]),f(t("img",Z,null,512),[[P,s.currentPage!==1]])],2),t("li",{class:p(["mx-1 flex h-8 w-8 items-center justify-center",s.currentPage===1?"rounded border border-orange text-orange":""]),onClick:e[1]||(e[1]=r=>a.changePage(1))}," 1 ",2),a.showEllipsisStart?(l(),i("li",$,[...e[8]||(e[8]=[t("span",null,"...",-1)])])):m("",!0),(l(!0),i(y,null,_(a.middlePages,r=>(l(),i("li",{class:p(["mx-1 flex h-8 w-8 items-center justify-center",s.currentPage===r?"rounded border border-orange text-orange":""]),key:r,onClick:v=>a.changePage(r)},o(r),11,ee))),128)),a.showEllipsisEnd?(l(),i("li",te,[...e[9]||(e[9]=[t("span",null,"...",-1)])])):m("",!0),a.showLast?(l(),i("li",{key:2,class:p(["mx-1 flex h-8 w-8 items-center justify-center",a.totalPages===s.currentPage?"rounded border border-orange text-orange":""]),onClick:e[2]||(e[2]=r=>a.changePage(a.totalPages))},o(a.totalPages),3)):m("",!0),t("li",{class:"ml-4 flex h-8 w-8 items-center justify-center text-xl",onClick:e[3]||(e[3]=r=>a.changePage(s.currentPage+1>a.totalPages?a.totalPages:s.currentPage+1))},[f(t("img",se,null,512),[[P,s.currentPage===a.totalPages]]),f(t("img",ae,null,512),[[P,s.currentPage!==a.totalPages]])]),t("li",{class:"page-box relative ml-5 flex items-center rounded border border-[#b2b2b2] px-2 py-[6px]",onClick:e[4]||(e[4]=r=>c.showPageSizeList=!c.showPageSizeList)},[t("span",null,o(c.pageSize)+o(n.$t("per-num"))+"/"+o(n.$t("per-page")),1),e[11]||(e[11]=t("img",{loading:"lazy",class:"ml-2 h-3 w-3",src:"/images/common/down.png",alt:""},null,-1)),f(t("section",ne,[(l(!0),i(y,null,_(s.pageSizes,r=>(l(),i("div",{class:p(["min-w-[84px] rounded px-[8px] py-[8px] hover:bg-[#ffdabe]",s.currentPageSize==r?"font-semibold text-orange":""]),onClick:B(v=>a.onPageSizeChange(r),["stop"]),key:r},o(r)+" "+o(n.$t("per-num"))+"/"+o(n.$t("per-page")),11,re))),128)),e[10]||(e[10]=t("span",{class:"absolute left-[50%] top-[-5px] z-[1] ml-[-5px] h-[10px] w-[10px] rotate-45 border border-b-transparent border-l-[#b2b2b2] border-r-transparent border-t-[#b2b2b2] bg-white shadow-xl"},null,-1))],512),[[P,c.showPageSizeList]])]),a.totalPages>1?(l(),i("li",le,[t("span",null,o(n.$t("go-num")),1),f(t("input",{class:"mx-2 h-8 w-10 rounded border border-[#b2b2b2] text-center outline-none","onUpdate:modelValue":e[5]||(e[5]=r=>c.inputPage=r),onKeyup:e[6]||(e[6]=I((...r)=>
1a.jumpToPage&&a.jumpToPage(...r),["enter"])),onBlur:e[7]||(e[7]=(...r)=>a.jumpToPage&&a.jumpToPage(...r)),min:1,max:a.totalPages},null,40,ie),[[E,c.inputPage,void 0,{number:!0}]]),t("span",null,o(n.$t("go-page")),1)])):m("",!0)])])}const ce=V(Q,[["render",oe]]),de={class:"min-h-[1000px] py-[16px] phone:hidden"},ue={key:0},ge={class:"mr-[34px] h-[168px] w-[298px] flex-shrink-0 phone:mr-0 phone:w-full"},me={class:"flex h-[168px] flex-1 flex-col justify-between phone:mt-2"},he={class:"line-clamp-1 text-lg font-bold text-[#4d4d59]"},fe={class:"ql-snow"},xe={class:"ql-editor"},pe={class:"flex items-center justify-between text-sm"},Pe={class:"flex-1 phone:mt-2"},be={class:"line-clamp-1 text-lg font-bold text-[#4d4d59]"},ye={class:"ql-snow"},we={class:"ql-editor"},_e=["innerHTML"],ve={class:"flex items-center justify-between text-sm"},ze={class:"text-[#9c9ca8]"},Se={class:"text-orange hover:text-[#f2440f]"},ke={key:0,class:"my-[164px] flex flex-col items-center"},Le={class:"text-[12px] text-[#666]"},Ce={key:0,class:"my-10 phone:hidden"},Ve={__name:"PcArticleList",props:{articleList:{type:Array,default:()=>[]},parentId:{default:""},totalItems:{type:Number,default:0},currentPage:{type:Number,default:1},currentPageSize:{type:Number,default:10},isLoading:{type:Boolean,default:!1},isSearch:{type:Boolean,default:!1}},emits:["onChange"],setup(n,{emit:e}){const{t:s,locale:x}=U(),c=F().value,a=q(()=>c[x.value]),r=e,v=(w,h)=>{r("onChange",w,h)};return(w,h)=>{const L=M,C=A;return l(),i(y,null,[t("section",de,[g(L,null,{default:S(()=>[n.isLoading&&!n.isSearch?(l(),i("div",ue,[(l(),i(y,null,_(5,u=>t("div",{class:"flex cursor-pointer items-end border-b border-[#ccc] py-6 pr-6 phone:flex-col phone:pr-0",key:u},[t("div",ge,[g(d(b),{width:"298px",height:"168px",inline:""})]),t("div",me,[t("div",he,[g(d(b))]),t("div",fe,[t("div",xe,[g(d(b),{height:"50px"})])]),t("div",pe,[t("div",null,[g(d(b),{width:"100px"})]),t("div",null,[g(d(b),{width:"100px"})])])])])),64))])):m("",!0)]),_:1}),(l(!0),i(y,null,_(n.articleList,(u,j)=>(l(),N(C,{key:j,class:"flex cursor-pointer items-end border-b border-[#ccc] py-6 pr-6 phone:flex-col phone:pr-0",href:`/news/${u.id}?parent_id=${n.parentId}`},{default:S(()=>[g(D,{class:"mr-[34px] h-[168px] w-[298px] flex-shrink-0 phone:mr-0 phone:w-full",src:d(H)(u,d(a)),alt:""},null,8,["src"]),t("div",Pe,[t("header",be,o(d(k)(u,"title",d(a))),1),t("div",ye,[t("div",we,[t("p",{class:"mb-10 mt-5 line-clamp-2 text-base text-[#666]",innerHTML:d(k)(u,"summary",d(a))},null,8,_e)])]),t("div",ve,[t("span",ze,o(u.publish_time?d(R)(u.publish_time*1e3,"yyyy-MM-dd"):"--"),1),t("span",Se,[T(o(w.$t("profile-see-details")),1),h[0]||(h[0]=t("span",{class:"ml-[8px]"},">",-1))])])])]),_:2},1032,["href"]))),128)),!n.articleList.length&&n.isSearch&&!n.isLoading?(l(),i("div",ke,[h[1]||(h[1]=t("img",{loading:"lazy",src:K,alt:"",class:"h-[251px]"},null,-1)),t("div",Le,o(w.$t("news-search-empty")),1)])):m("",!0)]),n.articleList.length?(l(),i("footer",Ce,[g(ce,{totalItems:n.totalItems,currentPage:n.currentPage,currentPageSize:n.currentPageSize,onOnChange:v},null,8,["totalItems","currentPage","currentPageSize"])])):m("",!0)],64)}}};export{Ve as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.