var n=Object.defineProperty;var l=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable;var o=(t,s,e)=>s in t?n(t,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[s]=e,r=(t,s)=>{for(var e in s||(s={}))h.call(s,e)&&o(t,e,s[e]);if(l)for(var e of l(s))d.call(s,e)&&o(t,e,s[e]);return t};import{s as c,r as p,C as m}from"./index.3d95a92c.js";import{d as f,a as i,S as u,w as g,C as S,q as j,I as v,x as y}from"./vendor.a0144ce9.js";/* empty css               *//* empty css               *//* empty css               *//* empty css               *//* empty css              */import{C}from"./index.ccfa57ee.js";/* empty css               */const w="_title_tzijm_1",x="_time_tzijm_4",_="_imgCover_tzijm_9";var a={title:w,time:x,imgCover:_};function b(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!y(t)}var V=f({name:"special",data(){const t=this.$route.query;return{list:[],dataShow:!0,loading:!1,finished:!1,params:{search:"",type:t.type||1,platformType:c.platformType,page:1,rows:20}}},async mounted(){},methods:{async getList(){try{let t=this.params;const s=await p.post("/api-cms/news/page",{data:r({},t)});this.loading=!1;const e=s.data||{};if(this.list.length>0&&e.pageNo===1)return;this.list=this.list.concat(e.rows||[]),this.finished=e.pageNo>=e.totalPage,this.params.page=e.pageNo+1,this.dataShow=this.list.length>0}catch{this.dataShow=!1,this.finished=!0}},onSearch(t){this.params.search=t,this.params.page=1,this.list=[],this.dataShow=!0,this.loading=!1,this.finished=!1,this.getList()},onDetail(t){t.linkUrl?window.location.href=t.linkUrl:this.$router.push({path:"specialDetail",query:{id:t.id}})}},render(){let t;return i("div",{class:a.special},[i(u,{offsetTop:0,position:"top",class:"mb12"},{default:()=>[i(C,{onSearch:this.onSearch},null)]}),this.dataShow?i(g,{class:a.videoList,loading:this.loading,"onUpdate:loading":s=>this.loading=s,finished:this.finished,finishedText:"\u6CA1\u6709\u66F4\u591A\u4E86",onLoad:this.getList},b(t=this.list.map(s=>i(S,{inset:!0,class:"mb12",onClick:()=>{this.onDetail(s)}},{default:()=>[i(j,{title:s.title,titleClass:["van-ellipsis",a.title]},{label:()=>i("div",{class:a.label},[i("div",{class:a.time},[s.createTime]),i(v,{class:a.imgCover,src:s.coverImage,fit:"cover"},null)])})]})))?t:{default:()=>[t]}):i(m,{btnStatus:!1,classImgSize:"SMALL",tips:"\u6682\u65E0\u5185\u5BB9"},null)])}});export{V as default};
