1 |
- import{d as D,a as t,I as E,A as u,S as B,P as I,x as w,a6 as v,r as l,y as S,z as T,W as k,a2 as R,Q as L,a7 as N,F as U,a3 as z,D as _,M as j,$ as P}from"./index-521a9826.js";import{M as V}from"./index-c0ea6da9.js";import{M as F}from"./index-4abd1098.js";import{i as Q}from"./icon-student-36c056f8.js";import{u as W,a as Y}from"./index-fdaad3c0.js";import{I as X}from"./index-25b5c9d0.js";import{C as x}from"./index-9b272659.js";import{C as H}from"./index-1ad6a58d.js";import{L as q}from"./index-b1810e0a.js";import{D as G}from"./index-e6f8cf91.js";import"./use-tab-status-da6d8e9f.js";import"./index-673d3e97.js";const K="_itemWrap_uzkwm_1",J="_itemTop_uzkwm_7",Z="_itemTopLeft_uzkwm_15",O="_itemTopMain_uzkwm_15",$="_itemTopSub_uzkwm_27",tt="_itemTopRight_uzkwm_33",et="_imgWrap_uzkwm_38",at="_imgIcon_uzkwm_48",ot="_itemBottom_uzkwm_53",st="_itemBottomDot_uzkwm_61",it="_dotMain_uzkwm_64",nt="_dotSub_uzkwm_79",o={itemWrap:K,itemTop:J,itemTopLeft:Z,itemTopMain:O,itemTopSub:$,itemTopRight:tt,imgWrap:et,imgIcon:at,itemBottom:ot,itemBottomDot:st,dotMain:it,dotSub:nt},ct=""+new URL("Image1-cbe96dac.png",import.meta.url).href,rt=""+new URL("Image2-0b12593f.png",import.meta.url).href,ut=""+new URL("Image3-d7139ab6.png",import.meta.url).href,mt=""+new URL("Image4-4870f6bf.png",import.meta.url).href,lt=""+new URL("Image5-150ad63a.png",import.meta.url).href,pt={1:{img:ct,tips:"你的演奏不太好,音准和完整性还需加强,再练一练吧~",mome:"敢于尝试"},2:{img:rt,tips:"你的演奏还不熟练,音准和完整性还需加强,加紧训练才能有好成绩哦~",mome:"还要加油哦~"},3:{img:ut,tips:"你的演奏还不流畅,音准和节奏还需加强,科学的练习才能更完美哦~",mome:"突破自我"},4:{img:mt,tips:"你的演奏还不错,继续加油吧,加强音准,离完美就差一步啦~",mome:"崭露头角"},5:{img:lt,tips:"你的演奏非常不错,音准的把握和节奏稍有瑕疵,完整性把握的很好~",mome:"你很棒"}},ft=D({props:["item"],name:"detail-item",setup(s){const e=i=>{if(!i&&typeof i!="number")return{};let m=1;return i>20&&i<=40?m=2:i>40&&i<=60?m=3:i>60&&i<=80?m=4:i>80&&(m=5),m},p=()=>{const i=window.location.origin+`/instrument/#/evaluat-report?id=${s.item.id}`;B({api:"openWebView",content:{url:i,orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0}})};return()=>t("div",{class:o.itemWrap,onClick:p},[t("div",{class:o.itemTop},[t("div",{class:o.itemTopLeft},[t("p",{class:o.itemTopMain},[s.item.musicSheetName]),t("p",{class:o.itemTopSub},[s.item.createTime])]),t("div",{class:o.itemTopRight},[t("div",{class:o.imgWrap},[t("img",{src:pt[e(s.item.score||0)].img,alt:""},null)]),t(E,{name:"arrow",class:o.imgIcon},null)])]),t("div",{class:o.itemBottom},[t("div",{class:o.itemBottomDot},[t("p",{class:o.dotMain,style:{color:"#ff5a56"}},[s.item.score||0,t("span",null,[u("分")])," "]),t("p",{class:o.dotSub},[u(" 综合得分")])]),t("div",{class:o.itemBottomDot},[t("p",{class:o.dotMain},[s.item.intonation||0,t("span",null,[u("分")])," "]),t("p",{class:o.dotSub},[u("音准 ")])]),t("div",{class:o.itemBottomDot},[t("p",{class:o.dotMain},[s.item.cadence||0,t("span",null,[u("分")])," "]),t("p",{class:o.dotSub},[u("节奏 ")])]),t("div",{class:o.itemBottomDot},[t("p",{class:o.dotMain},[s.item.integrity||0,t("span",null,[u("分")])," "]),t("p",{class:o.dotSub},[u("完成度 ")])])])])}}),dt="_exercisContainer_1jyfa_1",gt="_topWrap_1jyfa_5",vt="_topInfo_1jyfa_8",ht="_topInfoLeft_1jyfa_16",yt="_headWrap_1jyfa_22",At="_headerImg_1jyfa_30",wt="_infoMsg_1jyfa_34",_t="_tag_1jyfa_51",Dt="_topInfoRight_1jyfa_63",Mt="_infoDay_1jyfa_71",bt="_infoTime_1jyfa_72",Ct="_infoDayMain_1jyfa_88",Et="_infoDaysub_1jyfa_104",Bt="_chioseWrap_1jyfa_119",It="_select_1jyfa_129",St="_icon_1jyfa_132",n={exercisContainer:dt,topWrap:gt,topInfo:vt,topInfoLeft:ht,headWrap:yt,headerImg:At,infoMsg:wt,tag:_t,topInfoRight:Dt,infoDay:Mt,infoTime:bt,infoDayMain:Ct,infoDaysub:Et,chioseWrap:Bt,select:It,icon:St},Tt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAABAJJREFUSEudlk1sVFUUx//nzrzX1plOE8QPNiNqC1Jpa6eKBjducDQxLjRxxaJkStmAgWDQSBcu+FI2iCtIkSaQmLjQxGhMU5s0RkExlI9GBFoMjFFr1Ca0nWn7ZuYec9/XvJk3M+/h3czkvnPP755z/ufeSwgzmOm5Xwq9EcZmEuhgyavUMhI0xxLTJcK5HzZol0DEQe6okUH3FY7FteJuknKQGUm41lV+mUCELDNOLkr92NUeytXzWxf4/FQxI7l4AMDDQbuu+E6YBcTQ+S79VK11PmDnz6wnCsYJgPvdiJyAqq3rzSsS08i8pu+49iQZXnCFCwVrNVZGAbxwT1G5xtUlpIkFvSnthVYAn7m4dBpAfzXMa7RGJ7yb1FTNcChbwB8rDDdQx9CesH9Gfupr2eb4dH1tmjQyLEvDXlgtyb2TjOL1B6Km2ed/F3E4W6ybDGe9EJGBCymrpiZQqVE3lmeYgwVy6HENL66KmJDxuRLevlWon307HAJmDb25XanXnEr9uLQfYKVIc5CtlnKyyj4PK+D9VoTfKOCM0kQ9NXn3EhmafLbpIIGZei8s3wZz0i1GgyY60u4B/lvCvukKEVau9NSUBGUnNzWvpe7zuZSQdNEOLVCcRzo0pFdbEY4p4M0GQNubU0sm7qOe75Z3AvIj65v1qdxe1ha97fb+Og1pWzRj/5Tw1g0DFCY1ypEQu6j7+/yHkPym13G5lt5tWJX6YL1eAdx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o0BVEL1pX3C/0ETv2+tWXZQkciRXY9672pu88h/et8qwHaECuQAAAABJRU5ErkJggg==";function Rt(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!z(s)}const xt=D({name:"exercis-detail",setup(){const s=I(),e=w({showPopoverTime:!1,currentDate:[v().format("YYYY"),v().format("MM")],isClick:!1,background:"transparent",color:"#fff",practiceMonthName:s.query.practiceMonthName?s.query.practiceMonthName:v().format("YYYY")+"年"+v().format("MM")+"月"}),p=w({practiceMonth:s.query.practiceMonth?s.query.practiceMonth:e.currentDate[0]+""+e.currentDate[1],page:1,rows:20}),i=l(!1),m=l(!1),d=l(!1),h=l(!1),c=l({}),f=l([]),g=async()=>{if(!e.isClick){e.isClick=!0,i.value&&(f.value=[],p.page=1,i.value=!1);try{const a=await _.post("/edu-app/musicPracticeRecord/page",{data:{...p,feature:"EVALUATION"}});if(f.value.length>0&&a.data.current===1)return;f.value=f.value.concat(a.data.rows||[]),p.page=a.data.current+1,h.value=f.value.length>0,m.value=!1,d.value=a.data.current>=a.data.pages}catch(a){h.value=!1,d.value=!0}e.isClick=!1}},M=async()=>{var a;try{const r=await _.get("/edu-app/student/detail",{params:{id:(a=j.user.data)==null?void 0:a.id}});c.value={...r.data}}catch(r){}},A=l(),y=l(0);S(async()=>{W(document,"scroll",()=>{const{y:a}=Y();a.value>52?(e.background="#fff",e.color="#323333"):(e.background="transparent",e.color="#fff")}),await g(),await M(),T(()=>{const{height:a}=P(A.value);y.value=a})});const b=a=>{p.practiceMonth=a.selectedValues[0]+a.selectedValues[1],e.practiceMonthName=a.selectedValues[0]+"年"+a.selectedValues[1]+"月",e.showPopoverTime=!1,i.value=!0,g()},C=()=>{d.value=!1,m.value=!0,g()};return()=>{let a;return t(U,null,[t("div",{class:[n.exercisContainer]},[t("div",{class:n.topWrap,ref:A},[t(V,{position:"top"},{default:()=>[t(k,{border:!1,background:e.background,color:e.color},null)]}),t("div",{class:n.topInfo},[t("div",{class:n.topInfoLeft},[t("div",{class:n.headWrap},[t(X,{src:c.value.avatar?c.value.avatar:Q,fit:"cover",class:n.headerImg},null)]),t("div",{class:n.infoMsg},[t("p",null,[c.value.nickname]),t("div",{class:n.tag},[c.value.subjectNames?c.value.subjectNames:"暂无声部"])])])]),t("div",{class:n.topInfoRight},[t("div",{class:n.infoDay},[t("p",{class:n.infoDayMain},[c.value.practiceDays?c.value.practiceDays:0]),t("p",{class:n.infoDaysub},[t("img",{src:kt},null),u("练习天数(天)")])]),t("div",{class:n.infoTime},[t("p",{class:n.infoDayMain},[c.value.practiceTimes?Math.floor(c.value.practiceTimes/60):0]),t("p",{class:n.infoDaysub},[t("img",{src:Tt},null),u("练习时长(分钟)")])])]),t(x,{inset:!0},{default:()=>[t(H,{class:n.select,center:!0,isLink:!0,onClick:()=>e.showPopoverTime=!0},{title:()=>t("div",{class:"van-ellipsis"},[e.practiceMonthName])})]})]),h.value?t(F,{modelValue:i.value,"onUpdate:modelValue":r=>i.value=r,onRefresh:C,style:{minHeight:`calc(100vh - ${y.value}px)`}},{default:()=>[t(q,{"loading-text":" ",finished:d.value,"finished-text":" ",onLoad:g},Rt(a=f.value.map(r=>t(ft,{item:r},null)))?a:{default:()=>[a]})]}):t(R,{description:"暂无学练统计",style:{height:`calc(100vh - ${y.value}px)`}},null)]),t(L,{show:e.showPopoverTime,"onUpdate:show":r=>e.showPopoverTime=r,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[t(G,{onCancel:()=>{e.showPopoverTime=!1},onConfirm:b,modelValue:e.currentDate,"onUpdate:modelValue":r=>e.currentDate=r,formatter:N,columnsType:["year","month"]},null)]})])}}});export{xt as default};
|