index-legacy.578c0bed.js 23 KB

1
  1. !function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?e(Object(o),!0).forEach((function(e){n(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(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 o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw a}}}}function a(e,t,n,r,o,a,i){try{var s=e[a](i),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(r,o)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))}}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(c){s=!0,o=c}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}(e,t)||c(e,t)||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 c(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(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}var u=document.createElement("style");u.innerHTML="._accompany_jdvsx_1{min-height:100vh;overflow:hidden}._accompany_jdvsx_1 .van-sticky--fixed{box-shadow:.13333rem .13333rem .13333rem rgba(0,0,0,.03)}._accompany_jdvsx_1 .van-dropdown-menu__bar{box-shadow:none;background-color:#f8f9fc;height:auto;padding:.4rem 0 .13333rem}._accompany_jdvsx_1 [class*=van-hairline]:after{display:none}._accompany_jdvsx_1 /deep/ ._van-tab_jdvsx_17{color:gray}._accompany_jdvsx_1 /deep/ ._van-tab--active_jdvsx_20 span{color:#01c1b5}._accompany_jdvsx_1 ._playIcon_jdvsx_23{font-size:1.73333rem;display:flex;align-items:center}._accompany_jdvsx_1 ._playIcon_jdvsx_23 .van-badge__wrapper{margin:auto}._accompany_jdvsx_1 .van-notice-bar{height:100%}._extra_jdvsx_34{display:flex!important;align-items:center}._extra_jdvsx_34 img{width:2rem;height:auto}._song_jdvsx_42 .van-cell{height:1.86667rem}._song_jdvsx_42 /deep/ ._van-cell_jdvsx_42._playing_jdvsx_45{color:#ff3838;font-weight:500}._song_jdvsx_42 /deep/ ._van-cell_jdvsx_42._playing_jdvsx_45 ._iconMusic_jdvsx_49 img{animation:_spin_jdvsx_1 2s linear infinite;animation-play-state:paused}._song_jdvsx_42 /deep/ ._van-cell_jdvsx_42._playing_jdvsx_45._active_jdvsx_53 ._iconMusic_jdvsx_49 img{animation-play-state:running}._vipTip_jdvsx_56{text-align:center;padding:.32rem 0;font-size:.37333rem;color:gray;background-color:#f3f4f8}._vipTip_jdvsx_56 ._strong_jdvsx_63{color:#ff4f4f;font-weight:500}._search_jdvsx_67{background-color:#f8f9fc;padding-right:.21333rem}._search_jdvsx_67 /deep/ ._van-field__left-icon_jdvsx_71 i{font-size:.48rem;color:#999}._search_jdvsx_67 /deep/ ._van-search__content_jdvsx_75{background-color:#f3f4f8}._search_jdvsx_67 /deep/ ._van-search__content_jdvsx_75 ._van-cell_jdvsx_42{background-color:#fff!important}._search_jdvsx_67 /deep/ ._van-search__action_jdvsx_81{font-size:.4rem;color:#333}._search_jdvsx_67 .van-search__content{padding-left:0}._search_jdvsx_67 .van-search__label{display:flex;align-items:center;padding-right:.26667rem}._search_jdvsx_67 .van-search__label .van-cell{padding:.26667rem .42667rem}._search_jdvsx_67 .van-dropdown-menu__title{font-size:.32rem}._search_jdvsx_67 .van-dropdown-menu{height:100%}._search_jdvsx_67 .van-dropdown-menu__bar{height:100%;background-color:transparent;padding:0}._search_jdvsx_67 .van-search{flex:1;background:#F8F9FC;margin:.4rem 0;border-radius:50%;overflow:hidden}._search_jdvsx_67 .van-search .van-cell{display:flex;justify-content:center;align-items:center}._search_jdvsx_67 .van-search .van-field__control{font-size:.42667rem}._search_jdvsx_67 .van-cell__value{height:.64rem!important}._search_jdvsx_67 .van-search__action{color:#333;background-color:#fff;border-radius:0 .53333rem .53333rem 0}._search_jdvsx_67 .van-search__content{background-color:#fff!important;border-radius:.53333rem 0 0 .53333rem;overflow:hidden}._search_jdvsx_67 .van-field__left-icon{margin-top:.02667rem;height:.56rem;margin-left:.21333rem}._search_jdvsx_67 .van-field__left-icon{color:#2dc7aa}._search_jdvsx_67 ._search_btn_jdvsx_143{background:#01C1B5;font-size:.37333rem;color:#fff;padding:.10667rem .24rem;border-radius:.4rem}/deep/ ._van-tab_jdvsx_17{padding:0 .26667rem}._item_jdvsx_153{padding:.37333rem .48rem}._item_jdvsx_153 ._title_jdvsx_156{font-size:.42667rem}/deep/ ._van-cell_jdvsx_42{justify-content:center;align-items:center}._iconSearch_jdvsx_163{width:.53333rem;height:.53333rem}._iconSearch_jdvsx_163 /deep/ ._van-icon__image_jdvsx_167{margin:auto;vertical-align:middle}._iconMusic_jdvsx_49 /deep/ ._van-icon__image_jdvsx_167{width:.08rem;height:.08rem;margin:auto;vertical-align:middle}._icon-status_jdvsx_177{position:relative;font-size:.96rem;display:flex}._icon-status_jdvsx_177 .van-badge__wrapper{margin:auto}._audio-container_jdvsx_185{position:fixed;bottom:0;left:0;width:100%;box-shadow:0 .13333rem .29333rem .05333rem #ccc;visibility:visible;opacity:1}._audio-container_jdvsx_185._hidden_jdvsx_194{opacity:0;visibility:hidden}._searchSelect_jdvsx_198 .van-dropdown-menu__bar{height:auto}._tags_jdvsx_201 .van-dropdown-item__content{display:flex;box-sizing:border-box;padding:.53333rem;padding-top:0;flex-wrap:wrap}._tags_jdvsx_201 .van-dropdown-item__content>span{box-sizing:border-box;display:inline-block;width:30%;height:.96rem;line-height:.96rem;margin-top:.26667rem;border-radius:.05333rem;overflow:hidden;text-overflow:ellipsis;white-space:pre}._tags_jdvsx_201 .van-dropdown-item__content>span:not(:nth-child(3n)){margin-right:5%}._icon_jdvsx_49{display:flex;align-items:center;margin-left:15PX}._icon_jdvsx_49 img{width:40PX;margin-top:-2PX}._notice_jdvsx_232{padding-left:4PX!important}\n",document.head.appendChild(u),System.register(["./index-legacy.d454a359.js","./base-legacy.dce4003b.js","./state-legacy.27aea430.js","./vip-legacy.b295e437.js","./music-legacy.996cf9b7.js","./index-legacy.f05fa74e.js"],(function(e){"use strict";var n,a,c,l,u,d,p,_,v,f,h,m,g,x,b,y,j,w,A,O,S,I,k,C,P,R,B,L,M,V,T,U,z,N,F,E,Y,D,q,X,H,W,J,G,K,Q,$,Z,ee,te,ne,re,oe,ae,ie;return{setters:[function(e){n=e.a$,a=e.b0,c=e.b1,l=e.b2,u=e.b3,d=e.a_,p=e.aq,_=e.P,v=e.a3,f=e.b4,h=e.av,m=e.an,g=e.b5,x=e.r,b=e.T,y=e.e,j=e.s,w=e.p,A=e.b6,O=e.k,S=e.aT,I=e.a2,k=e.N},function(e){C=e.d,P=e.i,R=e.p,B=e.b,L=e.q,M=e.H,V=e.E,T=e.G,U=e.I,z=e.h,N=e.a0,F=e.s,E=e.M,Y=e.a2,D=e.j,q=e.N,X=e.C},function(e){H=e.g,W=e.s},function(e){J=e.C,G=e.V},function(e){K=e.M},function(e){Q=e.c,$=e.t,Z=e.b,ee=e.a,te=e.g,ne=e.I,re=e.w,oe=e.e,ae=e.p,ie=e.E}],execute:function(){var se=s(Q("dropdown-menu"),2),ce=se[0],le=se[1],ue=Symbol(ce),de=C({name:ce,props:{overlay:$,zIndex:[Number,String],activeColor:String,closeOnClickOutside:$,closeOnClickOverlay:$,duration:{type:[Number,String],default:.2},direction:{type:String,default:"down"}},setup:function(e,t){var r=t.slots,o=P(),i=P(),s=P(0),d=n(ue),p=d.children,_=d.linkChildren,v=a(o),f=R((function(){return p.some((function(e){return e.state.showWrapper}))})),h=R((function(){if(f.value&&Z(e.zIndex))return{zIndex:+e.zIndex+1}})),m=function(){if(i.value){var t=u(i);"down"===e.direction?s.value=t.bottom:s.value=window.innerHeight-t.top}},g=function(t,n){var r=t.state.showPopup,o=t.disabled,a=t.titleClass;return B("div",{role:"button",tabindex:o?-1:0,class:le("item",{disabled:o}),onClick:function(){o||function(e){p.forEach((function(t,n){n===e?(m(),t.toggle()):t.state.showPopup&&t.toggle(!1,{immediate:!0})}))}(n)}},[B("span",{class:[le("title",{down:r===("down"===e.direction),active:r}),a],style:{color:r?e.activeColor:""}},[B("div",{class:"van-ellipsis"},[t.renderTitle()])])])};return _({props:e,offset:s}),c(o,(function(){e.closeOnClickOutside&&p.forEach((function(e){e.toggle(!1)}))})),l("scroll",(function(){f.value&&m()}),{target:v}),function(){return B("div",{ref:o,class:le()},[B("div",{ref:i,style:h.value,class:le("bar",{opened:f.value})},[p.map(g)]),null==r.default?void 0:r.default()])}}}),pe=s(Q("dropdown-item"),2),_e=pe[0],ve=pe[1],fe=C({name:_e,props:{title:String,disabled:Boolean,teleport:[String,Object],lazyRender:$,modelValue:ee,titleClass:ee,options:{type:Array,default:function(){return[]}}},emits:["open","opened","close","closed","change","update:modelValue"],setup:function(e,t){var n=t.emit,r=t.slots,o=L({showPopup:!1,transition:!0,showWrapper:!1}),a=d(ue).parent;if(a){var i=function(e){return function(){return n(e)}},s=i("open"),c=i("close"),l=i("opened"),u=function(){o.showWrapper=!1,n("closed")},f=function(t){e.teleport&&t.stopPropagation()},h=function(t){var r=a.props.activeColor,i=t.value===e.modelValue;return B(v,{clickable:!0,key:t.value,icon:t.icon,title:t.text,class:ve("option",{active:i}),style:{color:i?r:""},onClick:function(){o.showPopup=!1,t.value!==e.modelValue&&(n("update:modelValue",t.value),n("change",t.value))}},{default:function(){return[i&&B(ne,{class:ve("icon"),color:r,name:"success"},null)]}})},m=function(){var t=a.offset,n=a.props,i=n.zIndex,d=n.overlay,p=n.duration,v=n.direction,m=n.closeOnClickOverlay,g=te(i);return"down"===v?g.top=t.value+"px":g.bottom=t.value+"px",V(B("div",{style:g,class:ve([v]),onClick:f},[B(_,{show:o.showPopup,"onUpdate:show":function(e){return o.showPopup=e},class:ve("content"),overlay:d,position:"down"===v?"top":"bottom",duration:o.transition?p:0,lazyRender:e.lazyRender,overlayStyle:{position:"absolute"},closeOnClickOverlay:m,onOpen:s,onClose:c,onOpened:l,onClosed:u},{default:function(){return[e.options.map(h),null==r.default?void 0:r.default()]}})]),[[T,o.showWrapper]])};return p({state:o,toggle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!o.showPopup,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e!==o.showPopup&&(o.showPopup=e,o.transition=!t.immediate,e&&(o.showWrapper=!0))},renderTitle:function(){if(r.title)return r.title();if(e.title)return e.title;var t=e.options.find((function(t){return t.value===e.modelValue}));return t?t.text:""}}),function(){return e.teleport?B(M,{to:e.teleport},{default:function(){return[m()]}}):m()}}}}),he=re(fe),me=re(de),ge=s(Q("search"),3),xe=ge[0],be=ge[1],ye=ge[2],je=C({name:xe,props:oe({},f,{label:String,clearable:$,actionText:String,background:String,showAction:Boolean,shape:{type:String,default:"square"},leftIcon:{type:String,default:"search"}}),emits:["search","cancel","update:modelValue"],setup:function(e,t){var n=t.emit,r=t.slots,o=t.attrs,a=P(),i=function(){r.action||(n("update:modelValue",""),n("cancel"))},s=function(t){13===t.keyCode&&(m(t),n("search",e.modelValue))},c=function(){if(r.label||e.label)return B("div",{class:be("label")},[r.label?r.label():e.label])},l=function(){if(e.showAction){var t=e.actionText||ye("cancel");return B("div",{class:be("action"),role:"button",tabindex:0,onClick:i},[r.action?r.action():t])}},u=Object.keys(f);return p({focus:function(){var e;return null==(e=a.value)?void 0:e.focus()},blur:function(){var e;return null==(e=a.value)?void 0:e.blur()}}),function(){return B("div",{class:be({"show-action":e.showAction}),style:{background:e.background}},[null==r.left?void 0:r.left(),B("div",{class:be("content",e.shape)},[c(),(t=oe({},o,ae(e,u)),B(h,U({ref:a,type:"search",border:!1,onKeypress:s},t,{"onUpdate:modelValue":function(e){return n("update:modelValue",e)}}),ae(r,["left-icon","right-icon"])))]),l()]);var t}}}),we=re(je),Ae={accompany:"_accompany_jdvsx_1","van-tab":"_van-tab_jdvsx_17","van-tab--active":"_van-tab--active_jdvsx_20",playIcon:"_playIcon_jdvsx_23",extra:"_extra_jdvsx_34",song:"_song_jdvsx_42","van-cell":"_van-cell_jdvsx_42",playing:"_playing_jdvsx_45",iconMusic:"_iconMusic_jdvsx_49",spin:"_spin_jdvsx_1",active:"_active_jdvsx_53",vipTip:"_vipTip_jdvsx_56",strong:"_strong_jdvsx_63",search:"_search_jdvsx_67","van-field__left-icon":"_van-field__left-icon_jdvsx_71","van-search__content":"_van-search__content_jdvsx_75","van-search__action":"_van-search__action_jdvsx_81",search_btn:"_search_btn_jdvsx_143",item:"_item_jdvsx_153",title:"_title_jdvsx_156",iconSearch:"_iconSearch_jdvsx_163","van-icon__image":"_van-icon__image_jdvsx_167","icon-status":"_icon-status_jdvsx_177","audio-container":"_audio-container_jdvsx_185",hidden:"_hidden_jdvsx_194",searchSelect:"_searchSelect_jdvsx_198",tags:"_tags_jdvsx_201",icon:"_icon_jdvsx_49",notice:"_notice_jdvsx_232"},Oe=q.parse(location.search);e("default",C({name:"music-list",data:function(){return{show:!0,isFirstLoad:!1,userinfo:null,isApp:z().isApp,tempLevelId:0,chooseShow:!1,partNames:[],selectedPartName:"",selectedPartIndex:0,activeRow:null}},mounted:function(){var e=this;return i(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.initList();case 2:case"end":return t.stop()}}),t)})))()},methods:{initList:function(){var e=this;return i(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(r in N(["_trackEvent","云教练","切换页面","列表页面"]),n=H())Object.prototype.hasOwnProperty.call(n,r)&&(W[r]=n[r]);return W.parentId=e.$route.params.id||1,t.next=6,e.FetchLevel();case 6:return t.next=8,e.FetchList();case 8:case"end":return t.stop()}}),t)})))()},FetchLevel:function(){return i(regeneratorRuntime.mark((function e(){var t,n,a,i,s,c,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{t=sessionStorage.getItem("musicScoreList"),n=t?JSON.parse(t):[],a=[],i=o(n);try{for(i.s();!(s=i.n()).done;)(c=s.value).id==W.parentId&&(a=c.sysMusicScoreCategoriesList||[])}catch(u){i.e(u)}finally{i.f()}W.levelOptions=r(a.map((function(e){return{value:e.id,text:e.name,childs:e.sysMusicScoreCategoriesList}}))),W.levelOptions.length&&!W.levelId&&(W.levelId=W.levelOptions[0].value,(l=g.exports.find(W.levelOptions,{value:W.levelId}))&&(l.childs?(console.log(l,"showInfo"),W.typeOptions=[{value:0,text:"全部"}].concat(r(l.childs.map((function(e){return{value:e.id,text:e.name}}))))):W.typeOptions=null))}catch(d){}case 1:case"end":return e.stop()}}),e)})))()},FetchCats:function(){var e=this;return i(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,x.get("/sysMusicScoreAccompaniment/querySubjectIds",{params:{categoriesId:e.$route.params.id||1}});case 3:n=t.sent,F.subjectOptions=[{value:0,text:"全部声部"}].concat(r(n.data.filter((function(e){return!!e})).map((function(e){return{value:e.id,text:e.name}})))),t.next=9;break;case 7:t.prev=7,t.t0=t.catch(0);case 9:case"end":return t.stop()}}),t,null,[[0,7]])})))()},FetchList:function(){var e=this;return i(regeneratorRuntime.mark((function n(){var o,a,i,s,c,l,u;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(W.error=!1,!W.loading){n.next=3;break}return n.abrupt("return");case 3:if(W.loading=!0,console.log(F.subjectOptions),"/api-student"===E()){n.next=8;break}return n.next=8,e.FetchCats();case 8:return"/api-student"===E()&&(F.subjectOptions=r(F.extSubjectIds.filter((function(e){return!!e})).map((function(e){return{value:e.id,text:e.name}})))),o=F.subjectOptions.map((function(e){return e.value})).filter((function(e){return e>0})),console.log(o,F.subjectId),o.includes(5)&&o.push(6),o.includes(F.subjectId)||(F.subjectId=0),console.log(F.subjectOptions),n.prev=14,W.subjectId=F.subjectId,a=W.params,i=e.$route.params.id,s=(0===(W.levelId||W.typeId)?void 0:W.typeId||W.levelId)||i,c=0===F.subjectId?void 0:F.subjectId,E(),n.next=23,x.get("/sysMusicScore/queryPage2",{params:t(t({},a),{},{clientType:"SMART_PRACTICE",subjectId:c,categoriesId:s,search:W.search})});case 23:if(l=n.sent,u=l.data,!(W.list.length>0&&1==u.pageNo)){n.next=27;break}return n.abrupt("return");case 27:W.list=[].concat(r(W.list),r(u.rows)),a.page>=Math.ceil(u.total/a.rows)&&(W.finished=!0),W.params.page=u.nextPage,W.list.length<=0&&(e.show=!1),n.next=36;break;case 33:n.prev=33,n.t0=n.catch(14),W.error=!0;case 36:W.loading=!1;case 37:case"end":return n.stop()}}),n,null,[[14,33]])})))()},getPartNames:function(e){return i(regeneratorRuntime.mark((function t(){var n,r,a,i,s,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=[],b({type:"loading",overlay:!0}),t.prev=2,t.next=5,y.get(e,{mode:"cors"});case 5:r=t.sent,a=(new DOMParser).parseFromString(r,"text/xml"),i=o(a.getElementsByTagName("part-name"));try{for(i.s();!(s=i.n()).done;)(c=s.value).textContent&&n.push(c.textContent)}catch(l){i.e(l)}finally{i.f()}b.clear(),t.next=16;break;case 12:t.prev=12,t.t0=t.catch(2),b.clear(),b("读取分谱信息失败,请重试");case 16:return t.abrupt("return",n);case 17:case"end":return t.stop()}}),t,null,[[2,12]])})))()},openDetail:function(){var e,n,r,o=this.activeRow,a=null===(e=o.rankIds)||void 0===e?void 0:e.split(","),i=String(null===(n=F.user)||void 0===n||null===(r=n.student)||void 0===r?void 0:r.memberRankSettingId);if(o.rankIds&&F.user&&!a.includes(i)&&"/api-student"===E())j.vipShow=!0;else if("select"!==Oe.mode){var s="/detail/"+o.id+"?part-index="+this.selectedPartIndex;if(this.isApp)w({api:"openAccompanyWebView",content:{url:location.origin+"/accompany/#"+s,orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0}});else{var c=Y("#"+s,t({},this.$route.query));location.replace(c)}}else this.isApp&&w({api:"onAccompanySelectResult",content:{id:o.id,name:o.name,partIndex:this.selectedPartIndex}})},toDetail:function(e){var t=this;return i(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.activeRow=e,t.selectedPartName="",t.selectedPartIndex=0,n.next=5,t.getPartNames(e.xmlUrl);case 5:r=n.sent,t.partNames=r,r.length>1?t.chooseShow=!0:(t.selectedPartName=r[0],t.openDetail());case 8:case"end":return n.stop()}}),n)})))()},onSelectedPartName:function(e){this.selectedPartIndex=e,this.chooseShow=!1,this.openDetail()},onPayVideo:function(e,n){e.stopPropagation(),w({api:"recordHomeworkVideo",content:t(t({},n),{},{partIndex:this.selectedPartIndex})})},openRecordingWebview:function(e,t){e.stopPropagation(),w({api:"recordHomeworkVideo",content:{id:t.id,partIndex:this.selectedPartIndex}})},onSearch:function(){W.params.page=1,W.list=[],this.show=!0,W.finished=!1,this.FetchList()},subjectChange:function(e){F.subjectId=e,this.onSearch()},onClickLeft:function(){this.$router.replace("/")}},render:function(){var e,t=this;return B("div",{class:Ae.accompany},[B(_,{show:this.chooseShow,teleport:"body",closeable:!0,style:{borderRadius:"8px"},onClickOverlay:function(){return t.chooseShow=!1},onClickCloseIcon:function(){return t.chooseShow=!1}},{default:function(){return[B(J,{partNames:t.partNames,onSelectedPartName:t.onSelectedPartName},null)]}}),B(A,null,{default:function(){return[W.typeOptions||W.levelOptions&&W.levelOptions.length>0?B(me,{activeColor:"#01C1B5"},{default:function(){return[W.levelOptions&&W.levelOptions.length>0?B(he,{modelValue:W.levelId,options:W.levelOptions,onChange:function(e){W.levelId=e,W.typeId=0;var n=g.exports.find(W.levelOptions,{value:e});n&&(n.childs?W.typeOptions=[{value:0,text:"全部"}].concat(r(n.childs.map((function(e){return{value:e.id,text:e.name}})))):W.typeOptions=null),t.onSearch()}},null):null,W.typeOptions?B(he,{class:Ae.searchSelect,"get-container":"#app",modelValue:W.typeId,options:W.typeOptions,onChange:function(e){W.typeId=e,t.onSearch()}},null):null]}}):null,B(we,{class:[Ae.search],placeholder:"请输入搜索关键词",modelValue:W.search,background:"#F8F9FC","onUpdate:model-value":function(e){return W.search=e},showAction:!0,onSearch:t.onSearch},{"left-icon":function(){return B("img",{class:Ae.iconSearch,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAqCAMAAAD26OlUAAAAdVBMVEUAAAAAwrYAwbQAw7QBwrUBwbYBwbYAwrYBwbUCwrYBwrYAwrcBwrYBwbUBwbUBwrUCwrUAw7cAwbgAwrcAwbUAxLsBwbUAwrYAwrUAwLQBwbQBwbUBwrYCwrYCwrYAw7YAwLUAwbUAv7gAv7cBwrYAysoBwbV4Ka+yAAAAJnRSTlMAQhMG8fv3guaojTnr3s/ImmtQRi0P1Xp2KPO+uKCTYllWJB65BHQbZOYAAAEHSURBVDjL7ZLLEoIwDEUphSIg74fiW9H+/yeaOIUpDWXYuOOu4M5pmpvG2fQnuc0KiN0SX0qRBvUylslR4cvOBVLXqbRxoSL2nvooluqFFYc4j18PfjXbnwTt4uH3LrC2OwNmyPXaQR+MyFIw1p0jGIKO9Ib9TRyegPUkILoVTZcTEDvitJszeV/MaHgdeK0JNmB6hleDl5KrcWzG1EqwLgRMwX1MrVwNkkbMpm3jkzMC1hJ0150rPhWf3x2hFTjY9ud1wn05cnUv1qM3q5CoJGBdXeZqJb14jix8achGVnudaSM76UZiwHYFxzwqOFXzzM9teokYH5P3jkXG8r6dVerYx9m0Rl+8riWqpDNy7wAAAABJRU5ErkJggg=="},null)},label:function(){return"/api-student"==E()&&F.subjectOptions&&1===F.subjectOptions.length?null:B(me,{activeColor:"#01C1B5",onClick:function(e){e.preventDefault()}},{default:function(){return[B(he,{class:Ae.searchSelect,"get-container":"#app",modelValue:F.subjectId,options:F.subjectOptions,onChange:function(e){F.subjectId=e,t.onSearch()}},null)]}})},action:function(){return B("span",{class:Ae.search_btn,onClick:t.onSearch},[D("搜索")])}})]}}),B("div",{class:O(Ae.accompanyList,Ae.song)},[this.show?B(S,{loading:W.loading,finishedText:"加载完毕",error:W.error,offset:100,finished:W.finished,immediateCheck:!1,onLoad:this.FetchList},{default:function(){return[B(I,null,(n=e=W.list.map((function(e){return B(v,{size:"large",onClick:function(){return t.toDetail(e)}},{icon:function(){return B("div",{class:Ae["icon-status"]},[B(ne,{class:Ae.iconMusic,name:K},null),e.rankIds?B("div",{class:Ae.icon},[B("img",{src:G},null)]):null])},title:function(){return B(k,{background:"none",color:"#444",style:{paddingLeft:(e.rankIds?"4PX":"15PX")+"!important"},text:e.name,key:"notactive"},null)}})})),"function"==typeof n||"[object Object]"===Object.prototype.toString.call(n)&&!X(n)?e:{default:function(){return[e]}}))];var n},error:function(){return B("span",{onClick:t.FetchList},[D("加载失败,请点击重试")])}}):B(ie,{description:"暂无数据"},null)])])}}))}}}))}();