| 1 |
- !function(){function e(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function t(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?e(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function i(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function n(e,t,i,n,r,a,o){try{var _=e[a](o),m=_.value}catch(u){return void i(u)}_.done?t(m):Promise.resolve(m).then(n,r)}function r(e){return function(){var t=this,i=arguments;return new Promise((function(r,a){var o=e.apply(t,i);function _(e){n(o,r,a,_,m,"next",e)}function m(e){n(o,r,a,_,m,"throw",e)}_(void 0)}))}}var a=document.createElement("style");a.innerHTML='._animateWrap_1kuq9_1{width:1.46667rem!important;height:1.46667rem!important}._loading_1kuq9_5{height:1.46667rem!important}._loading_1kuq9_5 img{height:.8rem;width:3.2rem;margin-top:.53333rem}._pullRefresh_1kuq9_13 .van-pull-refresh__track{min-height:inherit}.lottie-animation-container{width:var(--lottie-animation-container-width);height:var(--lottie-animation-container-height);background-color:var(--lottie-animation-container-background-color);overflow:hidden;margin:0 auto}._itemWrap_uzkwm_1{background:#ffffff;border-radius:.26667rem;padding:.32rem .4rem .53333rem;margin:0 .34667rem .34667rem}._itemWrap_uzkwm_1 ._itemTop_uzkwm_7{display:flex;flex-direction:row;justify-content:space-between;align-items:center;border-bottom:.02667rem solid #f2f2f2;padding-bottom:.32rem}._itemWrap_uzkwm_1 ._itemTop_uzkwm_7 ._itemTopLeft_uzkwm_15 ._itemTopMain_uzkwm_15{height:.58667rem;font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem;margin-bottom:.16rem;max-width:4.26667rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._itemWrap_uzkwm_1 ._itemTop_uzkwm_7 ._itemTopLeft_uzkwm_15 ._itemTopSub_uzkwm_27{font-size:.32rem!important;font-weight:400;color:#777;line-height:.45333rem}._itemWrap_uzkwm_1 ._itemTop_uzkwm_7 ._itemTopRight_uzkwm_33{display:flex;flex-direction:row;align-items:center}._itemWrap_uzkwm_1 ._itemTop_uzkwm_7 ._itemTopRight_uzkwm_33 ._imgWrap_uzkwm_38{width:2.66667rem;height:.88rem;background:#e9e3ff;border-radius:.50667rem}._itemWrap_uzkwm_1 ._itemTop_uzkwm_7 ._itemTopRight_uzkwm_33 ._imgWrap_uzkwm_38 img{width:100%;height:100%}._itemWrap_uzkwm_1 ._itemTop_uzkwm_7 ._itemTopRight_uzkwm_33 ._imgIcon_uzkwm_48{font-size:.42667rem;color:#d8d8d8;margin-left:.16rem}._itemWrap_uzkwm_1 ._itemBottom_uzkwm_53{margin-top:.4rem;display:flex;flex-direction:row;align-items:center;justify-content:space-around;text-align:center}._itemWrap_uzkwm_1 ._itemBottom_uzkwm_53 ._itemBottomDot_uzkwm_61{width:25%}._itemWrap_uzkwm_1 ._itemBottom_uzkwm_53 ._itemBottomDot_uzkwm_61 ._dotMain_uzkwm_64{font-size:.69333rem;color:#333;line-height:.8rem;margin-bottom:.10667rem;font-family:DINAlternate-Bold,DINAlternate;font-weight:700}._itemWrap_uzkwm_1 ._itemBottom_uzkwm_53 ._itemBottomDot_uzkwm_61 ._dotMain_uzkwm_64 span{margin-left:.02667rem;font-size:.32rem;font-weight:400;color:#333;line-height:.45333rem}._itemWrap_uzkwm_1 ._itemBottom_uzkwm_53 ._itemBottomDot_uzkwm_61 ._dotSub_uzkwm_79{font-size:.32rem;font-weight:400;color:#777;line-height:.45333rem}._exercisContainer_1gjd4_1 .van-calendar__day--end,._exercisContainer_1gjd4_1 .van-calendar__day--start,._exercisContainer_1gjd4_1 .van-calendar__day--start-end,._exercisContainer_1gjd4_1 .van-calendar__day--multiple-middle,._exercisContainer_1gjd4_1 .van-calendar__day--multiple-selected{background:#FF5074}._exercisContainer_1gjd4_1 ._bgImg_1gjd4_8{position:fixed;top:0;left:0;width:100%;height:5.70667rem;z-index:-1}._topWrap_1gjd4_16 .van-sticky{background:url(./assets/bg-image.e89554da.png) no-repeat top center;background-size:100% 5.70667rem}._topWrap_1gjd4_16 ._userMember_1gjd4_20{background-color:transparent;width:auto;padding:0;padding:.48rem .32rem .8rem .69333rem}._topWrap_1gjd4_16 ._userMember_1gjd4_20 ._level_1gjd4_26{width:1.17333rem;height:.45333rem}._topWrap_1gjd4_16 ._userMember_1gjd4_20 ._userImgSection_1gjd4_30{position:relative;padding:.08rem;background:#fff;margin-right:.32rem;border-radius:50%}._topWrap_1gjd4_16 ._userMember_1gjd4_20 ._userImgSection_1gjd4_30:before{content:" ";position:absolute;left:.02667rem;top:.02667rem;bottom:.02667rem;right:.02667rem;background-color:#fff;border-radius:50%}._topWrap_1gjd4_16 ._userMember_1gjd4_20 ._userImg_1gjd4_30{width:1.22667rem;height:1.22667rem;border-radius:50%;vertical-align:middle;overflow:hidden}._topWrap_1gjd4_16 ._userMember_1gjd4_20 ._userInfo_1gjd4_54{padding-top:.10667rem;display:flex;align-items:center;color:#fff;padding-bottom:.13333rem}._topWrap_1gjd4_16 ._userMember_1gjd4_20 ._userInfo_1gjd4_54 ._name_1gjd4_61{padding-right:.13333rem;max-width:2.66667rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.48rem;font-weight:600;color:#742626}._topWrap_1gjd4_16 ._userMember_1gjd4_20 ._timeRemaining_1gjd4_71{margin-top:0;font-size:.37333rem;color:silver}._topWrap_1gjd4_16 ._topInfoRight_1gjd4_76{margin-bottom:.48rem;padding:0 10%;display:flex;flex-direction:row;align-items:center;justify-content:center}._topWrap_1gjd4_16 ._topInfoRight_1gjd4_76 ._infoDay_1gjd4_84,._topWrap_1gjd4_16 ._topInfoRight_1gjd4_76 ._infoTime_1gjd4_85{width:50%}._topWrap_1gjd4_16 ._topInfoRight_1gjd4_76 ._infoDay_1gjd4_84{position:relative;margin-right:.53333rem}._topWrap_1gjd4_16 ._topInfoRight_1gjd4_76 ._infoDay_1gjd4_84:after{position:absolute;content:" ";right:-.32rem;top:.32rem;width:.02667rem;height:.93333rem;background-color:#e0e5e8}._topWrap_1gjd4_16 ._topInfoRight_1gjd4_76 ._infoDayMain_1gjd4_101{font-size:.64rem;color:#333;line-height:.74667rem;margin-bottom:.18667rem;font-family:DINAlternate-Bold,DINAlternate;font-weight:600;text-align:center}._topWrap_1gjd4_16 ._topInfoRight_1gjd4_76 ._infoDayMain_1gjd4_101 span{margin-left:.05333rem;font-size:.32rem;font-weight:400;color:#333;line-height:.45333rem}._topWrap_1gjd4_16 ._topInfoRight_1gjd4_76 ._infoDaysub_1gjd4_117{display:flex;align-items:center;justify-content:center;font-size:.32rem;font-weight:400;color:#333;line-height:.45333rem;text-align:center}._topWrap_1gjd4_16 ._topInfoRight_1gjd4_76 ._infoDaysub_1gjd4_117 img{width:.37333rem;height:.37333rem;margin-right:.08rem}\n',document.head.appendChild(a),System.register(["./index-legacy.9fbf5cc3.js","./index-legacy.12606251.js","./index-legacy.4f3e9447.js","./index-legacy.faf0a245.js","./index-legacy.0f6d63d8.js","./index-legacy.bcebad5e.js","./index-legacy.8f6e17f6.js","./index-legacy.e7916e07.js","./index-legacy.a25aafdb.js","./bg-image-legacy.44e2b3db.js","./icon_student-legacy.45be2fa9.js","./icon-logo-legacy.70c50c7d.js","./use-tab-status-legacy.d33bc5cf.js","./use-refs-legacy.c258289c.js","./utils-legacy.dd1e8635.js","./use-height-legacy.af126ed3.js","./index-legacy.c48fc3b9.js","./index-legacy.8e975b15.js"],(function(e){"use strict";var i,n,a,o,_,m,u,s,l,c,d,g,p,f,h,w,v,b,j,y,k,z,x,D,M,T,I,W;return{setters:[function(e){e.y,i=e.d,n=e.U,a=e.a4,o=e.j,_=e.F,m=e.B,u=e.O,s=e.n,l=e.u,c=e.Q,d=e.X,g=e.g,p=e.V,f=e.W,h=e.C,w=e.a0,v=e.w},function(e){b=e.L},function(e){j=e.I},function(){},function(e){y=e.C},function(e){k=e.C},function(e){z=e.P},function(e){x=e.T},function(e){D=e.C},function(e){M=e.b},function(e){T=e.i},function(e){I=e.i,W=e.b},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var Y={exports:{}};Y.exports=function(e,t,i){t.prototype.isBetween=function(e,t,n,r){var a=i(e),o=i(t),_="("===(r=r||"()")[0],m=")"===r[1];return(_?this.isAfter(a,n):!this.isBefore(a,n))&&(m?this.isBefore(o,n):!this.isAfter(o,n))||(_?this.isBefore(a,n):!this.isAfter(a,n))&&(m?this.isAfter(o,n):!this.isBefore(o,n))}};var R=Y.exports,O="_pullRefresh_1kuq9_13",S=i({name:"m-full-refresh",props:{title:String,modelValue:{type:Boolean,default:!1}},emits:["refresh","update:modelValue"],setup:function(e,t){var i=t.emit,r=t.slots,u=n({fullState:!1});return a((function(){return e.modelValue}),(function(e){u.fullState=e})),a((function(){return u.fullState}),(function(e){i("update:modelValue",e)})),function(){return o(z,{modelValue:u.fullState,"onUpdate:modelValue":function(e){return u.fullState=e},onRefresh:function(){return i("refresh")},loadingText:" ",class:O},{default:function(){return o(_,null,[m(" "),r.default&&r.default()])}})}}}),B="_itemWrap_uzkwm_1",C="_itemTop_uzkwm_7",P="_itemTopLeft_uzkwm_15",V="_itemTopMain_uzkwm_15",N="_itemTopSub_uzkwm_27",A="_itemTopRight_uzkwm_33",q="_imgWrap_uzkwm_38",L="_imgIcon_uzkwm_48",E="_itemBottom_uzkwm_53",U="_itemBottomDot_uzkwm_61",F="_dotMain_uzkwm_64",H="_dotSub_uzkwm_79",Q={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:"你很棒"}},X=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},i=function(){var t=window.location.origin+"/instrument/#/evaluat-report?id=".concat(e.item.id);s({api:"openWebView",content:{url:t,orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0}})};return function(){return o("div",{class:B,onClick:i},[o("div",{class:C},[o("div",{class:P},[o("p",{class:V},[e.item.musicSheetName]),o("p",{class:N},[e.item.createTime])]),o("div",{class:A},[o("div",{class:q},[o("img",{src:Q[t(e.item.score||0)].img,alt:""},null)]),o(u,{name:"arrow",class:L},null)])]),o("div",{class:E},[o("div",{class:U},[o("p",{class:F,style:{color:"#ff5a56"}},[e.item.score||0,o("span",null,[m("分")])," "]),o("p",{class:H},[m(" 综合得分")])]),o("div",{class:U},[o("p",{class:F},[e.item.intonation||0,o("span",null,[m("分")])," "]),o("p",{class:H},[m("音准 ")])]),o("div",{class:U},[o("p",{class:F},[e.item.cadence||0,o("span",null,[m("分")])," "]),o("p",{class:H},[m("节奏 ")])]),o("div",{class:U},[o("p",{class:F},[e.item.integrity||0,o("span",null,[m("分")])," "]),o("p",{class:H},[m("完成度 ")])])])])}}}),G={exercisContainer:"_exercisContainer_1gjd4_1",bgImg:"_bgImg_1gjd4_8",topWrap:"_topWrap_1gjd4_16",userMember:"_userMember_1gjd4_20",level:"_level_1gjd4_26",userImgSection:"_userImgSection_1gjd4_30",userImg:"_userImg_1gjd4_30",userInfo:"_userInfo_1gjd4_54",name:"_name_1gjd4_61",timeRemaining:"_timeRemaining_1gjd4_71",topInfoRight:"_topInfoRight_1gjd4_76",infoDay:"_infoDay_1gjd4_84",infoTime:"_infoTime_1gjd4_85",infoDayMain:"_infoDayMain_1gjd4_101",infoDaysub:"_infoDaysub_1gjd4_117"};l.extend(R);e("default",i({name:"exercis-detail",setup:function(){var e=c(),i=n({showPopoverTime:!1,currentDate:[l().format("YYYY"),l().format("MM")],isClick:!1,practiceMonthName:e.query.practiceMonthName?e.query.practiceMonthName:l().format("YYYY")+"年"+l().format("MM")+"月",userTrainOverView:{trainDays:0,trainNum:0,trainTime:0}}),a=d((function(){var e=g.user.data;return{username:null==e?void 0:e.username,phone:null==e?void 0:e.phone,avatar:null==e?void 0:e.heardUrl,id:null==e?void 0:e.userId,memberRankSettingId:null==e?void 0:e.memberRankSettingId,isVip:null==e?void 0:e.isVip,membershipDays:null==e?void 0:e.membershipDays,membershipEndTime:null==e?void 0:e.membershipEndTime}})),_=n({practiceMonth:l().day(1).format("YYYYMMDD"),startTime:"2023-09",endTime:l().day(7).format("YYYY-MM-DD"),page:1,rows:20}),m=p(!1),u=p(!1),s=p(!1),z=p(!1),Y=p([]),R=function(){var e=r(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!i.isClick){e.next=2;break}return e.abrupt("return");case 2:return i.isClick=!0,m.value&&(Y.value=[],_.page=1,m.value=!1),e.prev=4,e.next=7,v.get("/api-student/sysMusicRecord/studentTrainData",{params:t({},_)});case 7:if(n=e.sent,1===(r=n.data).detail.pageNo&&(i.userTrainOverView=r.userTrainOverView),!(Y.value.length>0&&1===r.detail.pageNo)){e.next=12;break}return e.abrupt("return");case 12:Y.value=Y.value.concat(r.detail.rows||[]),_.page=r.detail.pageNo+1,z.value=Y.value.length>0,u.value=!1,s.value=r.detail.pageNo>=r.detail.totalPage,e.next=23;break;case 19:e.prev=19,e.t0=e.catch(4),z.value=!1,s.value=!0;case 23:i.isClick=!1;case 24:case"end":return e.stop()}}),e,null,[[4,19]])})));return function(){return e.apply(this,arguments)}}();f(r(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,R();case 2:case"end":return e.stop()}}),e)}))));var O=function(){s.value=!1,u.value=!0,R()};return function(){var e;return o("div",{class:[G.exercisContainer]},[o("div",{class:G.topWrap},[o(x,{position:"top"},{default:function(){return[o(D,{border:!1,background:"transparent",color:"#333333"},null),o(k,{class:G.userMember,labelClass:G.timeRemaining},{icon:function(){return o("div",{class:G.userImgSection},[o(j,{class:G.userImg,src:a.value.avatar||T,fit:"cover"},null)])},title:function(){return o("div",{class:G.userInfo},[o("span",{class:G.name},[a.value.username]),o(j,{class:G.level,src:a.value.isVip?I:W},null)])},label:function(){return o("div",{class:G.subjectName},null)}})]}})]),o("img",{class:G.bgImg,src:M},null),z.value?o(S,{modelValue:m.value,"onUpdate:modelValue":function(e){return m.value=e},onRefresh:O,style:{minHeight:"calc(100vh - var(--header-height))"}},{default:function(){return[o(b,{"loading-text":" ",finished:s.value,"finished-text":" ",onLoad:R},(t=e=Y.value.map((function(e){return o(X,{item:e},null)})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!w(t)?e:{default:function(){return[e]}}))];var t}}):o("div",{style:{height:"calc(100vh - var(--header-height))",display:"flex",alignItems:"center"}},[o(h,{tips:"暂无学练统计",btnStatus:!1},null)]),o(y,{show:i.showPopoverTime,"onUpdate:show":function(e){return i.showPopoverTime=e},firstDayOfWeek:1,showConfirm:!1,type:"range",title:"周期选择",maxRange:7,minDate:new Date("2023-02-27"),defaultDate:[l(_.practiceMonth).toDate(),l(_.endTime).toDate()],style:{height:"70%"},onSelect:function(e){if(_.practiceMonth="",_.endTime="",!l(e[0]).isBetween(l(_.practiceMonth),l(_.endTime))){var t=l(e[0]).day();0===t?(_.practiceMonth=l(e[0]).subtract(6,"day").format("YYYYMMDD"),_.endTime=l(e[0]).format("YYYY-MM-DD")):1===t?(_.practiceMonth=l(e[0]).format("YYYYMMDD"),_.endTime=l(e[0]).add(6,"day").format("YYYY-MM-DD")):(_.practiceMonth=l(e[0]).subtract(t-1,"day").format("YYYYMMDD"),_.endTime=l(e[0]).add(7-t,"day").format("YYYY-MM-DD"))}i.showPopoverTime=!1}},null)])}}}))}}}))}();
|