1 |
- !function(){var e=["musicalNotesPlayStats","userMeasureScore","partIndex"];function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function n(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?t(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):t(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(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){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){s=!0,i=e},f:function(){try{l||null==n.return||n.return()}finally{if(s)throw i}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function i(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function l(e,t,n,a,r,o,i){try{var l=e[o](i),s=l.value}catch(c){return void n(c)}l.done?t(s):Promise.resolve(s).then(a,r)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var o=e.apply(t,n);function i(e){l(o,a,r,i,s,"next",e)}function s(e){l(o,a,r,i,s,"throw",e)}i(void 0)}))}}var c=document.createElement("style");c.innerHTML="body{--screen: 1}@media screen and (orientation: landscape){body{--screen: 1}}.ipad{padding-top:10PX}.van-toast--text{min-width:100PX!important;padding:8PX 15PX!important}.van-toast--text .van-toast__text{font-size:14PX!important}.van-toast--top{top:10%!important}.van-toast--loading{width:100PX!important;padding:10PX 20PX!important}.van-toast--loading .van-toast__text{margin-top:8PX!important;font-size:14PX!important}.van-dialog{max-width:50%!important}.van-dialog .van-dialog__message{padding:20PX!important;font-size:16PX!important}.van-dialog .van-dialog__content--isolated{min-height:30PX!important}.van-dialog .van-button__text{font-size:16PX!important}.van-nav-bar .van-icon{color:#1a1a1a!important}.van-nav-bar__title{color:#333!important}._header_aenox_49{padding:calc(.16rem * var(--screen));display:flex;height:calc(1.06667rem * var(--screen));align-items:center;overflow:hidden;padding-bottom:0;justify-content:space-between;padding-right:20PX;background-color:#01c1b5}._header_aenox_49._ios_aenox_60{padding-top:calc(.53333rem * var(--screen))}._header_aenox_49._android_aenox_63{padding-top:calc(.66667rem * var(--screen))}._header_aenox_49 ._title-info_aenox_66{display:flex;align-items:center;width:35%}._header_aenox_49 ._title-info_aenox_66 ._title_aenox_66{font-size:calc(.32rem * var(--screen));flex:1}._header_aenox_49 ._title-info_aenox_66 ._back_aenox_75{width:.64rem}._header_aenox_49 .van-button{border:none;width:calc(.53333rem * var(--screen));height:calc(.53333rem * var(--screen));background-color:transparent}._header_aenox_49 .van-grid-item__content{background-color:transparent;color:#fff}._report_aenox_88{height:100vh;display:flex;width:100%;flex-direction:column;background-color:#01c1b5;box-sizing:border-box}._content_aenox_96{flex:1;margin:0 20PX 20PX;overflow:hidden;overflow-y:auto;position:relative;display:flex;background-color:#fff;border-radius:.21333rem}._content_aenox_96 ._score_aenox_107{padding-top:40PX;border-radius:.13333rem;flex:1}._content_aenox_96 .van-empty{padding:1vh 0;margin:auto}._content_aenox_96 .van-empty__image{width:40vh;height:40vh}._content_aenox_96 .van-empty__description{font-size:16PX}._demos_aenox_123{display:flex;position:absolute;top:20PX;left:55PX}._demos_aenox_123>div{margin-left:10PX;display:flex;align-items:flex-end}._demos_aenox_123>div>span{display:inline-block;margin-left:5PX;font-size:14PX}._right_aenox_139 path{fill:#01c1b5;stroke:#01c1b5}._wrong_aenox_143 path{fill:#f44;stroke:#f44}._notPlay_aenox_147 path{fill:#aeaeae;stroke:#aeaeae}._cadence_wrong_aenox_151 path,._cadence_fast_aenox_152 path,._cadence_slow_aenox_153 path{fill:#f44;stroke:#f44}._intonation_wrong_aenox_157 path,._intonation_high_aenox_158 path,._intonation_low_aenox_159 path{fill:#977cff;stroke:#977cff}._integrity_wrong_aenox_163 path{fill:#cc75ff;stroke:#cc75ff}._grid_aenox_167{padding:20PX 0;max-width:340PX;flex:1}._grid_aenox_167 .van-grid-item__content{padding:0}._grid_aenox_167 .van-grid-item__content:after{border-bottom:none}._grid_aenox_167 .van-hairline--top:after{border:none}._grid_aenox_167 .van-grid-item:last-child .van-grid-item__content:after{border:none}._grid_aenox_167 ._gridinfo_aenox_184{font-size:14PX;font-weight:700;color:#fff}._grid_aenox_167 ._gridname_aenox_189{font-weight:400;font-size:12PX;color:#fff}._btn_aenox_194{font-size:14PX!important;min-width:100PX;position:fixed!important;bottom:10vh;left:50%;transform:translate(-50%)}\n",document.head.appendChild(c),System.register(["./App-legacy.7fe5ecd0.js","./arrow-left-legacy.02402b67.js","./index-legacy.6be891f1.js"],(function(t){"use strict";var o,l,c,d,u,_,f,p,g,h,v,m,x,y,b,w,P,O,N,S,C,E,I,j,X,k,A;return{setters:[function(e){o=e.d,l=e.a,c=e.g,d=e.b,u=e.H,_=e.I,f=e.B,p=e.G,g=e.j,h=e.e,v=e.F,m=e.l,x=e.q,y=e.y,b=e.x,w=e.J,P=e.n,O=e.p,N=e.K,S=e.L,C=e.N,E=e.S,I=e.z,j=e.C},function(e){X=e.I,k=e.T},function(e){A=e.P}],execute:function(){var R=t("h",{BEGINNER:"入门级",ADVANCED:"进阶级",PERFORMER:"大师级"}),T=t("N",o({name:"NoteSvg",props:{fill:String,shadow:{type:Boolean,defalut:!1},shadowStyle:{type:Object,defalut:{}},x:{type:Number,default:0},y:{type:Number,default:0}},render:function(){return this.shadow?l("svg",{width:"14px",height:"24px",viewBox:"0 0 14 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[l("title",null,[c("节奏快了")]),l("g",{id:"最终",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[l("g",{id:"评测报告(增加类型)",transform:"translate(-224.000000, -132.000000)"},[l("g",{id:"编组-12备份",transform:"translate(80.000000, 132.000000)"},[l("g",{id:"节奏快了",transform:"translate(144.000000, 0.000000)"},[l("rect",{id:"矩形备份-22",x:"0",y:"0",width:"14",height:"24"},null),l("g",{id:"编组-2",transform:"translate(2.000000, 0.000000)"},[l("ellipse",{id:"椭圆形",fill:this.fill,transform:"translate(4.685927, 18.917813) scale(-1, -1) rotate(-32.000000) translate(".concat(this.x+-4.685927,", ").concat(this.y+-18.917813,")"),cx:"4.68592654",cy:"18.9178127",rx:"3.70078457",ry:"2.92022453"},null),l("path",{d:"M4.95251677,0.68258909 C6.68583115,-0.400505943 8.78379192,-0.169765229 9.63844331,1.1979629 C10.4930947,2.56569103 9.78079761,4.55247575 8.04748323,5.63557079 C6.85503595,6.38069455 5.49000663,6.50399819 4.47594704,6.06306368 L4.47635248,22.0768926 L3.01624022,22.0768926 L3.0154716,4.11169688 C2.88257588,2.8976469 3.61236702,1.52000759 4.95251677,0.68258909 Z",id:"形状结合","fill-opacity":"0.7",fill:"#2DC7AA",transform:"translate(6.500000, 11.038446) scale(-1, -1) translate(-6.500000, -11.038446) "},null)])])])])])]):l("svg",{width:"7px",height:"23px",viewBox:"0 0 7 23",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[l("g",{id:"智能打分",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[l("g",{id:"开始演奏备份",transform:"translate(-55.000000, -24.000000)"},[l("g",{id:"编组-4",transform:"translate(55.000000, 24.000000)",fill:this.fill},[l("path",{d:"M1.95251677,0.68258909 C3.68583115,-0.400505943 5.78379192,-0.169765229 6.63844331,1.1979629 C7.4930947,2.56569103 6.78079761,4.55247575 5.04748323,5.63557079 C3.85503595,6.38069455 2.49000663,6.50399819 1.47594704,6.06306368 L1.47635248,22.0768926 L0.0162402201,22.0768926 L0.0154715991,4.11169688 C-0.117424115,2.8976469 0.612367024,1.52000759 1.95251677,0.68258909 Z",id:"形状结合",transform:"translate(3.500000, 11.038446) scale(-1, -1) translate(-3.500000, -11.038446) "},null)])])])])}})),L="_header_aenox_49",M="_title-info_aenox_66",F="_back_aenox_75",z="_report_aenox_88",H="_content_aenox_96",B="_score_aenox_107",D="_demos_aenox_123",G="_right_aenox_139",W="_wrong_aenox_143",q="_notPlay_aenox_147",Y="_cadence_wrong_aenox_151",U="_cadence_fast_aenox_152",V="_cadence_slow_aenox_153",Z="_intonation_wrong_aenox_157",$="_intonation_high_aenox_158",J="_intonation_low_aenox_159",K="_integrity_wrong_aenox_163",Q="_grid_aenox_167",ee="_gridinfo_aenox_184",te="_gridname_aenox_189",ne="_btn_aenox_194";d();var ae=o({props:["data"],methods:{back:function(){u({api:"back"})}},render:function(){var e,t,n=this;return l("div",{class:"van-nav-bar--safe-area-inset-top"},[l("div",{class:_(L)},[l("div",{class:M},[l(f,{class:F,onClick:this.back,icon:X},null),l(k,{onClick:function(){},title:null===(e=this.data)||void 0===e?void 0:e.sysMusicScoreName,rightView:!1},null)]),l("div",{class:Q},[l(p,{"column-num":g.isPercussion?2:5,style:{display:null!==(t=this.data)&&void 0!==t&&t.score?"":"none"}},{default:function(){return[l(h,null,{icon:function(){var e;return l("span",{class:ee},[R[null===(e=n.data)||void 0===e?void 0:e.heardLevel]])},text:function(){return l("span",{class:te},[c("难度")])}}),l(h,null,{icon:function(){var e;return l("span",{class:ee},[null===(e=n.data)||void 0===e?void 0:e.score,c("分")])},text:function(){return l("span",{class:te},[c("评测分数")])}}),g.isPercussion?null:l(v,null,[l(h,null,{icon:function(){var e;return l("span",{style:{color:"#A2FFEC"},class:ee},[null===(e=n.data)||void 0===e?void 0:e.intonation,c("分")])},text:function(){return l("span",{class:te},[c("音准")])}}),l(h,null,{icon:function(){var e;return l("span",{style:{color:"#FFC865"},class:ee},[null===(e=n.data)||void 0===e?void 0:e.cadence,c("分")])},text:function(){return l("span",{class:te},[c("节奏")])}}),l(h,null,{icon:function(){var e;return l("span",{style:{color:"#FFF1B8"},class:ee},[null===(e=n.data)||void 0===e?void 0:e.integrity,c("分")])},text:function(){return l("span",{class:te},[c("完成度")])}})])]}})])])])}}),re=d(),oe=t("c",{RIGHT:G,WRONG:W,NOT_PLAY:q,CADENCE_WRONG:Y,INTONATION_WRONG:Z,INTEGRITY_WRONG:K,CADENCE_FAST:U,CADENCE_SLOW:V,INTONATION_HIGH:$,INTONATION_LOW:J}),ie=o({name:"report",data:function(){return{data:null,score:null,allNote:[],allResNote:[],loading:!1,hasError:!1,empty:!1,paddingLeft:20,svgHeight:0,userMeasureScore:null,paddingTop:0}},created:function(){re.android&&u({api:"setBarStatus",content:{status:0}})},mounted:function(){var e=this;return s(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:console.log(g),e.FetchList(),re.android?u({api:"getNavHeight"},(function(t){var n=t.content,a=n.dpi||2;n.navHeight&&(e.paddingTop=n.navHeight/a,e.paddingLeft=n.navHeight/a)})):re.ios&&u({api:"isSpecialShapedScreen"},(function(t){var n=null==t?void 0:t.content.notchHeight;e.paddingLeft=n||(null!=t&&t.content.isSpecialShapedScreen&&re.ios?50:0)}));case 3:case"end":return t.stop()}}),t)})))()},methods:{FetchList:function(){var t=this;return s(regeneratorRuntime.mark((function n(){var a,r,o,l,s,c,d,u,_,f,p,h,v,P;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.loading=!0,t.hasError=!1,t.empty=!1,n.prev=3,n.next=6,m.get("/sysMusicRecord/getLastEvaluationMusicalNotesPlayStats",{params:{recordId:t.$route.params.id}});case 6:if((o=n.sent).data){n.next=11;break}return t.empty=!0,t.loading=!1,n.abrupt("return");case 11:return n.next=13,m.get("/sysMusicScoreAccompaniment/queryPage",{params:{clientType:"SMART_PRACTICE",sysMusicScoreId:o.data.musicalNotesPlayStats.examSongId}});case 13:return l=n.sent,s=null===(a=l.data[0])||void 0===a?void 0:a.parentCategoriesId,g.subjectId=null===(r=l.data[0])||void 0===r?void 0:r.subjectId,c=o.data,d=c.musicalNotesPlayStats,u=c.userMeasureScore,_=c.partIndex,f=i(c,e),g.partIndex=_||0,t.data=f,t.userMeasureScore=u,t.allResNote=d.notesData,n.next=23,x.get(d.xmlUrl,{mode:"cors"});case 23:p=n.sent,t.score=y(b(p),g.partIndex),h=26==s||43==s,v=g.partListNames[g.partIndex],P=h&&v?" - "+w(v):"",t.data.sysMusicScoreName=t.data.sysMusicScoreName+P,n.next=34;break;case 31:n.prev=31,n.t0=n.catch(3),t.hasError=!0;case 34:t.loading=!1;case 35:case"end":return n.stop()}}),n,null,[[3,31]])})))()},onRerender:function(e){var t,o,i=this;this.svgHeight=(null==e||null===(t=e.container)||void 0===t||null===(o=t.querySelector("svg"))||void 0===o?void 0:o.getBoundingClientRect().height)||0,this.allNote=P(e),g.times=this.allNote;var l,s=r(this.allResNote);try{var c=function(){var e=l.value,t=i.allNote[e.musicalNotesIndex];setTimeout((function(){var n=document.getElementById("vf-"+t.id);null==n||n.classList.add(oe[e.musicalErrorType])}),300)};for(s.s();!(l=s.n()).done;)c()}catch(b){s.e(b)}finally{s.f()}var d=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=I(e);g.evaluatings=n(n({},g.evaluatings),{},a({},o.measureIndex,n(n(n({},o),j(t.score)),{},{score:t.score,dontTransition:r})))};if(this.userMeasureScore)for(var u in this.userMeasureScore)if(Object.prototype.hasOwnProperty.call(this.userMeasureScore,u)){var _,f=this.userMeasureScore[u],p=r(this.allNote);try{for(p.s();!(_=p.n()).done;){var h=_.value;if(f.measureRenderIndex==h.noteElement.sourceMeasure.MeasureNumberXML-1)if(h.noteElement.tie){var v,m=r(h.noteElement.tie.notes);try{for(m.s();!(v=m.n()).done;){var x=v.value,y=O(x);y&&d(y,f,x!==h.noteElement.tie.StartNote)}}catch(b){m.e(b)}finally{m.f()}}else d(h,f)}}catch(b){p.e(b)}finally{p.f()}}}},render:function(){var e,t=this;return l("div",{class:z,style:{paddingTop:this.paddingTop/2+"px"}},[l(ae,{data:this.data},null),l("div",{class:H,style:{marginLeft:this.paddingLeft+"px"}},[this.hasError?l(N,{image:"error",description:"请求错误"},{description:function(){return l("span",null,[c("请求错误")," ",l("a",{style:"color: #01C1B5;",href:"javascript:;",onClick:t.FetchList},[c("重新加载")])])}}):null,this.empty?l(N,{description:"暂无评测数据"},null):null,!this.hasError&&this.data?l("div",{class:D},[l("div",null,[l(T,{fill:"#01C1B5"},null),l("span",null,[c("演奏正确")])]),l("div",null,[l(T,{fill:"#067DD7"},null),l("span",null,[c("节奏错误")])]),g.isPercussion?null:l(v,null,[l("div",null,[l(T,{fill:"#FFAB25"},null),l("span",null,[c("音准错误")])]),l("div",null,[l(T,{fill:"#CC75FF"},null),l("span",null,[c("完成度不足")])])]),l("div",null,[l(T,{fill:"#000"},null),l("span",null,[c("未演奏")])])]):null,l(S,{type:"report",top:40,left:0,style:{position:"absolute",width:"100%",height:this.svgHeight+"px"}},null),this.score?l(C,{class:B,score:this.score,onRerender:this.onRerender},null):this.loading?l(E,{row:6},null):null,null!==(e=this.data)&&void 0!==e&&e.videoFilePath?l(A,this.data,{default:function(){return[l(f,{color:"#01c1b5",round:!0,size:"mini",icon:"replay",class:ne},{default:function(){return[c("查看回放")]}})]}}):null])])}}),le=Object.freeze(Object.defineProperty({__proto__:null,colors:{RIGHT:"#01C1B5",WRONG:"#FF4444",NOT_PLAY:"#AEAEAE"},colorsClass:oe,default:ie},Symbol.toStringTag,{value:"Module"}));t("i",le)}}}))}();
|