1 |
- !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 c=e[a](o),s=c.value}catch(u){return void n(u)}c.done?t(s):Promise.resolve(s).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 c(e){i(o,r,a,c,s,"next",e)}function s(e){i(o,r,a,c,s,"throw",e)}c(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.fba2875c.js","./index-legacy.7dcec7b3.js","./index-legacy.a7012d0a.js","./index-legacy.edb65d0c.js","./index-legacy.d92f7da7.js","./index-legacy.f231f1c5.js","./index-legacy.fc679d65.js","./hooks-legacy.148eb332.js","./use-tab-status-legacy.8752ccde.js","./index-legacy.8921f068.js","./use-id-legacy.db87b112.js"],(function(e){"use strict";var n,i,a,o,c,s,u,l,f,d,p,h,g;return{setters:[function(e){n=e.d,i=e.g,a=e.w,o=e.j,c=e.C,s=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(){},function(){},function(){}],execute:function(){var m={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:m.special},[o(f,{offsetTop:0,position:"top",class:"mb12"},{default:function(){return[o(h,{onSearch:n.onSearch},null)]}}),this.dataShow?o(l,{class:m.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",m.title]},{label:function(){return o("div",{class:m.label},[o("div",{class:m.time},[e.createTime]),o(d,{class:m.imgCover,src:e.coverImage,fit:"cover"},null)])}})]}})})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!s(t)?e:{default:function(){return[e]}})):o(c,{btnStatus:!1,classImgSize:"SMALL",tips:"暂无内容"},null)])}}))}}}))}();
|