1 |
- !function(){function e(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(e,t,n,r,o,a,i){try{var c=e[a](i),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}function r(e){return function(){var t=this,r=arguments;return new Promise((function(o,a){var i=e.apply(t,r);function c(e){n(i,o,a,c,u,"next",e)}function u(e){n(i,o,a,c,u,"throw",e)}c(void 0)}))}}var o=document.createElement("style");o.innerHTML="._sticky_1o852_1 .van-sticky{background:url(./assets/bg.d0676112.png) no-repeat top center;background-size:100% 9.22667rem}._sticky_1o852_1 .van-search__content{background:rgba(255,255,255,.5)!important}._sticky_1o852_1 .van-search__content input::-moz-placeholder{color:rgba(0,0,0,.4)!important}._sticky_1o852_1 .van-search__content input::placeholder{color:rgba(0,0,0,.4)!important}._sticky_1o852_1 .van-search__content input,._sticky_1o852_1 .van-search__content .van-field__clear{color:rgba(0,0,0,.4)!important}._sticky_1o852_1 .van-search{align-items:flex-start}._sticky_1o852_1 .van-dropdown-menu__bar{background-color:transparent;box-shadow:none;padding-right:.4rem;padding-bottom:.26667rem;height:.96rem}._sticky_1o852_1 .van-dropdown-menu__title{padding-left:0;color:#131415}._sticky_1o852_1 .van-dropdown-menu__title.van-dropdown-menu__title--active{color:#fe2451}._sticky_1o852_1 .van-dropdown-menu__title.van-dropdown-menu__title--active:after{border-color:transparent transparent #fe2451 #fe2451}._sticky_1o852_1 .van-dropdown-menu__title:after{border-color:transparent transparent rgba(0,0,0,.4) rgba(0,0,0,.4)}._sticky_1o852_1 .van-dropdown-item__content{border-radius:0 0 .53333rem .53333rem}._sticky_1o852_1 .van-haptics-feedback:active{opacity:1!important}._sticky_1o852_1 ._dropdownMenuSub_1o852_49 .van-popup{box-sizing:border-box;padding:.32rem}._sticky_1o852_1 ._dropdownMenuSub_1o852_49 .van-cell{padding:0;height:1.33333rem;line-height:1.33333rem;color:#333}._sticky_1o852_1 ._dropdownMenuSub_1o852_49 .van-cell:after{display:none}._sticky_1o852_1 ._dropdownMenuSub_1o852_49 .van-cell.van-dropdown-item__option--active{background-color:rgba(254,36,81,.08);border-radius:.26667rem;color:#fe2451}._sticky_1o852_1 ._dropdownMenuSub_1o852_49 .van-cell.van-dropdown-item__option--active .van-cell__title{font-weight:600}._sticky_1o852_1 ._dropdownMenuSub_1o852_49 .van-cell .van-cell__title{font-weight:400;font-size:.42667rem;text-align:center}._sticky_1o852_1 ._dropdownMenuSub_1o852_49 .van-cell .van-cell__value{display:none}._sticky_1o852_1 ._titleActive_1o852_78 .van-ellipsis{max-width:1.65333rem}._search_1o852_81 .van-search{padding-top:.10667rem}._bgImg_1o852_84{position:fixed;top:0;left:0;width:100%;height:9.22667rem;z-index:-1}._alumnList_1o852_92{min-height:40vh}._alumnList_1o852_92 .van-list__loading{display:none}._alumnList_1o852_92 ._courseItem_1o852_98{background:initial;border:initial;padding:0 .10667rem .53333rem}._alumnList_1o852_92 ._courseItem_1o852_98 .courseItem:nth-child(1){margin-top:.16rem!important}._alumnList_1o852_92 ._courseItem_1o852_98 .courseItem:nth-child(2){margin-top:.16rem!important}._alumnList_1o852_92 ._courseItem_1o852_98 .courseItem:nth-child(3){margin-top:.16rem!important}\n",document.head.appendChild(o),System.register(["./ResizeObserver.es-legacy.8d60aee1.js","./index-legacy.c1f587d0.js","./index-legacy.610f0a70.js","./index-legacy.c07bb851.js","./index-legacy.87bcd48f.js","./index-legacy.4f8bc5f4.js","./bg-legacy.85bef73b.js","./index-legacy.897f3849.js","./index-legacy.51cfc150.js","./use-id-legacy.54528695.js","./use-tab-status-legacy.1f35f332.js","./index-legacy.bbc2b10e.js","./index-legacy.78ce4f6b.js"],(function(t){"use strict";var n,o,a,i,c,u,s,l,_,d,p,m,f,v,b,g,y,h,k,I;return{setters:[function(e){n=e.d,o=e.Q,a=e.P,i=e.S,c=e.U,u=e.V,s=e.j,l=e.f,_=e.n,d=e.C,p=e.F,m=e.y},function(e){f=e.D,v=e.a},function(){},function(e){b=e.L},function(e){g=e.C},function(e){y=e.T},function(e){h=e.b},function(e){k=e.S},function(e){I=e.C},function(){},function(){},function(){},function(){}],execute:function(){var w="_sticky_1o852_1",S="_dropdownMenuSub_1o852_49",x="_titleActive_1o852_78",L="_search_1o852_81",E="_bgImg_1o852_84",j="_alumnList_1o852_92",N="_courseItem_1o852_98";t("default",n({name:"lessonCourseware",setup:function(){var t,n=o(),A=a(),R=i({keyword:A.query.search||"",albumId:A.query.albumId,subjectList:[],page:1}),T=c(!1),C=c(!1),M=c(!1),U=c(""),O=c([]);!function(e){e.PERCUSSION_SINGLE="打击乐",e.FLUTE_SINGLE="长笛",e.SAX_SINGLE="萨克斯",e.CLARINET_SINGLE="单簧管",e.TRUMPET_SINGLE="小号",e.TROMBONE_SINGLE="长号",e.HORN_SINGLE="圆号",e.BARITONE_TUBA_SINGLE="上低音号-大号",e.MUSIC_THEORY="乐理",e.INSTRUMENTAL_ENSEMBLE="合奏",e.EUPHONIUM_SINGLE="上低音号",e.TUBA_SINGLE="大号"}(t||(t={}));var G=function(){var n=r(regeneratorRuntime.mark((function n(){var r,o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,m.post("/api-student/tenantAlbumMusic/selectCondition",{data:{subjectType:"COURSEWARE",tenantAlbumId:R.albumId}});case 3:200===(r=n.sent).code&&(O.value=[{text:"全部教材",value:""}].concat(e(((null===(o=r.data)||void 0===o?void 0:o.courseTypeList)||[]).map((function(e){return{text:t[e],value:e}}))))),n.next=9;break;case 7:n.prev=7,n.t0=n.catch(0);case 9:case"end":return n.stop()}}),n,null,[[0,7]])})));return function(){return n.apply(this,arguments)}}();function z(e){R.page=1,R.keyword=e,R.subjectList=[],B()}function P(){R.page=1,R.subjectList=[],B()}var B=function(){var e=r(regeneratorRuntime.mark((function e(){var t,n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return T.value=!0,M.value=!1,e.prev=2,e.next=5,m.post("/api-student/tenantAlbumMusic/page",{data:{courseTypeCode:U.value,keyword:R.keyword,albumId:R.albumId,subjectType:"COURSEWARE",page:R.page,rows:20}});case 5:if(r=e.sent,!((null===(t=R.subjectList)||void 0===t?void 0:t.length)>0&&1===r.data.pageNo)){e.next=8;break}return e.abrupt("return");case 8:o=(R.subjectList||[]).concat((null===(n=r.data)||void 0===n?void 0:n.rows)||[]),R.subjectList=o,R.page=r.data.pageNo+1,C.value=r.data.pageNo>=r.data.totalPage,e.next=17;break;case 14:e.prev=14,e.t0=e.catch(2),M.value=!0;case 17:T.value=!1;case 18:case"end":return e.stop()}}),e,null,[[2,14]])})));return function(){return e.apply(this,arguments)}}();return u(r(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return T.value=!0,e.next=3,G();case 3:if(!R.albumId){e.next=8;break}return e.next=6,B();case 6:e.next=9;break;case 8:T.value=!1;case 9:case"end":return e.stop()}}),e)})))),function(){return s(p,null,[s("div",{class:w},[s(y,null,{default:function(){return[s(g,{hideHeader:!1,background:"transparent",isFixed:!1,border:!1,title:"云课堂",color:"#131415"},null),s(k,{class:L,onSearch:z,modelValue:R.keyword,onInput:function(e){R.keyword=e},type:"tenant",placeholder:"请输入教材关键词",background:"transparent",inputBackground:"transparent"},{left:function(){return O.value.length>1&&s(f,{class:S},{default:function(){return[s(v,{titleClass:x,modelValue:U.value,"onUpdate:modelValue":function(e){return U.value=e},options:O.value,onChange:P},{default:function(){return[s("div",null,null)]}})]}})}})]}}),s("img",{class:E,src:h},null)]),s("div",{class:j},[s(b,{loading:T.value,finished:C.value,"finished-text":"",onLoad:B,error:M.value,immediateCheck:!1},{default:function(){return[R.subjectList.length?s(I,{class:[N],list:R.subjectList.map((function(e){return{name:e.musicSheetName,coverImg:e.titleImg,id:e.id}})),onItemClick:function(e){if(l().isApp){var t="".concat(location.origin,"/tenant/#/courseList?id=").concat(e.id,"&albumId=").concat(R.albumId);_({api:"openWebView",content:{url:t,orientation:1,isHideTitle:!1}})}else n.push({path:"/courseList",query:{id:e.id,albumId:R.albumId}})}},null):!T.value&&s(d,{tips:"暂无教材",classImgSize:"CERT",btnStatus:!1},null)]}})])])}}}))}}}))}();
|