!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(k){s=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var o=e&&e.prototype instanceof m?e:m,a=Object.create(o.prototype),c=new L(n||[]);return i(a,"_invoke",{value:z(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(k){return{type:"throw",arg:k}}}r.wrap=p;var _={};function m(){}function h(){}function d(){}var g={};s(g,c,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(A([])));y&&y!==n&&o.call(y,c)&&(g=y);var w=d.prototype=m.prototype=Object.create(g);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(e,r){function n(i,a,c,l){var u=f(e[i],e,a);if("throw"!==u.type){var s=u.arg,p=s.value;return p&&"object"==t(p)&&o.call(p,"__await")?r.resolve(p.__await).then((function(t){n("next",t,c,l)}),(function(t){n("throw",t,c,l)})):r.resolve(p).then((function(t){s.value=t,c(s)}),(function(t){return n("throw",t,c,l)}))}l(u.arg)}var a;i(this,"_invoke",{value:function(t,e){function o(){return new r((function(r,o){n(t,e,r,o)}))}return a=a?a.then(o,o):o()}})}function z(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return D()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=j(a,r);if(c){if(c===_)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=f(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===_)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function j(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,j(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),_;var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,_;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,_):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,_)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function A(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),l=o.call(i,"finallyLoc");if(c&&l){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),_}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),_}},r}function r(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function n(t){for(var e=1;e20&&t<=40?e=2:t>40&&t<=60?e=3:t>60&&t<=80?e=4:t>80&&(e=5),e},r=function(){var e=window.location.origin+"/instrument/#/evaluat-report?id=".concat(t.item.id);u({api:"openWebView",content:{url:e,orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0}})};return function(){return i("div",{class:R,onClick:r},[i("div",{class:S},[i("div",{class:N},[i("p",{class:B},[t.item.musicSheetName]),i("p",{class:C},[t.item.createTime])]),i("div",{class:F},[i("div",{class:P},[i("img",{src:Q[e(t.item.score||0)].img,alt:""},null)]),i(c,{name:"arrow",class:Y},null)])]),i("div",{class:U},[i("div",{class:V},[i("p",{class:K,style:{color:"#F67146"}},[t.item.score||0,i("span",null,[l("分")])," "]),i("p",{class:G},[l(" 综合得分")])]),i("div",{class:V},[i("p",{class:K},[t.item.intonation||0,i("span",null,[l("分")])," "]),i("p",{class:G},[l("音准 ")])]),i("div",{class:V},[i("p",{class:K},[t.item.cadence||0,i("span",null,[l("分")])," "]),i("p",{class:G},[l("节奏 ")])]),i("div",{class:V},[i("p",{class:K},[t.item.integrity||0,i("span",null,[l("分")])," "]),i("p",{class:G},[l("完成度 ")])])])])}}}),Z={exercisContainer:"_exercisContainer_2c7tz_1",topWrap:"_topWrap_2c7tz_5",topInfo:"_topInfo_2c7tz_8",topInfoLeft:"_topInfoLeft_2c7tz_16",headWrap:"_headWrap_2c7tz_22",infoMsg:"_infoMsg_2c7tz_29",tag:"_tag_2c7tz_41",topInfoRight:"_topInfoRight_2c7tz_53",infoDay:"_infoDay_2c7tz_60",infoDayMain:"_infoDayMain_2c7tz_63",infoDaysub:"_infoDaysub_2c7tz_79",chioseWrap:"_chioseWrap_2c7tz_86",select:"_select_2c7tz_96",icon:"_icon_2c7tz_99"};t("default",o({name:"exercis-detail",setup:function(){var t=s(),r=p({showPopoverTime:!1,currentDate:[f().format("YYYY"),f().format("MM")],isClick:!1,background:"transparent",color:"#fff",practiceMonthName:t.query.practiceMonthName?t.query.practiceMonthName:f().format("YYYY")+"年"+f().format("MM")+"月"}),o=p({practiceMonth:t.query.practiceMonth?t.query.practiceMonth:r.currentDate[0]+""+r.currentDate[1],page:1,rows:20}),c=_(!1),u=_(!1),R=_(!1),S=_(!1),N=_({}),B=_([]),C=function(){var t=a(e().mark((function t(){var i;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r.isClick){t.next=2;break}return t.abrupt("return");case 2:return r.isClick=!0,c.value&&(B.value=[],o.page=1,c.value=!1),t.prev=4,t.next=7,x.post("/edu-app/musicPracticeRecord/page",{data:n(n({},o),{},{feature:"EVALUATION"})});case 7:if(i=t.sent,!(B.value.length>0&&1===i.data.current)){t.next=10;break}return t.abrupt("return");case 10:B.value=B.value.concat(i.data.rows||[]),o.page=i.data.current+1,S.value=B.value.length>0,u.value=!1,R.value=i.data.current>=i.data.pages,t.next=21;break;case 17:t.prev=17,t.t0=t.catch(4),S.value=!1,R.value=!0;case 21:r.isClick=!1;case 22:case"end":return t.stop()}}),t,null,[[4,17]])})));return function(){return t.apply(this,arguments)}}(),F=function(){var t=a(e().mark((function t(){var r,o;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,x.get("/edu-app/student/detail",{params:{id:null===(r=z.user.data)||void 0===r?void 0:r.id}});case 3:o=t.sent,N.value=n({},o.data),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]])})));return function(){return t.apply(this,arguments)}}(),P=_(),Y=_(0);m(a(e().mark((function t(){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return D(document,"scroll",(function(){k().y.value>52?(r.background="#fff",r.color="#323333"):(r.background="transparent",r.color="#fff")})),t.next=3,C();case 3:return t.next=5,F();case 5:h((function(){var t=j(P.value).height;Y.value=t}));case 6:case"end":return t.stop()}}),t)}))));var U=function(t){o.practiceMonth=t.selectedValues[0]+t.selectedValues[1],r.practiceMonthName=t.selectedValues[0]+"年"+t.selectedValues[1]+"月",r.showPopoverTime=!1,c.value=!0,C()},V=function(){R.value=!1,u.value=!0,C()};return function(){var t;return i(w,null,[i("div",{class:[Z.exercisContainer]},[i("div",{class:Z.topWrap,ref:P},[i(T,{position:"top"},{default:function(){return[i(d,{border:!1,background:r.background,color:r.color},null)]}}),i("div",{class:Z.topInfo},[i("div",{class:Z.topInfoLeft},[i("div",{class:Z.headWrap},[i(W,{src:N.value.avatar?N.value.avatar:A,fit:"cover",width:"68px",height:"68px"},null)]),i("div",{class:Z.infoMsg},[i("p",null,[N.value.nickname]),i("div",{class:Z.tag},[N.value.subjectNames?N.value.subjectNames:"暂无声部"])])]),i("div",{class:Z.topInfoRight},[i("div",{class:Z.infoDay},[i("p",{class:Z.infoDayMain},[N.value.practiceDays?N.value.practiceDays:0,i("span",null,[l("天")])]),i("p",{class:Z.infoDaysub},[l("练习天数")])]),i("div",{class:Z.infoTime},[i("p",{class:Z.infoDayMain},[N.value.practiceTimes?N.value.practiceTimes:0,i("span",null,[l("分钟")])]),i("p",{class:Z.infoDaysub},[l("练习时长")])])])]),i(O,{inset:!0},{default:function(){return[i(M,{class:Z.select,center:!0,isLink:!0,onClick:function(){return r.showPopoverTime=!0}},{icon:function(){return i("img",{class:Z.icon,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAiCAYAAAA3WXuFAAAAAXNSR0IArs4c6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BevkxBt622089O3R+Lht+hHaeW9wbtFa+A+Bu9G2qpokoD1i/+Q2MIUKQ8iEQ9boH1XpyxKFCJjRTP7lq1RHAes3v4Ar+zhjZyBMOMNcomS89T0QvA/hXT7AETBS6wifcltN0+5E4t3AwYNVeBOgwwF4fUvjSf6TKQI2YZgjyVOHR6MeNRje9H9r7DretRiq7BQfs+yFfx6olFyx0zM73k11ubhh/ArRgQeQlxXpVAAAAAElFTkSuQmCC"},null)},title:function(){return i("div",{class:"van-ellipsis"},[r.practiceMonthName])}})]}})]),S.value?i(I,{modelValue:c.value,"onUpdate:modelValue":function(t){return c.value=t},onRefresh:V,style:{minHeight:"calc(100vh - ".concat(Y.value,"px)")}},{default:function(){return[i(E,{"loading-text":" ",finished:R.value,"finished-text":" ",onLoad:C},(e=t=B.value.map((function(t){return i(X,{item:t},null)})),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!b(e)?t:{default:function(){return[t]}}))];var e}}):i(g,{description:"暂无练习统计",style:{height:"calc(100vh - ".concat(Y.value,"px)")}},null)]),i(v,{show:r.showPopoverTime,"onUpdate:show":function(t){return r.showPopoverTime=t},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[i(L,{onCancel:function(){r.showPopoverTime=!1},onConfirm:U,modelValue:r.currentDate,"onUpdate:modelValue":function(t){return r.currentDate=t},formatter:y,columnsType:["year","month"]},null)]}})])}}}))}}}))}();