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 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.f8641610.js","./index-legacy.fc510843.js","./index-legacy.13f535d5.js","./index-legacy.4ddb0119.js","./index-legacy.c8b60294.js","./index-legacy.c36297f9.js","./index-legacy.e8dcdcc8.js","./hooks-legacy.1d4168e3.js","./use-tab-status-legacy.5d29085f.js","./index-legacy.8a3dede6.js","./use-id-legacy.30c2e9af.js"],(function(e){"use strict";var n,i,a,o,s,c,u,l,f,d,p,h,g;return{setters:[function(e){n=e.d,i=e.s,a=e.e,o=e.i,s=e.C,c=e.$},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.C},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)&&!c(t)?e:{default:function(){return[e]}})):o(s,{btnStatus:!1,classImgSize:"SMALL",tips:"暂无内容"},null)])}}))}}}))}();
|