!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;re.length)&&(t=e.length);for(var n=0,r=new Array(t);ne)&&y((function(){a=e,i=t,T.offset=-i,T.duration=i/+r}))}}),l)};return s(k),u(k),m("pageshow",k),_({reset:k}),f((function(){return[e.text,e.scrollable]}),k),function(){var t,n,r=e.color,a=e.wrapable,i=e.background;return d(g("div",{role:"alert",class:$({wrapable:a}),style:{color:r,background:i}},[o["left-icon"]?o["left-icon"]():e.leftIcon?g(h,{class:$("left-icon"),name:e.leftIcon},null):void 0,(t=!1===e.scrollable&&!e.wrapable,n={transform:T.offset?"translateX(".concat(T.offset,"px)"):"",transitionDuration:"".concat(T.duration,"s")},g("div",{ref:w,role:"marquee",class:$("wrap")},[g("div",{ref:x,style:n,class:[$("content"),{"van-ellipsis":t}],onTransitionend:W},[o.default?o.default():e.text])])),I()]),[[p,T.show]])}}}),K=w(J),Q="_itemWrap_d4ln4_1",ee="_itemTop_d4ln4_7",te="_itemTopLeft_d4ln4_15",ne="_itemTopMain_d4ln4_15",re="_itemTopSub_d4ln4_23",oe="_itemTopRight_d4ln4_29",ae="_imgWrap_d4ln4_34",ie="_imgIcon_d4ln4_44",le="_itemBottom_d4ln4_49",ce="_itemBottomDot_d4ln4_57",se="_dotMain_d4ln4_60",ue="_dotSub_d4ln4_75",me={1:{img:"./assets/Image1.cbe96dac.png",tips:"你的演奏不太好,音准和完整性还需加强,再练一练吧~",mome:"敢于尝试"},2:{img:"./assets/Image2.0b12593f.png",tips:"你的演奏还不熟练,音准和完整性还需加强,加紧训练才能有好成绩哦~",mome:"还要加油哦~"},3:{img:"./assets/Image3.d7139ab6.png",tips:"你的演奏还不流畅,音准和节奏还需加强,科学的练习才能更完美哦~",mome:"突破自我"},4:{img:"./assets/Image4.4870f6bf.png",tips:"你的演奏还不错,继续加油吧,加强音准,离完美就差一步啦~",mome:"崭露头角"},5:{img:"./assets/Image5.150ad63a.png",tips:"你的演奏非常不错,音准的把握和节奏稍有瑕疵,完整性把握的很好~",mome:"你很棒"}},_e=i({props:["item"],name:"detail-item",setup:function(e){var t=function(e){if(!e&&"number"!=typeof e)return{};var t=1;return e>20&&e<=40?t=2:e>40&&e<=60?t=3:e>60&&e<=80?t=4:e>80&&(t=5),t};return function(){return g(T,null,[g("div",null,[g("div",{class:Q,onClick:function(t){var n;t.stopPropagation(),n=window.location.origin+"/orchestra-music-score/colexiu-report.html?id=".concat(e.item.id),D({api:"openWebView",content:{url:n,orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0}})}},[g("div",{class:ee},[g("div",{class:te},[g("p",{class:ne},[e.item.musicSheetName]),g("p",{class:re},[e.item.createTime])]),g("div",{class:oe},[g("div",{class:ae},[g("img",{src:me[t(e.item.score||0)].img,alt:""},null)]),g(h,{name:"arrow",class:ie},null)])]),g("div",{class:le},[g("div",{class:ce},[g("p",{class:se,style:{color:"#F67146"}},[e.item.score||0,g("span",null,[x("分")])," "]),g("p",{class:ue},[x(" 综合得分")])]),g("div",{class:ce},[g("p",{class:se},[e.item.intonation||0,g("span",null,[x("分")])," "]),g("p",{class:ue},[x("音准 ")])]),g("div",{class:ce},[g("p",{class:se},[e.item.cadence||0,g("span",null,[x("分")])," "]),g("p",{class:ue},[x("节奏 ")])]),g("div",{class:ce},[g("p",{class:se},[e.item.integrity||0,g("span",null,[x("分")])," "]),g("p",{class:ue},[x("完成度 ")])])])])])])}}}),fe={exercisContainer:"_exercisContainer_1j6m1_1",topWrap:"_topWrap_1j6m1_5",topInfo:"_topInfo_1j6m1_5",topInfoLeft:"_topInfoLeft_1j6m1_13",headWrap:"_headWrap_1j6m1_19",infoMsg:"_infoMsg_1j6m1_26",tag:"_tag_1j6m1_38",topInfoRight:"_topInfoRight_1j6m1_51",infoDay:"_infoDay_1j6m1_58",infoDayMain:"_infoDayMain_1j6m1_61",infoDaysub:"_infoDaysub_1j6m1_77",chioseWrap:"_chioseWrap_1j6m1_84",DialogTitle:"_DialogTitle_1j6m1_94",DialogConent:"_DialogConent_1j6m1_114",teacherSubject:"_teacherSubject_1j6m1_131"};e("default",i({name:"exercis-detail",setup:function(){I();var e=W(),n=l(k.platformApi),r=c({showPopoverTime:!1,showPopoverOrchestra:!1,currentDate:[M().format("YYYY"),M().format("MM")],actions:[{text:"全部乐团",color:"var(--van-primary-color)"},{text:"交付团"},{text:"晋升团"}],id:e.query.id,heightV:0,scrollTop:0,isClick:!1}),a=c({practiceMonth:e.query.practiceMonth?e.query.practiceMonth:r.currentDate[0]+""+r.currentDate[1],practiceMonthName:e.query.practiceMonthName?e.query.practiceMonthName:r.currentDate[0]+"年"+r.currentDate[1]+"月",orchestraId:"",orchestraName:"",page:1,rows:20,userId:e.query.id,clientType:e.query.clientType?e.query.clientType:k.platformType}),i=l(!1),s=l(new Date(M().subtract(10,"year").format("YYYY-MM-DD"))),u=l(new Date(M().add(10,"year").format("YYYY-MM-DD"))),m=l(["year","month"]),_=l(!1),f=l(!1),d=l(!1),p=l(!1),y=l({}),b=l([]),j=function(){var e=o(regeneratorRuntime.mark((function e(){var o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r.isClick){e.next=2;break}return e.abrupt("return");case 2:return r.isClick=!0,_.value&&(b.value=[],a.page=1,_.value=!1),e.prev=4,e.next=7,A.post("".concat(n.value,"/musicPracticeRecord/page"),{data:t(t({},a),{},{feature:"EVALUATION"})});case 7:if(o=e.sent,!(b.value.length>0&&1===o.data.current)){e.next=10;break}return e.abrupt("return");case 10:b.value=b.value.concat(o.data.rows||[]),a.page=o.data.current+1,p.value=b.value.length>0,f.value=!1,console.log(o.data,o.data.current>=o.data.pages),d.value=o.data.current>=o.data.pages,e.next=23;break;case 18:e.prev=18,e.t0=e.catch(4),e.t0.message,p.value=!1,d.value=!0;case 23:r.isClick=!1;case 24:case"end":return e.stop()}}),e,null,[[4,18]])})));return function(){return e.apply(this,arguments)}}(),w=function(){var e=o(regeneratorRuntime.mark((function e(){var o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("TEACHER"!==a.clientType){e.next=14;break}return e.prev=1,e.next=4,A.post("".concat(n.value,"/teacher/detail"),{data:{teacherId:r.id}});case 4:o=e.sent,y.value=t({},o.data),y.value.subjectNames=o.data.subjectName.split(","),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),e.t0.message;case 12:e.next=25;break;case 14:return e.prev=14,e.next=17,A.get("".concat(n.value,"/student/detail/").concat(r.id));case 17:i=e.sent,console.log(i),y.value=t({},i.data),e.next=25;break;case 22:e.prev=22,e.t1=e.catch(14),e.t1.message;case 25:case"end":return e.stop()}}),e,null,[[1,9],[14,22]])})));return function(){return e.apply(this,arguments)}}(),D=l(),G=l(0);C(o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,j();case 2:return e.next=4,w();case 4:window.addEventListener("scroll",X),O((function(){var e=v(D.value).height;G.value=e}));case 6:case"end":return e.stop()}}),e)})))),R((function(){window.removeEventListener("scroll",X)}));var X=function(){var e=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;r.scrollTop=e},$=function(e){r.heightV=e,console.log(e,"dataHeight")},Z=function(e){a.practiceMonth=e.selectedValues[0]+e.selectedValues[1],a.practiceMonthName=e.selectedValues[0]+"年"+e.selectedValues[1]+"月",r.showPopoverTime=!1,_.value=!0,j()},J=function(){d.value=!1,f.value=!0,j()};return function(){var e;return g(T,null,[g("div",{class:[fe.exercisContainer,!p.value&&"emptyRootContainer"]},[g("div",{class:fe.topWrap,ref:D},[g(N,{position:"top",background:"#F8F8F8",onGetHeight:$},{default:function(){return[g(S,{border:!1,background:r.heightV>r.scrollTop?"transparent":"#fff"},{right:function(){return g(h,{name:Y,size:22,color:"#333",onClick:function(){i.value=!0}},null)}})]}}),g("div",{class:fe.topInfo},[g("div",{class:fe.topInfoLeft},[g("div",{class:fe.headWrap},[g(F,{src:y.value.avatar?y.value.avatar:q,fit:"cover",width:"68px",height:"68px"},null)]),g("div",{class:fe.infoMsg},[g("p",null,[y.value.nickname]),"TEACHER"===a.clientType?g(K,{class:fe.teacherSubject},{default:function(){var e,t;return[null===(e=y.value)||void 0===e||null===(t=e.subjectNames)||void 0===t?void 0:t.map((function(e){return g("div",{class:fe.tag},[e])}))]}}):g("div",{class:fe.tag},[y.value.subjectNames?y.value.subjectNames:"暂无声部"])])]),g("div",{class:fe.topInfoRight},[g("div",{class:fe.infoDay},[g("p",{class:fe.infoDayMain},[y.value.practiceDays?y.value.practiceDays:0,"",g("span",null,[x("天")])]),g("p",{class:fe.infoDaysub},[x("练习天数")])]),g("div",{class:fe.infoTime},[g("p",{class:fe.infoDayMain},[y.value.practiceTimes?y.value.practiceTimes:0,"",g("span",null,[x("分钟")])]),g("p",{class:fe.infoDaysub},[x("练习时长")])])])]),g("div",{class:"searchGroup-single",style:"padding-top: 0 !important;"},[g("div",{class:["searchItem",r.showPopoverTime?"searchItem-active":""],onClick:function(){r.showPopoverTime=!0}},[g("span",null,[a.practiceMonthName])])])]),p.value?g(V,{modelValue:_.value,"onUpdate:modelValue":function(e){return _.value=e},onRefresh:J,style:"min-height: 100vh;"},{default:function(){return[g(U,{"loading-text":" ",finished:d.value,"finished-text":"没有更多了",onLoad:j},(t=e=b.value.map((function(e){return g(_e,{item:e},null)})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!E(t)?e:{default:function(){return[e]}}))];var t}}):g(P,{tips:"暂无练习统计"},null)]),g(z,{show:r.showPopoverTime,"onUpdate:show":function(e){return r.showPopoverTime=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[g(H,{onCancel:function(){r.showPopoverTime=!1},onConfirm:Z,modelValue:r.currentDate,"onUpdate:modelValue":function(e){return r.currentDate=e},minDate:s.value,maxDate:u.value,formatter:L,columnsType:m.value},null)]}}),g(B,{class:"exercisDetailDialog",show:i.value,"onUpdate:show":function(e){return i.value=e},title:"提示框",confirmButtonText:"我知道了"},{title:function(){return g("div",{class:fe.DialogTitle},[g("span",null,null),g("p",null,[x("什么是练习数据")])])},default:function(){return g("div",{class:fe.DialogConent},[g("p",null,[x("练习数据是"),"TEACHER"==a.clientType?"":"学员",x("通过云教练自主练习的数据统计,可根据时间段查询"),"TEACHER"==a.clientType?"":"学员",x("的练习天数和练习时长")," "]),g("p",null,[x("练习天数:当天有曲目播放或测评记录即算练习")]),g("p",null,[x("练习时长:曲目播放和曲目测评的时长总和")])])}})])}}}))}}}))}();