;(function(){function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;})),keys.push.apply(keys,symbols);}return keys;}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key));});}return target;}function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}var __vite_style__=document.createElement('style');__vite_style__.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(__vite_style__);System.register(['./index-legacy.1cd7b6bb.js','./vendor-legacy.031e1374.js','./index-legacy.f25f109a2.js','./index-legacy.f25f109a6.js','./index-legacy.f25f109a5.js','./index-legacy.f25f109a4.js','./index-legacy.f25f109a.js','./index-legacy.edec5e29.js','./index-legacy.f25f109a3.js'],function(exports){'use strict';var state,request,ColResult,defineComponent,createVNode,Sticky,List,CellGroup,Cell,Image,isVNode,ColSearch;return{setters:[function(module){state=module.s;request=module.r;ColResult=module.C;},function(module){defineComponent=module.d;createVNode=module.a;Sticky=module.S;List=module.w;CellGroup=module.C;Cell=module.q;Image=module.I;isVNode=module.x;},function(){},function(){},function(){},function(){},function(){},function(module){ColSearch=module.C;},function(){}],execute:function execute(){var title="_title_tzijm_1";var time="_time_tzijm_4";var imgCover="_imgCover_tzijm_9";var styles={title:title,time:time,imgCover:imgCover};function _isSlot(s){return typeof s==='function'||Object.prototype.toString.call(s)==='[object Object]'&&!isVNode(s);}var special=exports('default',defineComponent({name:'special',data:function data(){var query=this.$route.query;return{list:[],dataShow:true,// 判断是否有数据
loading:false,finished:false,// 1热门资讯,2开屏广告，3闪页管理，4轮播图管理 5按钮管理 6 乐理章节
params:{search:'',type:query.type||1,platformType:state.platformType,page:1,rows:20}};},mounted:function mounted(){return _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee(){return regeneratorRuntime.wrap(function _callee$(_context){while(1){switch(_context.prev=_context.next){case 0:case"end":return _context.stop();}}},_callee);}))();},methods:{getList:function getList(){var _this=this;return _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee2(){var params,res,result;return regeneratorRuntime.wrap(function _callee2$(_context2){while(1){switch(_context2.prev=_context2.next){case 0:_context2.prev=0;params=_this.params;_context2.next=4;return request.post('/api-cms/news/page',{data:_objectSpread({},params)});case 4:res=_context2.sent;_this.loading=false;result=res.data||{};// 处理重复请求数据
if(!(_this.list.length>0&&result.pageNo===1)){_context2.next=9;break;}return _context2.abrupt("return");case 9:_this.list=_this.list.concat(result.rows||[]);_this.finished=result.pageNo>=result.totalPage;_this.params.page=result.pageNo+1;_this.dataShow=_this.list.length>0;_context2.next=19;break;case 15:_context2.prev=15;_context2.t0=_context2["catch"](0);_this.dataShow=false;_this.finished=true;case 19:case"end":return _context2.stop();}}},_callee2,null,[[0,15]]);}))();},onSearch:function onSearch(val){this.params.search=val;this.params.page=1;this.list=[];this.dataShow=true;// 判断是否有数据
this.loading=false;this.finished=false;this.getList();},onDetail:function onDetail(item){if(item.linkUrl){window.location.href=item.linkUrl;}else{this.$router.push({path:'specialDetail',query:{id:item.id}});}}},render:function render(){var _this2=this;var _slot;return createVNode("div",{"class":styles['special']},[createVNode(Sticky,{"offsetTop":0,"position":"top","class":'mb12'},{default:function _default(){return[createVNode(ColSearch,{"onSearch":_this2.onSearch},null)];}}),this.dataShow?createVNode(List,{"class":styles.videoList,"loading":this.loading,"onUpdate:loading":function onUpdateLoading($event){return _this2.loading=$event;},"finished":this.finished,"finishedText":"没有更多了","onLoad":this.getList},_isSlot(_slot=this.list.map(function(item){return createVNode(CellGroup,{"inset":true,"class":'mb12',"onClick":function onClick(){_this2.onDetail(item);}},{default:function _default(){return[createVNode(Cell,{"title":item.title,"titleClass":['van-ellipsis',styles.title]},{label:function label(){return createVNode("div",{"class":styles.label},[createVNode("div",{"class":styles.time},[item.createTime]),createVNode(Image,{"class":styles.imgCover,"src":item.coverImage,"fit":"cover"},null)]);}})];}});}))?_slot:{default:function _default(){return[_slot];}}):createVNode(ColResult,{"btnStatus":false,"classImgSize":"SMALL","tips":"暂无内容"},null)]);}}));}};});})();
