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,a,i,o){try{var c=e[i](o),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,a)}function r(e){return function(){var t=this,r=arguments;return new Promise((function(a,i){var o=e.apply(t,r);function c(e){n(o,a,i,c,u,"next",e)}function u(e){n(o,a,i,c,u,"throw",e)}c(void 0)}))}}var a=document.createElement("style");a.innerHTML="._sticky_2r9wh_1 .van-sticky{background:url(./assets/bg.bf110160.png) no-repeat top center;background-size:100% 9.22667rem}._sticky_2r9wh_1 .van-search__content{background:rgba(255,255,255,.5)!important}._sticky_2r9wh_1 .van-search__content input::-moz-placeholder{color:rgba(0,0,0,.4)!important}._sticky_2r9wh_1 .van-search__content input::placeholder{color:rgba(0,0,0,.4)!important}._sticky_2r9wh_1 .van-search__content input,._sticky_2r9wh_1 .van-search__content .van-field__clear{color:rgba(0,0,0,.4)!important}._sticky_2r9wh_1 .van-dropdown-menu__bar{background-color:transparent;box-shadow:none;padding-right:.4rem;height:.96rem}._sticky_2r9wh_1 .van-dropdown-menu__title{padding-left:0;color:#131415}._sticky_2r9wh_1 .van-dropdown-menu__title.van-dropdown-menu__title--active{color:#fe2451}._sticky_2r9wh_1 .van-dropdown-menu__title.van-dropdown-menu__title--active:after{border-color:transparent transparent #fe2451 #fe2451}._sticky_2r9wh_1 .van-dropdown-menu__title:after{border-color:transparent transparent rgba(0,0,0,.4) rgba(0,0,0,.4)}._sticky_2r9wh_1 .van-dropdown-item__content{border-radius:0 0 .53333rem .53333rem}._sticky_2r9wh_1 .van-haptics-feedback:active{opacity:1!important}._sticky_2r9wh_1 ._dropdownMenuSub_2r9wh_45 .van-popup{box-sizing:border-box;padding:.32rem}._sticky_2r9wh_1 ._dropdownMenuSub_2r9wh_45 .van-cell{padding:0;height:1.33333rem;line-height:1.33333rem;color:#333}._sticky_2r9wh_1 ._dropdownMenuSub_2r9wh_45 .van-cell:after{display:none}._sticky_2r9wh_1 ._dropdownMenuSub_2r9wh_45 .van-cell.van-dropdown-item__option--active{background-color:rgba(254,36,81,.08);border-radius:.26667rem;color:#fe2451}._sticky_2r9wh_1 ._dropdownMenuSub_2r9wh_45 .van-cell.van-dropdown-item__option--active .van-cell__title{font-weight:600}._sticky_2r9wh_1 ._dropdownMenuSub_2r9wh_45 .van-cell .van-cell__title{font-weight:400;font-size:.42667rem;text-align:center}._sticky_2r9wh_1 ._dropdownMenuSub_2r9wh_45 .van-cell .van-cell__value{display:none}._sticky_2r9wh_1 ._titleActive_2r9wh_74 .van-ellipsis{max-width:1.65333rem}._search_2r9wh_77 .van-search{padding-top:.10667rem}._bgImg_2r9wh_80{position:fixed;top:0;left:0;width:100%;height:9.22667rem;z-index:-1}._alumnList_2r9wh_88{min-height:40vh}._alumnList_2r9wh_88 .van-list__loading{display:none}._alumnList_2r9wh_88 ._courseItem_2r9wh_94{background:initial;border:initial;padding:0 .10667rem .53333rem}._alumnList_2r9wh_88 ._courseItem_2r9wh_94 .courseItem:nth-child(1){margin-top:.16rem!important}._alumnList_2r9wh_88 ._courseItem_2r9wh_94 .courseItem:nth-child(2){margin-top:.16rem!important}._alumnList_2r9wh_88 ._courseItem_2r9wh_94 .courseItem:nth-child(3){margin-top:.16rem!important}\n",document.head.appendChild(a),System.register(["./ResizeObserver.es-legacy.9ef5ac8c.js","./index-legacy.d0f09d75.js","./index-legacy.e9381954.js","./index-legacy.63f64e9b.js","./index-legacy.402479d8.js","./index-legacy.3c7372ae.js","./bg-legacy.93f4b758.js","./index-legacy.46228add.js","./index-legacy.22d11dc4.js","./use-id-legacy.4538a8e2.js","./use-tab-status-legacy.257600f9.js","./index-legacy.91eef022.js","./index-legacy.b5b73462.js"],(function(t){"use strict";var n,a,i,o,c,u,s,l,_,d,p,h,m,f,v,w,g,b,y,k;return{setters:[function(e){n=e.d,a=e.Q,i=e.P,o=e.S,c=e.U,u=e.V,s=e.j,l=e.f,_=e.n,d=e.C,p=e.F,h=e.y},function(e){m=e.D,f=e.a},function(){},function(e){v=e.L},function(e){w=e.C},function(e){g=e.T},function(e){b=e.b},function(e){y=e.S},function(e){k=e.C},function(){},function(){},function(){},function(){}],execute:function(){var I="_sticky_2r9wh_1",S="_dropdownMenuSub_2r9wh_45",L="_titleActive_2r9wh_74",x="_search_2r9wh_77",E="_bgImg_2r9wh_80",j="_alumnList_2r9wh_88",N="_courseItem_2r9wh_94";t("default",n({name:"lessonCourseware",setup:function(){var t,n=a(),A=i(),R=o({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,a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,h.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===(a=r.data)||void 0===a?void 0:a.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,a;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,h.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:a=(R.subjectList||[]).concat((null===(n=r.data)||void 0===n?void 0:n.rows)||[]),R.subjectList=a,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:I},[s(g,null,{default:function(){return[s(w,{hideHeader:!1,background:"transparent",isFixed:!1,border:!1,title:"云课堂",color:"#131415"},null),s(y,{class:x,onSearch:z,type:"tenant",placeholder:"请输入教材关键词",background:"transparent",inputBackground:"transparent"},{left:function(){return O.value.length>1&&s(m,{class:S},{default:function(){return[s(f,{titleClass:L,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:b},null)]),s("div",{class:j},[s(v,{loading:T.value,finished:C.value,"finished-text":"",onLoad:B,error:M.value,immediateCheck:!1},{default:function(){return[R.subjectList.length?s(k,{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)]}})])])}}}))}}}))}();
|