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 a=null!=arguments[r]?arguments[r]:{};r%2?e(Object(a),!0).forEach((function(e){n(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,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 a(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,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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 o,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,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw o}}}}function o(e,t,n,r,a,o,i){try{var s=e[o](i),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(r,a)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function s(e){o(i,r,a,s,c,"next",e)}function c(e){o(i,r,a,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,a,o=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(c){s=!0,a=c}finally{try{i||null==n.return||n.return()}finally{if(s)throw a}}return o}(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.27d95cd8.js","./base-legacy.54a6af10.js","./state-legacy.df5f151c.js","./vip-legacy.7b5f9a29.js","./music-legacy.996cf9b7.js","./index-legacy.eaaab519.js"],(function(e){"use strict";var n,o,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,V,M,U,T,z,N,F,Y,E,D,X,q,W,H,J,Q,K,G,$,Z,ee,te,ne,re,ae,oe,ie;return{setters:[function(e){n=e.a,o=e.h,c=e.F,l=e.l,u=e.S,d=e.c,p=e.L,_=e.C,v=e.N},function(e){f=e.d,h=e.p,m=e.M,g=e.ah,x=e.W,b=e.av,y=e.al,j=e.c,w=e.N,A=e.L,O=e.ae,S=e.aB,I=e.$,k=e.z,C=e.V,P=e.aq,R=e.as,B=e.P,L=e.T,V=e.I,M=e.aZ,U=e.X,T=e.O,z=e.Q,N=e.a0,F=e.a1,Y=e.aC,E=e.D,D=e.a,X=e.r,q=e.s,W=e.i,H=e.A,J=e.C,Q=e.b,K=e.t,G=e.b5,$=e.f,Z=e.aH,ee=e.q},function(e){te=e.g,ne=e.s},function(e){re=e.C,ae=e.V},function(e){oe=e.M},function(e){ie=e.E}],execute:function(){var se=s(w("dropdown-menu"),2),ce=se[0],le=se[1],ue=Symbol(ce),de=f({name:ce,props:{overlay:A,zIndex:[Number,String],activeColor:String,closeOnClickOutside:A,closeOnClickOverlay:A,duration:{type:[Number,String],default:.2},direction:{type:String,default:"down"}},setup:function(e,t){var n=t.slots,r=h(),a=h(),o=h(0),i=m(ue),s=i.children,c=i.linkChildren,l=g(r),u=x((function(){return s.some((function(e){return e.state.showWrapper}))})),d=x((function(){if(u.value&&O(e.zIndex))return{zIndex:+e.zIndex+1}})),p=function(){if(a.value){var t=S(a);"down"===e.direction?o.value=t.bottom:o.value=window.innerHeight-t.top}},_=function(t,n){var r=t.state.showPopup,a=t.disabled,o=t.titleClass;return j("div",{role:"button",tabindex:a?-1:0,class:le("item",{disabled:a}),onClick:function(){a||function(e){s.forEach((function(t,n){n===e?(p(),t.toggle()):t.state.showPopup&&t.toggle(!1,{immediate:!0})}))}(n)}},[j("span",{class:[le("title",{down:r===("down"===e.direction),active:r}),o],style:{color:r?e.activeColor:""}},[j("div",{class:"van-ellipsis"},[t.renderTitle()])])])};return c({props:e,offset:o}),b(r,(function(){e.closeOnClickOutside&&s.forEach((function(e){e.toggle(!1)}))})),y("scroll",(function(){u.value&&p()}),{target:l}),function(){return j("div",{ref:r,class:le()},[j("div",{ref:a,style:d.value,class:le("bar",{opened:u.value})},[s.map(_)]),null==n.default?void 0:n.default()])}}}),pe=s(w("dropdown-item"),2),_e=pe[0],ve=pe[1],fe=f({name:_e,props:{title:String,disabled:Boolean,teleport:[String,Object],lazyRender:A,modelValue:I,titleClass:I,options:{type:Array,default:function(){return[]}}},emits:["open","opened","close","closed","change","update:modelValue"],setup:function(e,t){var r=t.emit,a=t.slots,o=k({showPopup:!1,transition:!0,showWrapper:!1}),i=C(ue).parent;if(i){var s=function(e){return function(){return r(e)}},c=s("open"),l=s("close"),u=s("opened"),d=function(){o.showWrapper=!1,r("closed")},p=function(t){e.teleport&&t.stopPropagation()},_=function(t){var a=i.props.activeColor,s=t.value===e.modelValue;return j(n,{clickable:!0,key:t.value,icon:t.icon,title:t.text,class:ve("option",{active:s}),style:{color:s?a:""},onClick:function(){o.showPopup=!1,t.value!==e.modelValue&&(r("update:modelValue",t.value),r("change",t.value))}},{default:function(){return[s&&j(V,{class:ve("icon"),color:a,name:"success"},null)]}})},v=function(){var t=i.offset,n=i.props,r=n.zIndex,s=n.overlay,v=n.duration,f=n.direction,h=n.closeOnClickOverlay,m=M(r);return"down"===f?m.top=t.value+"px":m.bottom=t.value+"px",P(j("div",{style:m,class:ve([f]),onClick:p},[j(B,{show:o.showPopup,"onUpdate:show":function(e){return o.showPopup=e},class:ve("content"),overlay:s,position:"down"===f?"top":"bottom",duration:o.transition?v:0,lazyRender:e.lazyRender,overlayStyle:{position:"absolute"},closeOnClickOverlay:h,onOpen:c,onClose:l,onOpened:u,onClosed:d},{default:function(){return[e.options.map(_),null==a.default?void 0:a.default()]}})]),[[R,o.showWrapper]])};return U({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(a.title)return a.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?j(L,{to:e.teleport},{default:function(){return[v()]}}):v()}}}}),he=T(fe),me=T(de),ge=s(w("search"),3),xe=ge[0],be=ge[1],ye=ge[2],je=f({name:xe,props:z({},o,{label:String,clearable:A,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,a=t.attrs,i=h(),s=function(){r.action||(n("update:modelValue",""),n("cancel"))},l=function(t){13===t.keyCode&&(Y(t),n("search",e.modelValue))},u=function(){if(r.label||e.label)return j("div",{class:be("label")},[r.label?r.label():e.label])},d=function(){if(e.showAction){var t=e.actionText||ye("cancel");return j("div",{class:be("action"),role:"button",tabindex:0,onClick:s},[r.action?r.action():t])}},p=Object.keys(o);return U({focus:function(){var e;return null==(e=i.value)?void 0:e.focus()},blur:function(){var e;return null==(e=i.value)?void 0:e.blur()}}),function(){return j("div",{class:be({"show-action":e.showAction}),style:{background:e.background}},[null==r.left?void 0:r.left(),j("div",{class:be("content",e.shape)},[u(),(t=z({},a,F(e,p)),j(c,N({ref:i,type:"search",border:!1,onKeypress:l},t,{"onUpdate:modelValue":function(e){return n("update:modelValue",e)}}),F(r,["left-icon","right-icon"])))]),d()]);var t}}}),we=T(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=ee.parse(location.search);e("default",f({name:"music-list",data:function(){return{show:!0,isFirstLoad:!1,userinfo:null,isApp:E().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 D(["_trackEvent","云教练","切换页面","列表页面"]),n=te())Object.prototype.hasOwnProperty.call(n,r)&&(ne[r]=n[r]);return ne.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,o,i,s,c,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{t=sessionStorage.getItem("musicScoreList"),n=t?JSON.parse(t):[],o=[],i=a(n);try{for(i.s();!(s=i.n()).done;)(c=s.value).id==ne.parentId&&(o=c.sysMusicScoreCategoriesList||[])}catch(d){i.e(d)}finally{i.f()}ne.levelOptions=r(o.map((function(e){return{value:e.id,text:e.name,childs:e.sysMusicScoreCategoriesList}}))),ne.levelOptions.length&&!ne.levelId&&(ne.levelId=ne.levelOptions[0].value,(u=l.exports.find(ne.levelOptions,{value:ne.levelId}))&&(u.childs?(console.log(u,"showInfo"),ne.typeOptions=[{value:0,text:"全部"}].concat(r(u.childs.map((function(e){return{value:e.id,text:e.name}}))))):ne.typeOptions=null))}catch(p){}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,q.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 a,o,i,s,c,l,u;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(ne.error=!1,!ne.loading){n.next=3;break}return n.abrupt("return");case 3:if(ne.loading=!0,console.log(q.subjectOptions),"/api-student"===W()){n.next=8;break}return n.next=8,e.FetchCats();case 8:return"/api-student"===W()&&(q.subjectOptions=r(q.extSubjectIds.filter((function(e){return!!e})).map((function(e){return{value:e.id,text:e.name}})))),a=q.subjectOptions.map((function(e){return e.value})).filter((function(e){return e>0})),console.log(a,q.subjectId),a.includes(5)&&a.push(6),a.includes(q.subjectId)||(q.subjectId=0),console.log(q.subjectOptions),n.prev=14,ne.subjectId=q.subjectId,o=ne.params,i=e.$route.params.id,s=(0===(ne.levelId||ne.typeId)?void 0:ne.typeId||ne.levelId)||i,c=0===q.subjectId?void 0:q.subjectId,W(),n.next=23,X.get("/sysMusicScore/queryPage2",{params:t(t({},o),{},{clientType:"SMART_PRACTICE",subjectId:c,categoriesId:s,search:ne.search})});case 23:if(l=n.sent,u=l.data,!(ne.list.length>0&&1==u.pageNo)){n.next=27;break}return n.abrupt("return");case 27:ne.list=[].concat(r(ne.list),r(u.rows)),o.page>=Math.ceil(u.total/o.rows)&&(ne.finished=!0),ne.params.page=u.nextPage,ne.list.length<=0&&(e.show=!1),n.next=36;break;case 33:n.prev=33,n.t0=n.catch(14),ne.error=!0;case 36:ne.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,o,i,s,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=[],H({type:"loading",overlay:!0}),t.prev=2,t.next=5,J.get(e,{mode:"cors"});case 5:r=t.sent,o=(new DOMParser).parseFromString(r,"text/xml"),i=a(o.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()}H.clear(),t.next=16;break;case 12:t.prev=12,t.t0=t.catch(2),H.clear(),H("读取分谱信息失败,请重试");case 16:return t.abrupt("return",n);case 17:case"end":return t.stop()}}),t,null,[[2,12]])})))()},openDetail:function(){var e,n,r,a=this.activeRow,o=null===(e=a.rankIds)||void 0===e?void 0:e.split(","),i=String(null===(n=q.user)||void 0===n||null===(r=n.student)||void 0===r?void 0:r.memberRankSettingId);if(a.rankIds&&q.user&&!o.includes(i)&&"/api-student"===W())Q.vipShow=!0;else if("select"!==Oe.mode){var s="/detail/"+a.id+"?part-index="+this.selectedPartIndex;if(this.isApp)K({api:"openAccompanyWebView",content:{url:location.origin+"/accompany/#"+s,orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0}});else{var c=G("#"+s,t({},this.$route.query));location.replace(c)}}else this.isApp&&K({api:"onAccompanySelectResult",content:{id:a.id,name:a.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(),K({api:"recordHomeworkVideo",content:t(t({},n),{},{partIndex:this.selectedPartIndex})})},openRecordingWebview:function(e,t){e.stopPropagation(),K({api:"recordHomeworkVideo",content:{id:t.id,partIndex:this.selectedPartIndex}})},onSearch:function(){ne.params.page=1,ne.list=[],this.show=!0,ne.finished=!1,this.FetchList()},subjectChange:function(e){q.subjectId=e,this.onSearch()},onClickLeft:function(){this.$router.replace("/")}},render:function(){var e,t=this;return j("div",{class:Ae.accompany},[j(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[j(re,{partNames:t.partNames,onSelectedPartName:t.onSelectedPartName},null)]}}),j(u,null,{default:function(){return[ne.typeOptions||ne.levelOptions&&ne.levelOptions.length>0?j(me,{activeColor:"#01C1B5"},{default:function(){return[ne.levelOptions&&ne.levelOptions.length>0?j(he,{modelValue:ne.levelId,options:ne.levelOptions,onChange:function(e){ne.levelId=e,ne.typeId=0;var n=l.exports.find(ne.levelOptions,{value:e});n&&(n.childs?ne.typeOptions=[{value:0,text:"全部"}].concat(r(n.childs.map((function(e){return{value:e.id,text:e.name}})))):ne.typeOptions=null),t.onSearch()}},null):null,ne.typeOptions?j(he,{class:Ae.searchSelect,"get-container":"#app",modelValue:ne.typeId,options:ne.typeOptions,onChange:function(e){ne.typeId=e,t.onSearch()}},null):null]}}):null,j(we,{class:[Ae.search],placeholder:"请输入搜索关键词",modelValue:ne.search,background:"#F8F9FC","onUpdate:model-value":function(e){return ne.search=e},showAction:!0,onSearch:t.onSearch},{"left-icon":function(){return j("img",{class:Ae.iconSearch,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAqCAMAAAD26OlUAAAAdVBMVEUAAAAAwrYAwbQAw7QBwrUBwbYBwbYAwrYBwbUCwrYBwrYAwrcBwrYBwbUBwbUBwrUCwrUAw7cAwbgAwrcAwbUAxLsBwbUAwrYAwrUAwLQBwbQBwbUBwrYCwrYCwrYAw7YAwLUAwbUAv7gAv7cBwrYAysoBwbV4Ka+yAAAAJnRSTlMAQhMG8fv3guaojTnr3s/ImmtQRi0P1Xp2KPO+uKCTYllWJB65BHQbZOYAAAEHSURBVDjL7ZLLEoIwDEUphSIg74fiW9H+/yeaOIUpDWXYuOOu4M5pmpvG2fQnuc0KiN0SX0qRBvUylslR4cvOBVLXqbRxoSL2nvooluqFFYc4j18PfjXbnwTt4uH3LrC2OwNmyPXaQR+MyFIw1p0jGIKO9Ib9TRyegPUkILoVTZcTEDvitJszeV/MaHgdeK0JNmB6hleDl5KrcWzG1EqwLgRMwX1MrVwNkkbMpm3jkzMC1hJ0150rPhWf3x2hFTjY9ud1wn05cnUv1qM3q5CoJGBdXeZqJb14jix8achGVnudaSM76UZiwHYFxzwqOFXzzM9teokYH5P3jkXG8r6dVerYx9m0Rl+8riWqpDNy7wAAAABJRU5ErkJggg=="},null)},label:function(){return"/api-student"==W()&&q.subjectOptions&&1===q.subjectOptions.length?null:j(me,{activeColor:"#01C1B5",onClick:function(e){e.preventDefault()}},{default:function(){return[j(he,{class:Ae.searchSelect,"get-container":"#app",modelValue:q.subjectId,options:q.subjectOptions,onChange:function(e){q.subjectId=e,t.onSearch()}},null)]}})},action:function(){return j("span",{class:Ae.search_btn,onClick:t.onSearch},[$("搜索")])}})]}}),j("div",{class:d(Ae.accompanyList,Ae.song)},[this.show?j(p,{loading:ne.loading,finishedText:"加载完毕",error:ne.error,offset:100,finished:ne.finished,immediateCheck:!1,onLoad:this.FetchList},{default:function(){return[j(_,null,(r=e=ne.list.map((function(e){return j(n,{size:"large",onClick:function(){return t.toDetail(e)}},{icon:function(){return j("div",{class:Ae["icon-status"]},[j(V,{class:Ae.iconMusic,name:oe},null),e.rankIds?j("div",{class:Ae.icon},[j("img",{src:ae},null)]):null])},title:function(){return j(v,{background:"none",color:"#444",style:{paddingLeft:(e.rankIds?"4PX":"15PX")+"!important"},text:e.name,key:"notactive"},null)}})})),"function"==typeof r||"[object Object]"===Object.prototype.toString.call(r)&&!Z(r)?e:{default:function(){return[e]}}))];var r},error:function(){return j("span",{onClick:t.FetchList},[$("加载失败,请点击重试")])}}):j(ie,{description:"暂无数据"},null)])])}}))}}}))}();
|