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={},n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(k){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new G(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return S()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=w(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(k){return{type:"throw",arg:k}}}r.wrap=s;var p={};function d(){}function h(){}function g(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(E([])));v&&v!==n&&o.call(v,a)&&(m=v);var _=g.prototype=d.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(e,r){function n(i,a,u,c){var l=f(e[i],e,a);if("throw"!==l.type){var s=l.arg,p=s.value;return p&&"object"==t(p)&&o.call(p,"__await")?r.resolve(p.__await).then((function(t){n("next",t,u,c)}),(function(t){n("throw",t,u,c)})):r.resolve(p).then((function(t){s.value=t,u(s)}),(function(t){return n("throw",t,u,c)}))}c(l.arg)}var i;this._invoke=function(t,e){function o(){return new r((function(r,o){n(t,e,r,o)}))}return i=i?i.then(o,o):o()}}function w(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,w(t,e),"throw"===e.method))return p;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,p;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function L(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 j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function G(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function E(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,n=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:S}}function S(){return{value:void 0,done:!0}}return h.prototype=g,l(_,"constructor",g),l(g,"constructor",h),h.displayName=l(g,c,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,c,"GeneratorFunction")),t.prototype=Object.create(_),t},r.awrap=function(t){return{__await:t}},b(x.prototype),l(x.prototype,u,(function(){return this})),r.AsyncIterator=x,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new x(s(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(_),l(_,c,"Generator"),l(_,a,(function(){return this})),l(_,"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 n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},r.values=E,G.prototype={constructor:G,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(j),!t)for(var e in this)"t"===e.charAt(0)&&o.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,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,p):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),p},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),j(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},r}function r(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(l){return void r(l)}u.done?e(c):Promise.resolve(c).then(n,o)}function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,u=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var i=document.createElement("style");i.innerHTML="._theMusicGrid_pbxg4_1 .van-grid{margin:0 -.10667rem}._theMusicGrid_pbxg4_1 .van-grid-item{width:50%}._theMusicGrid_pbxg4_1 .van-grid-item__content{display:block;padding:0 .10667rem;background-color:transparent}._theMusicGrid_pbxg4_1 ._item_pbxg4_12{border-radius:.16rem;overflow:hidden;margin-bottom:.4rem;background-color:#fff;border:.02667rem solid #e0e0e0}._theMusicGrid_pbxg4_1 ._item_pbxg4_12 ._title_pbxg4_19{font-size:.37333rem;color:#333;line-height:.53333rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:.26667rem}._theMusicGrid_pbxg4_1 ._item_pbxg4_12 ._des_pbxg4_28{display:flex;justify-content:space-between;font-size:.32rem;color:#999;line-height:.42667rem}._theMusicGrid_pbxg4_1 ._imgWrap_pbxg4_35{position:relative;height:calc((100vw - 1.06667rem) / 3.5)}._theMusicGrid_pbxg4_1 ._imgWrap_pbxg4_35 ._model_pbxg4_39{position:absolute;left:0;bottom:0;right:0;height:.53333rem;background:rgba(0,0,0,.6);backdrop-filter:blur(.26667rem);display:flex;justify-content:space-between;align-items:center;padding:0 .16rem;font-size:.32rem}._theMusicGrid_pbxg4_1 ._imgWrap_pbxg4_35 ._classNum_pbxg4_53{color:#eb5e00}._theMusicGrid_pbxg4_1 ._imgWrap_pbxg4_35 ._num_pbxg4_56{color:var(--van-primary-color)}._theMusicGrid_pbxg4_1 ._itemContent_pbxg4_59{padding:.21333rem}._indexVideo_z9lik_1{padding:.26667rem .42667rem}\n",document.head.appendChild(i),System.register(["./request-legacy.eaa5ea94.js","./index-legacy.7ef67fdb.js","./index-legacy.1bc783ea.js","./index-legacy.53298efe.js","./index-legacy.b5971451.js","./index-legacy.9225f2d5.js","./vue3-lottie.es-legacy.c37a67ec.js","./index-legacy.863b202f.js","./use-tab-status-legacy.14cce99d.js"],(function(t){"use strict";var o,i,a,u,c,l,s,f,p,d,h,g,m,y,v,_,b;return{setters:[function(t){o=t.T,i=t.r},function(t){a=t.d,u=t.c,c=t.b,l=t._,s=t.e,f=t.r,p=t.n,d=t.a,h=t.J},function(t){g=t.G,m=t.a},function(t){y=t.C,v=t.L},function(t){_=t.B},function(t){b=t.L},function(){},function(){},function(){}],execute:function(){var x={theMusicGrid:"_theMusicGrid_pbxg4_1",item:"_item_pbxg4_12",title:"_title_pbxg4_19",des:"_des_pbxg4_28",imgWrap:"_imgWrap_pbxg4_35",model:"_model_pbxg4_39",classNum:"_classNum_pbxg4_53",num:"_num_pbxg4_56",itemContent:"_itemContent_pbxg4_59"};var w=a({name:"TheVideoGrid",props:{list:{type:Array,default:function(){return[]}}},emits:["goto"],setup:function(t,e){var r=e.emit,n={loading:function(){return u(v,{size:20},null)},error:function(){return u(v,{size:20},null)}};return function(){var e,o;return u("div",{class:x.theMusicGrid},[u(g,{border:!1,columnNum:2},(o=e=t.list.map((function(t){return u(m,null,{default:function(){return[u("div",{class:x.item,onClick:function(){return r("goto",t)}},[u("div",{class:x.imgWrap},[u(y,{width:"100%",height:"100%",src:t.lessonCoverUrl},n),u("div",{class:x.model},[u("span",{class:x.classNum},[t.lessonCount,c("课时")]),u("div",{class:x.num},[u("span",{class:x.dot},null),t.countStudent,c("人在学")])])]),u("div",{class:x.itemContent},[u("div",{class:x.title},[t.lessonName,c(" "),t.lessonDesc]),u("div",{class:x.des},[u("span",null,[t.username]),u("span",null,[t.lessonSubjectName])])])])]}})})),"function"==typeof o||"[object Object]"===Object.prototype.toString.call(o)&&!l(o)?e:{default:function(){return[e]}}))])}}}),L="_indexVideo_z9lik_1";t("default",a({name:"indexVideo",setup:function(){var t=d(),a=n(s(!1),2),c=a[0],l=a[1],g=f(!1),m=p({albumStatus:"PASS",page:1,rows:10}),y=f([]),v=function(){var t,n=(t=e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!c.value){t.next=2;break}return t.abrupt("return");case 2:return l(!0),t.prev=3,t.next=6,i.post("/api-website/open/videoLessonGroup/page",{data:m});case 6:(r=t.sent).data&&Array.isArray(r.data.rows)&&(y.value=[].concat(y.value,r.data.rows),r.data.rows.length?m.page=r.data.pageNo+1:g.value=!0),t.next=12;break;case 10:t.prev=10,t.t0=t.catch(3);case 12:h((function(){l(!1)}));case 13:case"end":return t.stop()}}),t,null,[[3,10]])})),function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function u(t){r(a,o,i,u,c,"next",t)}function c(t){r(a,o,i,u,c,"throw",t)}u(void 0)}))});return function(){return n.apply(this,arguments)}}();return function(){return u("div",{class:L},[u(_,null,null),u(o,{title:"精品视频课",isMore:!1},null),u(b,{loading:c.value,finished:g.value,finishedText:"没有更多了",onLoad:function(){return v()}},{default:function(){return[u(w,{list:y.value,onGoto:function(e){return t.push({path:"/videoDetail",query:{id:e.teacherId,groupId:e.id}})}},null)]}})])}}}))}}}))}();
|