exercis-detail-7402e095.js 10 KB

1
  1. import{d as D,a as e,I as E,A as u,a8 as B,U as I,P as S,x as _,a7 as v,r as l,y as T,z as R,V as k,a2 as L,R as U,a9 as N,F as z,a3 as j,D as w,K as V,$ as P}from"./index-869d77fb.js";import{M as F}from"./index-3eb77ad0.js";import{M as Q}from"./index-7af89263.js";import{i as W}from"./icon-student-36c056f8.js";import{u as Y,a as X}from"./index-155c29c2.js";import{I as x}from"./index-e76f2a88.js";import{C as H}from"./index-cff93552.js";import{C as q}from"./index-1c6c2ec0.js";import{L as G}from"./index-f12c44b8.js";import{D as K}from"./index-da1851f9.js";import"./use-tab-status-0ed30c24.js";import"./index-6f985828.js";const J="_itemWrap_uzkwm_1",Z="_itemTop_uzkwm_7",O="_itemTopLeft_uzkwm_15",$="_itemTopMain_uzkwm_15",ee="_itemTopSub_uzkwm_27",te="_itemTopRight_uzkwm_33",ae="_imgWrap_uzkwm_38",oe="_imgIcon_uzkwm_48",se="_itemBottom_uzkwm_53",ie="_itemBottomDot_uzkwm_61",ne="_dotMain_uzkwm_64",ce="_dotSub_uzkwm_79",a={itemWrap:J,itemTop:Z,itemTopLeft:O,itemTopMain:$,itemTopSub:ee,itemTopRight:te,imgWrap:ae,imgIcon:oe,itemBottom:se,itemBottomDot:ie,dotMain:ne,dotSub:ce},re=""+new URL("Image1-cbe96dac.png",import.meta.url).href,ue=""+new URL("Image2-0b12593f.png",import.meta.url).href,me=""+new URL("Image3-d7139ab6.png",import.meta.url).href,le=""+new URL("Image4-4870f6bf.png",import.meta.url).href,pe=""+new URL("Image5-150ad63a.png",import.meta.url).href,fe={1:{img:re,tips:"你的演奏不太好,音准和完整性还需加强,再练一练吧~",mome:"敢于尝试"},2:{img:ue,tips:"你的演奏还不熟练,音准和完整性还需加强,加紧训练才能有好成绩哦~",mome:"还要加油哦~"},3:{img:me,tips:"你的演奏还不流畅,音准和节奏还需加强,科学的练习才能更完美哦~",mome:"突破自我"},4:{img:le,tips:"你的演奏还不错,继续加油吧,加强音准,离完美就差一步啦~",mome:"崭露头角"},5:{img:pe,tips:"你的演奏非常不错,音准的把握和节奏稍有瑕疵,完整性把握的很好~",mome:"你很棒"}},de=D({props:["item"],name:"detail-item",setup(s){const o=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=B()+`/instrument/#/evaluat-report?id=${s.item.id}`;I({api:"openWebView",content:{url:i,orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0}})};return()=>e("div",{class:a.itemWrap,onClick:p},[e("div",{class:a.itemTop},[e("div",{class:a.itemTopLeft},[e("p",{class:a.itemTopMain},[s.item.musicSheetName]),e("p",{class:a.itemTopSub},[s.item.createTime])]),e("div",{class:a.itemTopRight},[e("div",{class:a.imgWrap},[e("img",{src:fe[o(s.item.score||0)].img,alt:""},null)]),e(E,{name:"arrow",class:a.imgIcon},null)])]),e("div",{class:a.itemBottom},[e("div",{class:a.itemBottomDot},[e("p",{class:a.dotMain,style:{color:"#ff5a56"}},[s.item.score||0,e("span",null,[u("分")])," "]),e("p",{class:a.dotSub},[u(" 综合得分")])]),e("div",{class:a.itemBottomDot},[e("p",{class:a.dotMain},[s.item.intonation||0,e("span",null,[u("分")])," "]),e("p",{class:a.dotSub},[u("音准 ")])]),e("div",{class:a.itemBottomDot},[e("p",{class:a.dotMain},[s.item.cadence||0,e("span",null,[u("分")])," "]),e("p",{class:a.dotSub},[u("节奏 ")])]),e("div",{class:a.itemBottomDot},[e("p",{class:a.dotMain},[s.item.integrity||0,e("span",null,[u("分")])," "]),e("p",{class:a.dotSub},[u("完成度 ")])])])])}}),ge="_exercisContainer_1jyfa_1",ve="_topWrap_1jyfa_5",he="_topInfo_1jyfa_8",ye="_topInfoLeft_1jyfa_16",Ae="_headWrap_1jyfa_22",_e="_headerImg_1jyfa_30",we="_infoMsg_1jyfa_34",De="_tag_1jyfa_51",Me="_topInfoRight_1jyfa_63",be="_infoDay_1jyfa_71",Ce="_infoTime_1jyfa_72",Ee="_infoDayMain_1jyfa_88",Be="_infoDaysub_1jyfa_104",Ie="_chioseWrap_1jyfa_119",Se="_select_1jyfa_129",Te="_icon_1jyfa_132",n={exercisContainer:ge,topWrap:ve,topInfo:he,topInfoLeft:ye,headWrap:Ae,headerImg:_e,infoMsg:we,tag:De,topInfoRight:Me,infoDay:be,infoTime:Ce,infoDayMain:Ee,infoDaysub:Be,chioseWrap:Ie,select:Se,icon:Te},Re="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAABAJJREFUSEudlk1sVFUUx//nzrzX1plOE8QPNiNqC1Jpa6eKBjducDQxLjRxxaJkStmAgWDQSBcu+FI2iCtIkSaQmLjQxGhMU5s0RkExlI9GBFoMjFFr1Ca0nWn7ZuYec9/XvJk3M+/h3czkvnPP755z/ufeSwgzmOm5Xwq9EcZmEuhgyavUMhI0xxLTJcK5HzZol0DEQe6okUH3FY7FteJuknKQGUm41lV+mUCELDNOLkr92NUeytXzWxf4/FQxI7l4AMDDQbuu+E6YBcTQ+S79VK11PmDnz6wnCsYJgPvdiJyAqq3rzSsS08i8pu+49iQZXnCFCwVrNVZGAbxwT1G5xtUlpIkFvSnthVYAn7m4dBpAfzXMa7RGJ7yb1FTNcChbwB8rDDdQx9CesH9Gfupr2eb4dH1tmjQyLEvDXlgtyb2TjOL1B6Km2ed/F3E4W6ybDGe9EJGBCymrpiZQqVE3lmeYgwVy6HENL66KmJDxuRLevlWon307HAJmDb25XanXnEr9uLQfYKVIc5CtlnKyyj4PK+D9VoTfKOCM0kQ9NXn3EhmafLbpIIGZei8s3wZz0i1GgyY60u4B/lvCvukKEVau9NSUBGUnNzWvpe7zuZSQdNEOLVCcRzo0pFdbEY4p4M0GQNubU0sm7qOe75Z3AvIj65v1qdxe1ha97fb+Og1pWzRj/5Tw1g0DFCY1ypEQu6j7+/yHkPym13G5lt5tW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Hnm3/ZGOmo0BVEL1pX3C/0ETv2+tWXZQkciRXY9672pu88h/et8qwHaECuQAAAABJRU5ErkJggg==";function Le(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!j(s)}const He=D({name:"exercis-detail",setup(){const s=S(),o=_({showPopoverTime:!1,currentDate:[v().format("YYYY"),v().format("MM")],isClick:!1,background:"transparent",practiceMonthName:s.query.practiceMonthName?s.query.practiceMonthName:v().format("YYYY")+"年"+v().format("MM")+"月"}),p=_({practiceMonth:s.query.practiceMonth?s.query.practiceMonth:o.currentDate[0]+""+o.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(!o.isClick){o.isClick=!0,i.value&&(f.value=[],p.page=1,i.value=!1);try{const t=await w.post("/edu-app/musicPracticeRecord/page",{data:{...p,feature:"EVALUATION"}});if(f.value.length>0&&t.data.current===1)return;f.value=f.value.concat(t.data.rows||[]),p.page=t.data.current+1,h.value=f.value.length>0,m.value=!1,d.value=t.data.current>=t.data.pages}catch(t){h.value=!1,d.value=!0}o.isClick=!1}},M=async()=>{var t;try{const r=await w.get("/edu-app/student/detail",{params:{id:(t=V.user.data)==null?void 0:t.id}});c.value={...r.data}}catch(r){}},A=l(),y=l(0);T(async()=>{Y(document,"scroll",()=>{const{y:t}=X();t.value>52?o.background="#fff":o.background="transparent"}),await g(),await M(),R(()=>{const{height:t}=P(A.value);y.value=t})});const b=t=>{p.practiceMonth=t.selectedValues[0]+t.selectedValues[1],o.practiceMonthName=t.selectedValues[0]+"年"+t.selectedValues[1]+"月",o.showPopoverTime=!1,i.value=!0,g()},C=()=>{d.value=!1,m.value=!0,g()};return()=>{let t;return e(z,null,[e("div",{class:[n.exercisContainer]},[e("div",{class:n.topWrap,ref:A},[e(F,{position:"top"},{default:()=>[e(k,{border:!1,background:o.background},null)]}),e("div",{class:n.topInfo},[e("div",{class:n.topInfoLeft},[e("div",{class:n.headWrap},[e(x,{src:c.value.avatar?c.value.avatar:W,fit:"cover",class:n.headerImg},null)]),e("div",{class:n.infoMsg},[e("p",null,[c.value.nickname]),e("div",{class:n.tag},[c.value.subjectNames?c.value.subjectNames:"暂无声部"])])])]),e("div",{class:n.topInfoRight},[e("div",{class:n.infoDay},[e("p",{class:n.infoDayMain},[c.value.practiceDays?c.value.practiceDays:0]),e("p",{class:n.infoDaysub},[e("img",{src:ke},null),u("练习天数(天)")])]),e("div",{class:n.infoTime},[e("p",{class:n.infoDayMain},[c.value.practiceTimes?Math.floor(c.value.practiceTimes/60):0]),e("p",{class:n.infoDaysub},[e("img",{src:Re},null),u("练习时长(分钟)")])])]),e(H,{inset:!0},{default:()=>[e(q,{class:n.select,center:!0,isLink:!0,onClick:()=>o.showPopoverTime=!0},{title:()=>e("div",{class:"van-ellipsis"},[o.practiceMonthName])})]})]),h.value?e(Q,{modelValue:i.value,"onUpdate:modelValue":r=>i.value=r,onRefresh:C,style:{minHeight:`calc(100vh - ${y.value}px)`}},{default:()=>[e(G,{"loading-text":" ",finished:d.value,"finished-text":" ",onLoad:g},Le(t=f.value.map(r=>e(de,{item:r},null)))?t:{default:()=>[t]})]}):e(L,{description:"暂无学练统计",style:{height:`calc(100vh - ${y.value}px)`}},null)]),e(U,{show:o.showPopoverTime,"onUpdate:show":r=>o.showPopoverTime=r,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[e(K,{onCancel:()=>{o.showPopoverTime=!1},onConfirm:b,modelValue:o.currentDate,"onUpdate:modelValue":r=>o.currentDate=r,formatter:N,columnsType:["year","month"]},null)]})])}}});export{He as default};