<<<<<<<< HEAD:dist/assets/index-legacy.aaaa9c81.js ;(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>>>>>>> online:dist/assets/index-legacy.5f179162.js var subjects=useSubjectId(SubjectEnum.VIDEO);subjectId=subjects.id||subjectId;var state$1=reactive({title:props.title,videoList:[],searchs:{search:'',lessonSubject:subjectId},pageInfo:{// 分页规则 limit:9,// 限制显示条数 page:1,// 当前页 total:0,// 总条数 page_size:[9,18,36,45]// 选择限制显示条数 },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$1.searchs),{},{albumStatus:'PASS',page:state$1.pageInfo.page,rows:state$1.pageInfo.limit})});case 4:res=_context.sent;state$1.videoList=res.data.rows;state$1.pageInfo.total=res.data.total;if(state$1.pageInfo.total==0){state$1.isshowData=true;}else{state$1.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$1.searchs=_objectSpread(_objectSpread({},state$1.searchs),{},{lessonSubject:val.subject,search:val.search});getVideoList();};var gotoSearch=function gotoSearch(val){state$1.searchs.search=val;startSearch(state$1.searchs);};onMounted(function(){if(route.query.search){state$1.searchs.search=route.query.search;}if(route.query.subject){state$1.searchs.lessonSubject=route.query.subject;}getVideoList();});return function(){return createVNode(Fragment,null,[createVNode(banner,null,null),createVNode("div",null,[createVNode("div",{"class":styles.w1200},[createVNode("div",{"class":styles.section},[createVNode(searchInput,{"isWhile":true,"searchVal":state$1.searchs,"type":"video","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$1.videoList.map(function(item){return createVNode(videoDetailItem,{"detail":item},null);})]),state$1.isshowData&&createVNode(ColEmpty,null,null),createVNode(Pagination,{"total":state$1.pageInfo.total,"page":state$1.pageInfo.page,"onUpdate:page":function onUpdatePage($event){return state$1.pageInfo.page=$event;},"limit":state$1.pageInfo.limit,"onUpdate:limit":function onUpdateLimit($event){return state$1.pageInfo.limit=$event;},"pageSizes":state$1.pageInfo.page_size,"pagination":getVideoList},null)])])]);};}}));}};});})();