!function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function t(t){for(var i=1;i<arguments.length;i++){var r=null!=arguments[i]?arguments[i]:{};i%2?e(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t,n,i,r,a,o){try{var s=e[a](o),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(i,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function s(e){i(o,r,a,s,c,"next",e)}function c(e){i(o,r,a,s,c,"throw",e)}s(void 0)}))}}var a=document.createElement("style");a.innerHTML="._title_tzijm_1{font-size:.42667rem}._time_tzijm_4{font-size:.37333rem;color:#999;padding-bottom:.16rem}._imgCover_tzijm_9{width:100%;height:4.66667rem}\n",document.head.appendChild(a),System.register(["./index-legacy.2562bdba.js","./index-legacy.af0efc4c.js","./index-legacy.e6740abe.js","./index-legacy.b85658dd.js","./index-legacy.523bef85.js","./index-legacy.bbbfd066.js","./index-legacy.c90df848.js","./hooks-legacy.4a4d2e12.js","./index-legacy.83ebfae8.js","./use-tab-status-legacy.f4341042.js","./index-legacy.5831e2a1.js","./use-id-legacy.d6f0d8ea.js"],(function(e){"use strict";var n,i,a,o,s,c,u,l,f,d,p,h,g,m;return{setters:[function(e){n=e.d,i=e.g,a=e.x,o=e.j,s=e.C,c=e.Z},function(e){u=e.C},function(e){l=e.L},function(e){f=e.S},function(e){d=e.I},function(e){p=e.C},function(e){h=e.S},function(e){g=e.u},function(e){m=e.C},function(){},function(){},function(){}],execute:function(){var b={title:"_title_tzijm_1",time:"_time_tzijm_4",imgCover:"_imgCover_tzijm_9"};e("default",n({name:"special",data:function(){return{list:[],dataShow:!0,loading:!1,finished:!1,params:{search:"",type:this.$route.query.type||1,platformType:i.platformType,page:1,rows:20}}},mounted:function(){return r(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:g("热门资讯");case 1:case"end":return e.stop()}}),e)})))()},methods:{getList:function(){var e=this;return r(regeneratorRuntime.mark((function n(){var i,r,o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,i=e.params,n.next=4,a.post("/api-cms/news/page",{data:t({},i)});case 4:if(r=n.sent,e.loading=!1,o=r.data||{},!(e.list.length>0&&1===o.pageNo)){n.next=9;break}return n.abrupt("return");case 9:e.list=e.list.concat(o.rows||[]),e.finished=o.pageNo>=o.totalPage,e.params.page=o.pageNo+1,e.dataShow=e.list.length>0,n.next=19;break;case 15:n.prev=15,n.t0=n.catch(0),e.dataShow=!1,e.finished=!0;case 19:case"end":return n.stop()}}),n,null,[[0,15]])})))()},onSearch:function(e){this.params.search=e,this.params.page=1,this.list=[],this.dataShow=!0,this.loading=!1,this.finished=!1,this.getList()},onDetail:function(e){e.linkUrl?window.location.href=e.linkUrl:this.$router.push({path:"specialDetail",query:{id:e.id}})}},render:function(){var e,t,n=this;return o("div",{class:b.special},[o(f,{offsetTop:0,position:"top",class:"mb12"},{default:function(){return[o(m,{border:!1},null),o(h,{onSearch:n.onSearch},null)]}}),this.dataShow?o(l,{class:b.videoList,loading:this.loading,"onUpdate:loading":function(e){return n.loading=e},finished:this.finished,finishedText:"没有更多了",onLoad:this.getList},(t=e=this.list.map((function(e){return o(p,{inset:!0,class:"mb12",onClick:function(){n.onDetail(e)}},{default:function(){return[o(u,{title:e.title,titleClass:["van-ellipsis",b.title]},{label:function(){return o("div",{class:b.label},[o("div",{class:b.time},[e.createTime]),o(d,{class:b.imgCover,src:e.coverImage,fit:"cover"},null)])}})]}})})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!c(t)?e:{default:function(){return[e]}})):o(s,{btnStatus:!1,classImgSize:"SMALL",tips:"暂无内容"},null)])}}))}}}))}();
