index-legacy.65ade720.js 15 KB

1
  1. !function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return r};var r={},i=Object.prototype,n=i.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(O){c=function(t,e,r){return t[e]=r}}function h(t,e,r,i){var n=e&&e.prototype instanceof p?e:p,o=Object.create(n.prototype),a=new j(i||[]);return o._invoke=function(t,e,r){var i="suspendedStart";return function(n,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===n)throw o;return S()}for(r.method=n,r.arg=o;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===_)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===i)throw i="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i="executing";var l=u(t,e,r);if("normal"===l.type){if(i=r.done?"completed":"suspendedYield",l.arg===_)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i="completed",r.method="throw",r.arg=l.arg)}}}(t,r,a),o}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(O){return{type:"throw",arg:O}}}r.wrap=h;var _={};function p(){}function f(){}function d(){}var m={};c(m,a,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(W([])));g&&g!==i&&n.call(g,a)&&(m=g);var y=d.prototype=p.prototype=Object.create(m);function v(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function q(e,r){function i(o,a,s,l){var c=u(e[o],e,a);if("throw"!==c.type){var h=c.arg,_=h.value;return _&&"object"==t(_)&&n.call(_,"__await")?r.resolve(_.__await).then((function(t){i("next",t,s,l)}),(function(t){i("throw",t,s,l)})):r.resolve(_).then((function(t){h.value=t,s(h)}),(function(t){return i("throw",t,s,l)}))}l(c.arg)}var o;this._invoke=function(t,e){function n(){return new r((function(r,n){i(t,e,r,n)}))}return o=o?o.then(n,n):n()}}function x(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return _;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return _}var i=u(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,_;var n=i.arg;return n?n.done?(e[t.resultName]=n.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,_):n:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,_)}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function W(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return f.prototype=d,c(y,"constructor",d),c(d,"constructor",f),f.displayName=c(d,l,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,c(t,l,"GeneratorFunction")),t.prototype=Object.create(y),t},r.awrap=function(t){return{__await:t}},v(q.prototype),c(q.prototype,s,(function(){return this})),r.AsyncIterator=q,r.async=function(t,e,i,n,o){void 0===o&&(o=Promise);var a=new q(h(t,e,i,n),o);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},v(y),c(y,l,"Generator"),c(y,a,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var i=e.pop();if(i in t)return r.value=i,r.done=!1,r}return r.done=!0,r}},r.values=W,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,i){return a.type="throw",a.arg=t,e.next=r,i&&(e.method="next",e.arg=void 0),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,_):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),_},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),_}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var i=r.completion;if("throw"===i.type){var n=i.arg;L(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:W(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),_}},r}function r(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function i(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?r(Object(i),!0).forEach((function(e){n(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t,e,r,i,n,o,a){try{var s=t[o](a),l=s.value}catch(c){return void r(c)}s.done?e(l):Promise.resolve(l).then(i,n)}var a=document.createElement("style");a.innerHTML="._isFull_15bqh_1._itemWrap_15bqh_1{width:100%!important;margin-right:0;border-bottom:1px solid #f0f0f0;margin-bottom:14px}._isFull_15bqh_1._itemWrap_15bqh_1 ._detaile_15bqh_7{width:100%!important;height:187px!important;border-radius:4px}._isFull_15bqh_1._itemWrap_15bqh_1 ._detaile_15bqh_7 img{width:100%!important;height:187px!important}._isFull_15bqh_1._itemWrap_15bqh_1 ._masker_15bqh_16{visibility:visible!important;width:100%;height:187px}._isFull_15bqh_1._itemWrap_15bqh_1:nth-last-child(1){border-bottom:none}._isFull_15bqh_1._itemWrap_15bqh_1 ._itemBottom_15bqh_24{padding-bottom:14px!important}._itemWrap_15bqh_1{border:1px solid #e0e0e0;width:312px;margin-bottom:20px;margin-right:33px;border-radius:10px;overflow:hidden;background-color:#fff;cursor:pointer}._itemWrap_15bqh_1:nth-child(3n){margin-right:0}._itemWrap_15bqh_1:hover ._detaileWrap_15bqh_40 ._masker_15bqh_16{visibility:visible}._itemWrap_15bqh_1:hover ._detaileWrap_15bqh_40 ._masker_15bqh_16 img{width:48px;height:48px;-webkit-animation-name:_showPaly_15bqh_1;animation-name:_showPaly_15bqh_1;-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes _showPaly_15bqh_1{0%{transform:scale(.5)}50%{transform:scale(1.2)}to{transform:scale(1)}}@keyframes _showPaly_15bqh_1{0%{transform:scale(.5)}50%{transform:scale(1.2)}to{transform:scale(1)}}._itemWrap_15bqh_1 ._detaileWrap_15bqh_40{position:relative}._itemWrap_15bqh_1 ._detaileWrap_15bqh_40 ._detaile_15bqh_7{border-radius:4px;width:312px;height:174px}._itemWrap_15bqh_1 ._detaileWrap_15bqh_40 ._masker_15bqh_16{visibility:hidden;width:312px;height:174px;background-color:rgba(0,0,0,.4);top:0;left:0;display:flex;flex-direction:row;align-items:center;justify-content:center;position:absolute;z-index:900}._itemWrap_15bqh_1 ._detaileWrap_15bqh_40 ._masker_15bqh_16 img{width:48px;height:48px}._itemWrap_15bqh_1 ._infoBottom_15bqh_88{display:flex;flex-direction:row;align-items:center;padding:12px;justify-content:space-between}._itemWrap_15bqh_1 ._infoBottom_15bqh_88 ._infoBottomL_15bqh_95{display:flex;flex-direction:row;align-items:center}._itemWrap_15bqh_1 ._infoBottom_15bqh_88 ._infoBottomL_15bqh_95 ._itemHead_15bqh_100{width:28px;height:28px;border-radius:50%;border:2px solid #4bb39e;margin-right:12px}._itemWrap_15bqh_1 ._infoBottom_15bqh_88 ._infoBottomL_15bqh_95 ._itemTitle_15bqh_107{font-size:20px;font-weight:500;color:#333;line-height:28px}._itemWrap_15bqh_1 ._infoBottom_15bqh_88 ._infoBottomL_15bqh_95 ._course_15bqh_113{color:#666;font-size:18px;line-height:25px}._itemWrap_15bqh_1 ._itemBottom_15bqh_24{display:flex;flex-direction:row;align-items:center;padding:0 12px 12px;justify-content:space-between}._itemWrap_15bqh_1 ._itemBottom_15bqh_24 ._itemBottomL_15bqh_125{display:flex;flex-direction:row;align-items:center}._itemWrap_15bqh_1 ._itemBottom_15bqh_24 ._itemBottomL_15bqh_125 ._itemHead_15bqh_100{width:28px;height:28px;vertical-align:bottom;margin-right:10px}._itemWrap_15bqh_1 ._itemBottom_15bqh_24 ._itemBottomL_15bqh_125 ._itemTitle_15bqh_107{color:#999;font-weight:500;font-size:16px;line-height:22px}._itemWrap_15bqh_1 ._itemBottom_15bqh_24 ._itemBottomL_15bqh_125 ._line_15bqh_142{width:1px;height:10px;border:1px solid #d3d3d3;margin:0 10px}._itemWrap_15bqh_1 ._itemBottom_15bqh_24 ._itemBottomL_15bqh_125 ._course_15bqh_113{color:#666;font-size:16px;line-height:22px}._itemWrap_15bqh_1 ._itemBottom_15bqh_24 ._detaileStudy_15bqh_153{line-height:38px;color:#00ac89;display:flex;flex-direction:row;justify-content:flex-end;align-items:center}._itemWrap_15bqh_1 ._itemBottom_15bqh_24 ._detaileStudy_15bqh_153 ._detaileDot_15bqh_161{display:inline-block;width:6px;height:6px;background:#00ac89;border-radius:50%;margin-right:7px}\n",document.head.appendChild(a),System.register(["./index.module-legacy.4739d05e.js","./index-legacy.9e5809bc.js","./index-legacy.6c81b300.js","./player-legacy.c7d3b4b9.js","./index-legacy.d58a9f8e.js","./index-legacy.7e7779a4.js","./index-legacy.a700cc09.js","./index-legacy.78ba317a.js","./index2-legacy.62e643bc.js","./index2-legacy.08759d90.js"],(function(t){"use strict";var r,n,a,s,l,c,h,u,_,p,f,d,m,b,g,y;return{setters:[function(t){r=t.s},function(t){n=t.h},function(t){a=t.s},function(t){s=t.p},function(t){l=t.d,c=t.r,h=t.w,u=t.u,_=t.c,p=t.a,f=t.F,d=t.av,m=t.o,b=t.b},function(t){g=t.P},function(t){y=t.C},function(){},function(){},function(){}],execute:function(){var v="_isFull_15bqh_1",q="_itemWrap_15bqh_1",x="_detaile_15bqh_7",w="_masker_15bqh_16",L="_itemBottom_15bqh_24",j="_detaileWrap_15bqh_40",W="_infoBottom_15bqh_88",S="_infoBottomL_15bqh_95",O="_itemHead_15bqh_100",k="_itemTitle_15bqh_107",B="_course_15bqh_113",E="_itemBottomL_15bqh_125",P="_detaileStudy_15bqh_153",I="_detaileDot_15bqh_161",F=l({name:"albumItem",emits:["getDetail"],props:{detail:{type:Object,default:{auditStatus:"",endTime:"",lessonSubject:"",order:"",orderNo:"",page:0,rows:0,search:"",sort:"",startTime:"",userId:0,videoLessonGroupId:0}},isFull:{type:Boolean,default:!1}},setup:function(t,e){var r=c({detail:t.detail,isFull:t.isFull});h((function(){return t.detail}),(function(t){r.detail=t}));var i=u(),n=function(){r.isFull&&e.emit("getDetail",r.detail.id),i.push({path:"/videoDetail",query:{id:r.detail.id}})};return function(){return _(f,null,[_("div",{class:[q,r.isFull?v:""],onClick:n},[_("div",{class:j},[_("div",{class:w},[_("img",{src:s,alt:""},null)]),_("img",{src:r.detail.lessonCoverUrl?r.detail.lessonCoverUrl:"./assets/detaile.98813a45.png",alt:"",class:x},null)]),_("div",{class:W},[_("div",{class:S},[_("img",{src:"./assets/icon.c76ae863.png",class:O,alt:""},null),_("span",{class:k},[r.detail.username])]),_("span",{class:B},[r.detail.lessonCount,p("课时")])]),_("div",{class:L},[_("div",{class:E},[_("span",{class:k},[r.detail.lessonSubjectName])]),_("p",{class:P},[_("span",{class:I},null),r.detail.countStudent,p("人在学")])])])])}}});t("default",l({name:"videoDetailList",props:{title:{type:String,default:""}},components:{hotSearch:n,searchInput:a,videoDetailItem:F,pagination:g,ColEmpty:y},setup:function(t,s){var l=c({title:t.title,videoList:[],searchs:{search:"",lessonSubject:""},pageInfo:{limit:9,page:1,total:0,page_size:[9,20,40,50]},isshowData:!1}),h=d(),u=function(){var t,r=(t=e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("请求接口"),t.prev=1,t.next=4,b.post("/api-website/open/videoLessonGroup/page",{data:i(i({},l.searchs),{},{albumStatus:"PASS",page:l.pageInfo.page,rows:l.pageInfo.limit})});case 4:r=t.sent,l.videoList=r.data.rows,l.pageInfo.total=r.data.total,0==l.pageInfo.total?l.isshowData=!0:l.isshowData=!1,t.next=13;break;case 10:t.prev=10,t.t0=t.catch(1),console.log(t.t0);case 13:case"end":return t.stop()}}),t,null,[[1,10]])})),function(){var e=this,r=arguments;return new Promise((function(i,n){var a=t.apply(e,r);function s(t){o(a,i,n,s,l,"next",t)}function l(t){o(a,i,n,s,l,"throw",t)}s(void 0)}))});return function(){return r.apply(this,arguments)}}(),p=function(t){l.searchs=i(i({},l.searchs),{},{lessonSubject:t.subject,search:t.search}),u()};return m((function(){h.query.search&&(l.searchs.search=h.query.search),h.query.subject&&(l.searchs.lessonSubject=h.query.subject),u()})),function(){return _(f,null,[_("div",null,[_("div",{class:"wall",style:{height:"70px"}},null),_("div",{class:r.w1200},[_("div",{class:r.section},[_(a,{isWhile:!0,searchVal:l.searchs,holder:"搜一搜你想看的视频课",onStartSearch:function(t){p(t)}},null),_("div",{class:r.hotSearchWrap},[_(n,{searchType:"COURSE",onHotTag:function(t){!function(t){l.searchs.search=t,p(l.searchs)}(t)},type:"",isChiose:!0},null)])]),_("div",{class:r.videoList},[l.videoList.map((function(t){return _(F,{detail:t},null)}))]),l.isshowData&&_(y,null,null),_(g,{total:l.pageInfo.total,page:l.pageInfo.page,"onUpdate:page":function(t){return l.pageInfo.page=t},limit:l.pageInfo.limit,"onUpdate:limit":function(t){return l.pageInfo.limit=t},pageSizes:l.pageInfo.page_size,pagination:u},null)])])])}}}))}}}))}();