!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;r20&&e<=40?t=2:e>40&&e<=60?t=3:e>60&&e<=80?t=4:e>80&&(t=5),t},n=function(){var t=window.location.origin+"/orchestra-music-score/colexiu-report.html?id=".concat(e.item.id);c({api:"openWebView",content:{url:t,orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0}})};return function(){return r(l,null,[r("div",null,[r("div",{class:R,onClick:n},[r("div",{class:L},[r("div",{class:z},[r("p",{class:B},[e.item.musicSheetName]),r("p",{class:N},[e.item.createTime])]),r("div",{class:S},[r("div",{class:V},[r("img",{src:A[t(e.item.score||0)].img,alt:""},null)]),r(o,{name:"arrow",class:Y},null)])]),r("div",{class:q},[r("div",{class:E},[r("p",{class:F,style:{color:"#F67146"}},[e.item.score||0,r("span",null,[a("分")])," "]),r("p",{class:U},[a(" 综合得分")])]),r("div",{class:E},[r("p",{class:F},[e.item.intonation||0,r("span",null,[a("分")])," "]),r("p",{class:U},[a("音准 ")])]),r("div",{class:E},[r("p",{class:F},[e.item.cadence||0,r("span",null,[a("分")])," "]),r("p",{class:U},[a("节奏 ")])]),r("div",{class:E},[r("p",{class:F},[e.item.integrity||0,r("span",null,[a("分")])," "]),r("p",{class:U},[a("完成度 ")])])])])])])}}}),G={exercisContainer:"_exercisContainer_jyryw_1",topWrap:"_topWrap_jyryw_5",topInfo:"_topInfo_jyryw_5",topInfoLeft:"_topInfoLeft_jyryw_13",headWrap:"_headWrap_jyryw_19",infoMsg:"_infoMsg_jyryw_26",tag:"_tag_jyryw_38",topInfoRight:"_topInfoRight_jyryw_51",infoDay:"_infoDay_jyryw_58",infoDayMain:"_infoDayMain_jyryw_61",infoDaysub:"_infoDaysub_jyryw_77",chioseWrap:"_chioseWrap_jyryw_84",DialogTitle:"_DialogTitle_jyryw_94",DialogConent:"_DialogConent_jyryw_114"};e("default",n({name:"exercis-detail",setup:function(){s();var e=_(),n=p(u.platformApi),c=m({showPopoverTime:!1,showPopoverOrchestra:!1,currentDate:[d().format("YYYY"),d().format("MM")],actions:[{text:"全部乐团",color:"var(--van-primary-color)"},{text:"交付团"},{text:"晋升团"}],id:e.query.id,heightV:0,scrollTop:0,isClick:!1}),R=m({practiceMonth:e.query.practiceMonth?e.query.practiceMonth:c.currentDate[0]+""+c.currentDate[1],practiceMonthName:e.query.practiceMonthName?e.query.practiceMonthName:c.currentDate[0]+"年"+c.currentDate[1]+"月",orchestraId:"",orchestraName:"",page:1,rows:20,userId:e.query.id,clientType:"STUDENT"}),L=p(!1),z=p(new Date(d().subtract(10,"year").format("YYYY-MM-DD"))),B=p(new Date(d().add(10,"year").format("YYYY-MM-DD"))),N=p(["year","month"]),S=p(!1),V=p(!1),Y=p(!1),q=p(!1),E=p({}),F=p([]),U=function(){var e=i(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!c.isClick){e.next=2;break}return e.abrupt("return");case 2:return c.isClick=!0,S.value&&(F.value=[],R.page=1,S.value=!1),e.prev=4,e.next=7,T.post("".concat(n.value,"/musicPracticeRecord/page"),{data:t(t({},R),{},{feature:"EVALUATION"})});case 7:if(r=e.sent,!(F.value.length>0&&1===r.data.current)){e.next=10;break}return e.abrupt("return");case 10:F.value=F.value.concat(r.data.rows||[]),R.page=r.data.current+1,q.value=F.value.length>0,V.value=!1,console.log(r.data,r.data.current>=r.data.pages),Y.value=r.data.current>=r.data.pages,e.next=23;break;case 18:e.prev=18,e.t0=e.catch(4),e.t0.message,q.value=!1,Y.value=!0;case 23:c.isClick=!1;case 24:case"end":return e.stop()}}),e,null,[[4,18]])})));return function(){return e.apply(this,arguments)}}(),A=function(){var e=i(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,T.get("/api-backend/student/detail/".concat(c.id));case 3:n=e.sent,console.log(n),E.value=t({},n.data),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),e.t0.message;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),$=p(),Z=p(0);f(i(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,U();case 2:return e.next=4,A();case 4:window.addEventListener("scroll",J),y((function(){var e=g($.value).height;Z.value=e}));case 6:case"end":return e.stop()}}),e)})))),h((function(){window.removeEventListener("scroll",J)}));var J=function(){var e=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;c.scrollTop=e},K=function(e){c.heightV=e,console.log(e,"dataHeight")},Q=function(e){R.practiceMonth=e.selectedValues[0]+e.selectedValues[1],R.practiceMonthName=e.selectedValues[0]+"年"+e.selectedValues[1]+"月",c.showPopoverTime=!1,S.value=!0,U()},X=function(){Y.value=!1,V.value=!0,U()};return function(){var e;return r(l,null,[r("div",{class:[G.exercisContainer,!q.value&&"emptyRootContainer"]},[r("div",{class:G.topWrap,ref:$},[r(I,{position:"top",background:"#F8F8F8",onGetHeight:K},{default:function(){return[r(w,{border:!1,background:c.heightV>c.scrollTop?"transparent":"#fff"},{right:function(){return r(o,{name:M,size:22,color:"#333",onClick:function(){L.value=!0}},null)}})]}}),r("div",{class:G.topInfo},[r("div",{class:G.topInfoLeft},[r("div",{class:G.headWrap},[r(P,{src:E.value.avatar?E.value.avatar:k,fit:"cover",width:"68px",height:"68px"},null)]),r("div",{class:G.infoMsg},[r("p",null,[E.value.nickname]),r("div",{class:G.tag},[E.value.subjectNames?E.value.subjectNames:"暂无声部"])])]),r("div",{class:G.topInfoRight},[r("div",{class:G.infoDay},[r("p",{class:G.infoDayMain},[E.value.practiceDays?E.value.practiceDays:0,"",r("span",null,[a("天")])]),r("p",{class:G.infoDaysub},[a("练习天数")])]),r("div",{class:G.infoTime},[r("p",{class:G.infoDayMain},[E.value.practiceTimes?E.value.practiceTimes:0,"",r("span",null,[a("分钟")])]),r("p",{class:G.infoDaysub},[a("练习时长")])])])]),r("div",{class:"searchGroup-single",style:"padding-top: 0 !important;"},[r("div",{class:["searchItem",c.showPopoverTime?"searchItem-active":""],onClick:function(){c.showPopoverTime=!0}},[r("span",null,[R.practiceMonthName])])])]),q.value?r(W,{modelValue:S.value,"onUpdate:modelValue":function(e){return S.value=e},onRefresh:X,style:"min-height: 100vh;"},{default:function(){return[r(C,{"loading-text":" ",finished:Y.value,"finished-text":"没有更多了",onLoad:U},(t=e=F.value.map((function(e){return r(H,{item:e},null)})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!D(t)?e:{default:function(){return[e]}}))];var t}}):r(v,{tips:"暂无练习统计"},null)]),r(j,{show:c.showPopoverTime,"onUpdate:show":function(e){return c.showPopoverTime=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[r(O,{onCancel:function(){c.showPopoverTime=!1},onConfirm:Q,modelValue:c.currentDate,"onUpdate:modelValue":function(e){return c.currentDate=e},minDate:z.value,maxDate:B.value,formatter:b,columnsType:N.value},null)]}}),r(x,{class:"exercisDetailDialog",show:L.value,"onUpdate:show":function(e){return L.value=e},title:"提示框",confirmButtonText:"我知道了"},{title:function(){return r("div",{class:G.DialogTitle},[r("span",null,null),r("p",null,[a("什么是练习数据")])])},default:function(){return r("div",{class:G.DialogConent},[r("p",null,[a("练习数据是学员通过云教练自主练习的数据统计,可根据时间段查询学员的练习天数和练习时长")," "]),r("p",null,[a("练习天数:当天有曲目播放或测评记录即算练习")]),r("p",null,[a("练习时长:曲目播放和曲目测评的时长总和")])])}})])}}}))}}}))}();