;(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);});};}System.register(['./index.module-legacy.93ff452f.js','./index-legacy.ba6cdc61.js','./index-legacy.f33872c6.js','./index-legacy.0c709be4.js','./index-legacy.5050f563.js','./index-legacy.46267761.js','./vendor-legacy.457cbbd5.js','./index-legacy.f447ae5f.js','./index-legacy.2eaedc47.js','./hot-legacy.16c30716.js','./arrow-legacy.c72c6a83.js','./icon-legacy.aed5a5b3.js'],function(exports){'use strict';var styles,hotSearch,searchInput,videoDetailItem,request,Pagination,defineComponent,reactive,useRoute,onMounted,createVNode,Fragment,ColEmpty;return{setters:[function(module){styles=module.s;},function(module){hotSearch=module.h;},function(module){searchInput=module.s;},function(module){videoDetailItem=module.v;},function(module){request=module.r;},function(module){Pagination=module.P;},function(module){defineComponent=module.d;reactive=module.r;useRoute=module.u;onMounted=module.o;createVNode=module.c;Fragment=module.F;},function(module){ColEmpty=module.C;},function(){},function(){},function(){},function(){}],execute:function execute(){var index=exports('default',defineComponent({name:'videoDetailList',props:{title:{type:String,default:''}},components:{hotSearch:hotSearch,searchInput:searchInput,videoDetailItem:videoDetailItem,pagination:Pagination,ColEmpty:ColEmpty},setup:function setup(props,conent){var state=reactive({title:props.title,videoList:[],searchs:{search:'',lessonSubject:''},pageInfo:{// 分页规则
limit:9,// 限制显示条数
page:1,// 当前页
total:0,// 总条数
page_size:[9,20,40,50]// 选择限制显示条数
},isshowData:false});var route=useRoute();var getVideoList=/*#__PURE__*/function(){var _ref=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee(){var res;return regeneratorRuntime.wrap(function _callee$(_context){while(1){switch(_context.prev=_context.next){case 0:console.log('请求接口');_context.prev=1;_context.next=4;return request.post('/api-website/open/videoLessonGroup/page',{data:_objectSpread(_objectSpread({},state.searchs),{},{albumStatus:'PASS',page:state.pageInfo.page,rows:state.pageInfo.limit})});case 4:res=_context.sent;state.videoList=res.data.rows;state.pageInfo.total=res.data.total;if(state.pageInfo.total==0){state.isshowData=true;}else{state.isshowData=false;}_context.next=13;break;case 10:_context.prev=10;_context.t0=_context["catch"](1);console.log(_context.t0);case 13:case"end":return _context.stop();}}},_callee,null,[[1,10]]);}));return function getVideoList(){return _ref.apply(this,arguments);};}();var startSearch=function startSearch(val){state.searchs=_objectSpread(_objectSpread({},state.searchs),{},{lessonSubject:val.subject,search:val.search});getVideoList();};var gotoSearch=function gotoSearch(val){state.searchs.search=val;startSearch(state.searchs);};onMounted(function(){if(route.query.search){state.searchs.search=route.query.search;}if(route.query.subject){state.searchs.lessonSubject=route.query.subject;}getVideoList();});return function(){return createVNode(Fragment,null,[createVNode("div",null,[createVNode("div",{"class":"wall","style":{height:'70px'}},null),createVNode("div",{"class":styles.w1200},[createVNode("div",{"class":styles.section},[createVNode(searchInput,{"isWhile":true,"searchVal":state.searchs,"holder":"搜一搜你想看的视频课","onStartSearch":function onStartSearch(val){startSearch(val);}},null),createVNode("div",{"class":styles.hotSearchWrap},[createVNode(hotSearch,{"searchType":"COURSE","onHotTag":function onHotTag(val){gotoSearch(val);},"type":'',"isChiose":true},null)])]),createVNode("div",{"class":styles.videoList},[state.videoList.map(function(item){return createVNode(videoDetailItem,{"detail":item},null);})]),state.isshowData&&createVNode(ColEmpty,null,null),createVNode(Pagination,{"total":state.pageInfo.total,"page":state.pageInfo.page,"onUpdate:page":function onUpdatePage($event){return state.pageInfo.page=$event;},"limit":state.pageInfo.limit,"onUpdate:limit":function onUpdateLimit($event){return state.pageInfo.limit=$event;},"pageSizes":state.pageInfo.page_size,"pagination":getVideoList},null)])])]);};}}));}};});})();
