exercis-detail-legacy.297bedd2.js 15 KB

12
  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 i=null!=arguments[r]?arguments[r]:{};r%2?e(Object(i),!0).forEach((function(e){n(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,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,t,n,r,i,o,a){try{var l=e[o](a),c=l.value}catch(s){return void n(s)}l.done?t(c):Promise.resolve(c).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function l(e){r(a,i,o,l,c,"next",e)}function c(e){r(a,i,o,l,c,"throw",e)}l(void 0)}))}}var o=document.createElement("style");o.innerHTML="._itemWrap_d4ln4_1{background:#ffffff;border-radius:.26667rem;padding:.32rem .4rem .53333rem;margin:0 .34667rem .34667rem}._itemWrap_d4ln4_1 ._itemTop_d4ln4_7{display:flex;flex-direction:row;justify-content:space-between;align-items:center;border-bottom:.02667rem solid #f2f2f2;padding-bottom:.32rem}._itemWrap_d4ln4_1 ._itemTop_d4ln4_7 ._itemTopLeft_d4ln4_15 ._itemTopMain_d4ln4_15{height:.58667rem;font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem;margin-bottom:.16rem}._itemWrap_d4ln4_1 ._itemTop_d4ln4_7 ._itemTopLeft_d4ln4_15 ._itemTopSub_d4ln4_23{font-size:.32rem!important;font-weight:400;color:#777;line-height:.45333rem}._itemWrap_d4ln4_1 ._itemTop_d4ln4_7 ._itemTopRight_d4ln4_29{display:flex;flex-direction:row;align-items:center}._itemWrap_d4ln4_1 ._itemTop_d4ln4_7 ._itemTopRight_d4ln4_29 ._imgWrap_d4ln4_34{width:2.66667rem;height:.88rem;background:#e9e3ff;border-radius:.50667rem}._itemWrap_d4ln4_1 ._itemTop_d4ln4_7 ._itemTopRight_d4ln4_29 ._imgWrap_d4ln4_34 img{width:100%;height:100%}._itemWrap_d4ln4_1 ._itemTop_d4ln4_7 ._itemTopRight_d4ln4_29 ._imgIcon_d4ln4_44{font-size:.42667rem;color:#d8d8d8;margin-left:.16rem}._itemWrap_d4ln4_1 ._itemBottom_d4ln4_49{margin-top:.4rem;display:flex;flex-direction:row;align-items:center;justify-content:space-around;text-align:center}._itemWrap_d4ln4_1 ._itemBottom_d4ln4_49 ._itemBottomDot_d4ln4_57{width:25%}._itemWrap_d4ln4_1 ._itemBottom_d4ln4_49 ._itemBottomDot_d4ln4_57 ._dotMain_d4ln4_60{font-size:.69333rem;color:#333;line-height:.8rem;margin-bottom:.10667rem;font-family:DINA;font-weight:400}._itemWrap_d4ln4_1 ._itemBottom_d4ln4_49 ._itemBottomDot_d4ln4_57 ._dotMain_d4ln4_60 span{margin-left:.02667rem;font-size:.32rem;font-weight:400;color:#333;line-height:.45333rem}._itemWrap_d4ln4_1 ._itemBottom_d4ln4_49 ._itemBottomDot_d4ln4_57 ._dotSub_d4ln4_75{font-size:.32rem;font-weight:400;color:#777;line-height:.45333rem}._exercisContainer_jyryw_1{background:url(./assets/detail-bg.1d94c577.png) top center / cover no-repeat;background-size:contain}._topWrap_jyryw_5 ._topInfo_jyryw_5{padding:.90667rem .4rem .8rem;display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:nowrap}._topWrap_jyryw_5 ._topInfo_jyryw_5 ._topInfoLeft_jyryw_13{width:50%;display:flex;flex-direction:row;align-items:center}._topWrap_jyryw_5 ._topInfo_jyryw_5 ._topInfoLeft_jyryw_13 ._headWrap_jyryw_19{flex-shrink:0;border-radius:50%;overflow:hidden;border:.05333rem solid #fff;margin-right:.4rem}._topWrap_jyryw_5 ._topInfo_jyryw_5 ._topInfoLeft_jyryw_13 ._infoMsg_jyryw_26 p{display:inline-block;width:3.2rem;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-size:.53333rem;font-weight:600;color:#000;line-height:.74667rem;margin-bottom:.16rem}._topWrap_jyryw_5 ._topInfo_jyryw_5 ._topInfoLeft_jyryw_13 ._infoMsg_jyryw_26 ._tag_jyryw_38{display:inline-block;padding:0 .29333rem;background:#ff8057;border-radius:.32rem;height:.64rem;font-size:.37333rem;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#fff;line-height:.64rem;text-align:center}._topWrap_jyryw_5 ._topInfo_jyryw_5 ._topInfoRight_jyryw_51{width:50%;display:flex;flex-direction:row;align-items:center;justify-content:flex-end}._topWrap_jyryw_5 ._topInfo_jyryw_5 ._topInfoRight_jyryw_51 ._infoDay_jyryw_58{margin-right:.8rem}._topWrap_jyryw_5 ._topInfo_jyryw_5 ._topInfoRight_jyryw_51 ._infoDayMain_jyryw_61{font-size:.66667rem;color:#333;line-height:.74667rem;margin-bottom:.18667rem;font-family:DINA;font-weight:400;text-align:center}._topWrap_jyryw_5 ._topInfo_jyryw_5 ._topInfoRight_jyryw_51 ._infoDayMain_jyryw_61 span{margin-left:.05333rem;font-size:.32rem;font-weight:400;color:#333;line-height:.45333rem}._topWrap_jyryw_5 ._topInfo_jyryw_5 ._topInfoRight_jyryw_51 ._infoDaysub_jyryw_77{font-size:.32rem;font-weight:400;color:#333;line-height:.45333rem;text-align:center}._topWrap_jyryw_5 ._chioseWrap_jyryw_84{display:flex;flex-direction:row;align-items:center;background-color:transparent;font-weight:500;color:#333;line-height:.53333rem;font-size:.37333rem}._DialogTitle_jyryw_94{display:flex;flex-direction:row;align-items:center;padding:.53333rem .66667rem}._DialogTitle_jyryw_94 span{width:.10667rem;height:.37333rem;background:#ff8057;border-radius:.05333rem;margin-right:.16rem}._DialogTitle_jyryw_94 p{height:.66667rem;font-size:.48rem;font-weight:500;color:#333;line-height:.66667rem}._DialogConent_jyryw_114{padding:0 .66667rem .8rem}._DialogConent_jyryw_114 p{font-size:.42667rem;line-height:.8rem;color:#333}.exercisDetailDialog{border-radius:.26667rem}.exercisDetailDialog .van-dialog__header{padding-top:0!important}.van-dialog{top:47%}\n",document.head.appendChild(o),System.register(["./index-legacy.48c8d62c.js","./index-legacy.f3037807.js","./index-legacy.8cf5f94f.js","./index-legacy.b00f6427.js","./quest-icon-legacy.8dd60bcc.js","./icon_student-legacy.6118fd72.js","./index-legacy.0e0de364.js","./index-legacy.04f465c8.js","./index-legacy.a53f47a7.js","./index-legacy.ac553194.js","./use-tab-status-legacy.6949b1de.js","./utils-legacy.60f652b8.js","./index-legacy.384d768f.js","./index-legacy.ef66d7bb.js","./index-legacy.71047e87.js","./index-legacy.a2ac81dd.js"],(function(e){"use strict";var n,r,o,a,l,c,s,_,p,u,m,d,f,y,g,h,w,v,j,b,x,D,T,I,W,M,k,O,C,P,R;return{setters:[function(e){n=e.d,r=e.c,o=e.a5,a=e.q,l=e.F,c=e.k,s=e.ag,_=e.aV,p=e.R,u=e.f,m=e.r,d=e.ah,f=e.$,y=e._,g=e.am,h=e.aT,w=e.ai,v=e.P,j=e.aj,b=e.aW,x=e.ak,D=e.m,T=e.o},function(e){I=e.O},function(e){W=e.O},function(e){M=e.O},function(e){k=e.q},function(e){O=e.i},function(e){C=e.I},function(e){P=e.L},function(e){R=e.D},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var L="_itemWrap_d4ln4_1",z="_itemTop_d4ln4_7",B="_itemTopLeft_d4ln4_15",V="_itemTopMain_d4ln4_15",N="_itemTopSub_d4ln4_23",S="_itemTopRight_d4ln4_29",Y="_imgWrap_d4ln4_34",q="_imgIcon_d4ln4_44",E="_itemBottom_d4ln4_49",F="_itemBottomDot_d4ln4_57",U="_dotMain_d4ln4_60",A="_dotSub_d4ln4_75",H={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:"你很棒"}},G=n({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},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:L,onClick:n},[r("div",{class:z},[r("div",{class:B},[r("p",{class:V},[e.item.musicSheetName]),r("p",{class:N},[e.item.createTime])]),r("div",{class:S},[r("div",{class:Y},[r("img",{src:H[t(e.item.score||0)].img,alt:""},null)]),r(o,{name:"arrow",class:q},null)])]),r("div",{class:E},[r("div",{class:F},[r("p",{class:U,style:{color:"#F67146"}},[e.item.score||0,r("span",null,[a("分")])," "]),r("p",{class:A},[a(" 综合得分")])]),r("div",{class:F},[r("p",{class:U},[e.item.intonation||0,r("span",null,[a("分")])," "]),r("p",{class:A},[a("音准 ")])]),r("div",{class:F},[r("p",{class:U},[e.item.cadence||0,r("span",null,[a("分")])," "]),r("p",{class:A},[a("节奏 ")])]),r("div",{class:F},[r("p",{class:U},[e.item.integrity||0,r("span",null,[a("分")])," "]),r("p",{class:A},[a("完成度 ")])])])])])])}}}),$={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}),L=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"}),z=p(!1),B=p(new Date(d().subtract(10,"year").format("YYYY-MM-DD"))),V=p(new Date(d().add(10,"year").format("YYYY-MM-DD"))),N=p(["year","month"]),S=p(!1),Y=p(!1),q=p(!1),E=p(!1),F=p({}),U=p([]),A=function(){var e=i(regeneratorRuntime.mark((function e(){var r,i;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&&(U.value=[],L.page=1,S.value=!1),e.prev=4,e.next=7,D.post("".concat(n.value,"/musicPracticeRecord/page"),{data:t(t({},L),{},{feature:"EVALUATION"})});case 7:if(r=e.sent,!(U.value.length>0&&1===r.data.current)){e.next=10;break}return e.abrupt("return");case 10:U.value=U.value.concat(r.data.rows||[]),L.page=r.data.current+1,E.value=U.value.length>0,Y.value=!1,console.log(r.data,r.data.current>=r.data.pages),q.value=r.data.current>=r.data.pages,e.next=24;break;case 18:e.prev=18,e.t0=e.catch(4),i=e.t0.message,T(i),E.value=!1,q.value=!0;case 24:c.isClick=!1;case 25:case"end":return e.stop()}}),e,null,[[4,18]])})));return function(){return e.apply(this,arguments)}}(),H=function(){var e=i(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,D.get("/api-backend/student/detail/".concat(c.id));case 3:n=e.sent,console.log(n),F.value=t({},n.data),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),r=e.t0.message,T(r);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),J=p(),K=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,A();case 2:return e.next=4,H();case 4:window.addEventListener("scroll",Q),y((function(){var e=g(J.value).height;K.value=e}));case 6:case"end":return e.stop()}}),e)})))),h((function(){window.removeEventListener("scroll",Q)}));var Q=function(){var e=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;c.scrollTop=e},X=function(e){c.heightV=e,console.log(e,"dataHeight")},Z=function(e){L.practiceMonth=e.selectedValues[0]+e.selectedValues[1],L.practiceMonthName=e.selectedValues[0]+"年"+e.selectedValues[1]+"月",c.showPopoverTime=!1,S.value=!0,A()},ee=function(){q.value=!1,Y.value=!0,A()};return function(){var e;return r(l,null,[r("div",{class:[$.exercisContainer,!E.value&&"emptyRootContainer"]},[r("div",{class:$.topWrap,ref:J},[r(W,{position:"top",background:"#F8F8F8",onGetHeight:X},{default:function(){return[r(I,{border:!1,background:c.heightV>c.scrollTop?"transparent":"#fff"},{right:function(){return r(o,{name:k,size:22,color:"#333",onClick:function(){z.value=!0}},null)}})]}}),r("div",{class:$.topInfo},[r("div",{class:$.topInfoLeft},[r("div",{class:$.headWrap},[r(C,{src:F.value.avatar?F.value.avatar:O,fit:"cover",width:"68px",height:"68px"},null)]),r("div",{class:$.infoMsg},[r("p",null,[F.value.nickname]),r("div",{class:$.tag},[F.value.subjectNames?F.value.subjectNames:"暂无声部"])])]),r("div",{class:$.topInfoRight},[r("div",{class:$.infoDay},[r("p",{class:$.infoDayMain},[F.value.practiceDays?F.value.practiceDays:0,"",r("span",null,[a("天")])]),r("p",{class:$.infoDaysub},[a("练习天数")])]),r("div",{class:$.infoTime},[r("p",{class:$.infoDayMain},[F.value.practiceTimes?F.value.practiceTimes:0,"",r("span",null,[a("分钟")])]),r("p",{class:$.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,[L.practiceMonthName])])])]),E.value?r(M,{modelValue:S.value,"onUpdate:modelValue":function(e){return S.value=e},onRefresh:ee,style:"min-height: 100vh;"},{default:function(){return[r(P,{"loading-text":" ",finished:q.value,"finished-text":"没有更多了",onLoad:A},(t=e=U.value.map((function(e){return r(G,{item:e},null)})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!x(t)?e:{default:function(){return[e]}}))];var t}}):r(w,{tips:"暂无练习统计"},null)]),r(v,{show:c.showPopoverTime,"onUpdate:show":function(e){return c.showPopoverTime=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[r(R,{onCancel:function(){c.showPopoverTime=!1},onConfirm:Z,modelValue:c.currentDate,"onUpdate:modelValue":function(e){return c.currentDate=e},minDate:B.value,maxDate:V.value,formatter:j,columnsType:N.value},null)]}}),r(b,{class:"exercisDetailDialog",show:z.value,"onUpdate:show":function(e){return z.value=e},title:"提示框",confirmButtonText:"我知道了"},{title:function(){return r("div",{class:$.DialogTitle},[r("span",null,null),r("p",null,[a("什么是练习数据")])])},default:function(){return r("div",{class:$.DialogConent},[r("p",null,[a("练习数据是学生通过云教练自主练习的数据统计,可根据时间段查询学生的练习天数和练习时长")," "]),r("p",null,[a("练习天数:当天有曲目播放或测评记录即算练习")]),r("p",null,[a("练习时长:曲目播放和曲目测评的时长总和")])])}})])}}}))}}}))}();