1 |
- !function(){var e=document.createElement("style");e.innerHTML="._chioseWrap_1ubpv_1{display:flex;flex-direction:row;align-items:center;justify-content:space-around;background-color:#fff;color:#333;font-weight:500;padding:.32rem 0;font-size:.37333rem}._chioseWrap_1ubpv_1 ._orchestraBand_1ubpv_12{display:flex;flex-direction:row;align-items:center}._chioseWrap_1ubpv_1 ._orchestraBand_1ubpv_12 p{max-width:2.93333rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._searchBand_1ubpv_23{display:flex}._searchBand_1ubpv_23 ._bandName_1ubpv_26{display:inline-block;max-width:3.2rem;vertical-align:text-top}._bangContainer_1ubpv_31 .van-list__finished-text{font-size:.32rem}._itemWrap_y8c93_1{display:flex;flex-direction:row;align-items:center;padding:.32rem .48rem;background-color:#fff;justify-content:space-between}._itemWrap_y8c93_1 ._wrapLeft_y8c93_9{display:flex;flex-direction:row;align-items:center}._itemWrap_y8c93_1 ._wrapLeft_y8c93_9 ._numWrap_y8c93_14{width:.85333rem;height:.85333rem;font-size:.58667rem;font-family:DINAlternate-Bold,DINAlternate;font-weight:700;color:#aaa;line-height:.85333rem;margin-right:.26667rem;text-align:center}._itemWrap_y8c93_1 ._wrapLeft_y8c93_9 ._numWrap_y8c93_14 img{width:100%}._itemWrap_y8c93_1 ._wrapLeft_y8c93_9 ._headerWrap_y8c93_28{width:1.28rem;height:1.28rem;overflow:hidden;border-radius:50%;margin-right:.26667rem}._itemWrap_y8c93_1 ._wrapLeft_y8c93_9 ._headerWrap_y8c93_28 img{width:100%;height:100%}._itemWrap_y8c93_1 ._wrapLeft_y8c93_9 ._studentName_y8c93_39{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._itemWrap_y8c93_1 ._wrapLeft_y8c93_9 ._tag_y8c93_45{display:inline-block;background:#ffe7da;border-radius:.10667rem;font-size:.32rem;text-align:center;font-weight:500;color:#f67146;line-height:.45333rem;padding:0 .21333rem}._itemWrap_y8c93_1 ._wrapRight_y8c93_56 p{font-size:.42667rem;color:#777;line-height:.50667rem}._itemWrap_y8c93_1 ._wrapRight_y8c93_56 p span{font-size:.42667rem;font-family:DINAlternate-Bold,DINAlternate;font-weight:700;color:#333;line-height:.50667rem}._topWrap_dy38b_1{height:7.46667rem;background:url(./assets/ranking-bg.0dbcd870.png) center center / cover;position:relative}._topWrap_dy38b_1 ._topTime_dy38b_6{position:absolute;left:.77333rem;bottom:1.94667rem;font-size:.37333rem;font-weight:500;color:#fff;line-height:.53333rem;letter-spacing:.02667rem;display:flex;align-items:center}._topWrap_dy38b_1 ._topTime_dy38b_6 ._imgIcon_dy38b_18{font-size:.26667rem;margin-left:.13333rem}._rankTabs_dy38b_22{position:absolute;width:100%;bottom:-.02667rem;height:1.2rem;line-height:1.2rem}._rankTabs_dy38b_22 .van-tabs__line{bottom:.53333rem;width:.4rem}\n",document.head.appendChild(e),System.register(["./index-legacy.eb062188.js","./index-legacy.ad813f4d.js","./index-legacy.d64e5695.js","./student-icon-legacy.91b6689d.js","./index-legacy.fecc738b.js","./index-legacy.10d8486a.js","./index-legacy.fad72574.js","./index-legacy.38b799d5.js","./isBetween-legacy.1e441451.js","./index-legacy.ac7c51db.js","./index-legacy.b13fd1c4.js","./use-tab-status-legacy.91417466.js","./Picker-legacy.95f03705.js","./index-legacy.fab451f1.js","./utils-legacy.6e8de97c.js"],(function(e){"use strict";var t,a,o,s,n,r,i,c,l,u,m,p,d,h,v,_,f,g,y,w,b,j,T,Y,x,D,P,M,I;return{setters:[function(e){t=e.d,a=e.c,o=e.q,s=e.F,n=e.r,r=e.ai,i=e.R,c=e.Z,l=e.$,u=e.ak,m=e.P,p=e.al,d=e.m,h=e.o,v=e.ag,_=e.ah,f=e.aj,g=e.a5},function(e){y=e.O},function(e){w=e.O},function(e){b=e.s},function(e){j=e.I},function(e){T=e.S},function(e){Y=e.L},function(e){x=e.P},function(e){D=e.i},function(e){P=e.T,M=e.a},function(e){I=e.C},function(){},function(){},function(){},function(){}],execute:function(){var C="_bangContainer_1ubpv_31";var N="_itemWrap_y8c93_1",O="_wrapLeft_y8c93_9",k="_numWrap_y8c93_14",S="_headerWrap_y8c93_28",W="_studentName_y8c93_39",H="_tag_y8c93_45",B="_wrapRight_y8c93_56",L=t({props:["item","type","index"],name:"rank-item",setup:e=>()=>a(s,null,[a("div",null,[a("div",{class:N},[a("div",{class:O},[a("div",{class:k},[1==e.index?a("img",{src:"./assets/first.9696dc0f.png",alt:""},null):null,2==e.index?a("img",{src:"./assets/second.e9b7016e.png",alt:""},null):null,3==e.index?a("img",{src:"./assets/third.6edc909a.png",alt:""},null):null,e.index>3?a("p",null,[e.index]):null]),a("div",{class:S},[a(j,{width:"48px",height:"48px",fit:"cover",src:e.item.avatar?e.item.avatar:b,alt:""},null)]),a("div",null,[a("p",{class:W},[e.item.nickname]),a("div",{class:H},[e.item.subjectNames?e.item.subjectNames:"暂无声部"])])]),a("div",{class:B},["day"==e.type?a("p",null,[a("span",null,[e.item.practiceDays?e.item.practiceDays:0]),o(" 天")]):a("p",null,[a("span",null,[e.item.practiceTimes?e.item.practiceTimes:0]),o(" 分钟")])])])])])});var R=t({name:"timer-bang",props:["toHeight","startTime","endTime"],setup(e){const t=n({showPopoverTime:!1,showPopoverOrchestra:!1,showPopoverSubject:!1,actions:[],subjects:[],currentDate:[r().format("YYYY"),r().format("MM")]}),o=n({practiceMonth:e.startTime,orchestraId:"",orchestraName:"全部乐团",subjectId:"",subjectName:"全部声部",page:1,rows:50,sortType:"PRACTICE_TIMES"}),s=i(!1),v=i(!1),_=i(!1),f=i(!1),g=i([]),y=i(e.toHeight);c((()=>e.toHeight),(e=>{y.value=e,console.log(y.value)})),c((()=>e.startTime),(()=>{o.practiceMonth=e.startTime,s.value=!0,b()}));const b=async()=>{v.value=!0;try{s.value&&(o.page=1,g.value=[],s.value=!1);const e=await d.post("/api-school/student/page",{data:{...o}});if(g.value.length>0&&1===e.data.pages)return;o.page=e.data.current+1,g.value=e.data.rows,f.value=g.value.length>0,console.log(f.value," showContact.value "),v.value=!1,_.value=!0}catch(e){const t=e.message;h(t),f.value=!1,_.value=!0}};l((()=>{(async()=>{try{const e=await d.post("/api-school/subjectBasicConfig/page",{data:{page:1,rows:9999}});t.subjects=e.data.rows.map((e=>({name:e.subjectName,value:e.subjectId}))),t.subjects.unshift({name:"全部声部",value:""})}catch(e){const t=e.message;h(t)}})(),(async()=>{try{const e=await d.post("/api-school/orchestra/page",{data:{page:1,rows:9999,status:"DONE"}});t.actions=e.data.rows.map((e=>({name:e.name,value:e.id}))),t.actions.unshift({name:"全部乐团",value:""})}catch(e){const t=e.message;h(t)}})(),b()}));const j=()=>{_.value=!1,v.value=!0,b()};return()=>{let e;return a("div",{class:[!f.value&&"emptyRootContainer",C],style:{minHeight:`calc(100vh - ${y.value}px)`}},[a(T,{offsetTop:y.value,style:{width:"100%"}},{default:()=>[a("div",{class:"searchGroup"},[a("div",{class:["searchItem searchItem-normal",t.showPopoverOrchestra&&"searchItem-active"],onClick:()=>{t.showPopoverOrchestra=!0}},[a("span",null,[o.orchestraName]),a("i",{class:"arrow"},null)]),a("div",{class:["searchItem searchItem-normal",t.showPopoverSubject&&"searchItem-active"],onClick:()=>{t.showPopoverSubject=!0}},[a("span",null,[o.subjectName]),a("i",{class:"arrow"},null)])])]}),f.value?a(w,{modelValue:s.value,"onUpdate:modelValue":e=>s.value=e,onRefresh:j,style:{minHeight:`calc(100vh - ${y.value}px - 1.17333rem)`}},{default:()=>{return[a(Y,{finished:_.value,"finished-text":" ",onLoad:b,"loading-text":" "},(t=e=g.value.map(((e,t)=>a(L,{item:e,type:"time",index:t+1},null))),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!p(t)?e:{default:()=>[e]}))];var t}}):a(u,{tips:"暂无排行"},null),a(m,{show:t.showPopoverOrchestra,"onUpdate:show":e=>t.showPopoverOrchestra=e,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[a(x,{columns:t.actions,onCancel:()=>t.showPopoverOrchestra=!1,onConfirm:e=>(e=>{const a=e.selectedOptions[0]||{};o.orchestraId=a.value,o.orchestraName=a.name,t.showPopoverOrchestra=!1,s.value=!0,b()})(e),columnsFieldNames:{text:"name",value:"value"}},null)]}),a(m,{show:t.showPopoverSubject,"onUpdate:show":e=>t.showPopoverSubject=e,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[a(x,{columns:t.subjects,onCancel:()=>t.showPopoverSubject=!1,onConfirm:e=>(e=>{const a=e.selectedOptions[0]||{};o.subjectId=a.value,o.subjectName=a.name,t.showPopoverSubject=!1,s.value=!0,b()})(e),columnsFieldNames:{text:"name",value:"value"}},null)]})])}}});var z=t({props:["toHeight","startTime","endTime"],name:"day-bang",setup(e,{slots:t,attrs:o,emit:s}){v();const _=n({showPopoverTime:!1,showPopoverOrchestra:!1,showPopoverSubject:!1,actions:[],subjects:[],currentDate:[r().format("YYYY"),r().format("MM")]}),f=n({practiceMonth:e.startTime,orchestraId:"",orchestraName:"全部乐团",subjectId:"",subjectName:"全部声部",page:1,rows:50,sortType:"PRACTICE_TIMES"});i(new Date(r().subtract(10,"year").format("YYYY-MM-DD"))),i(new Date(r().add(10,"year").format("YYYY-MM-DD"))),i(["year","month"]);const g=i(!1),y=i(!1),b=i(!1),j=i(!1),D=i([]),P=i(e.toHeight);console.log(e.toHeight),c((()=>e.toHeight),(e=>{P.value=e})),c((()=>e.startTime),(()=>{f.practiceMonth=e.startTime,g.value=!0,M()}));const M=async()=>{y.value=!0;try{g.value&&(f.page=1,D.value=[],g.value=!1);const e=await d.post("/api-school/student/page",{data:{...f}});if(D.value.length>0&&1===e.data.pages)return;f.page=e.data.current+1,D.value=e.data.rows,j.value=D.value.length>0,console.log(j.value," showContact.value "),y.value=!1,b.value=!0}catch(e){const t=e.message;h(t),j.value=!1,b.value=!0}};l((()=>{(async()=>{try{const e=await d.post("/api-school/subjectBasicConfig/page",{data:{page:1,rows:9999}});_.subjects=e.data.rows.map((e=>({name:e.subjectName,value:e.subjectId}))),_.subjects.unshift({name:"全部声部",value:""})}catch(e){const t=e.message;h(t)}})(),(async()=>{try{const e=await d.post("/api-school/orchestra/page",{data:{page:1,rows:9999,status:"DONE"}});_.actions=e.data.rows.map((e=>({name:e.name,value:e.id}))),_.actions.unshift({name:"全部乐团",value:""})}catch(e){const t=e.message;h(t)}})(),M()}));const I=()=>{b.value=!1,y.value=!0,M()};return()=>{let e;return a("div",{class:[!j.value&&"emptyRootContainer",C],style:{minHeight:`calc(100vh - ${P.value}px)`}},[a(T,{offsetTop:P.value,style:{width:"100%"}},{default:()=>[a("div",{class:"searchGroup"},[a("div",{class:["searchItem searchItem-normal",_.showPopoverOrchestra&&"searchItem-active"],onClick:()=>{_.showPopoverOrchestra=!0}},[a("span",null,[f.orchestraName]),a("i",{class:"arrow"},null)]),a("div",{class:["searchItem searchItem-normal",_.showPopoverSubject&&"searchItem-active"],onClick:()=>{_.showPopoverSubject=!0}},[a("span",null,[f.subjectName]),a("i",{class:"arrow"},null)])])]}),j.value?a(w,{modelValue:g.value,"onUpdate:modelValue":e=>g.value=e,onRefresh:I,style:{minHeight:`calc(100vh - ${P.value}px - 1.17333rem)`}},{default:()=>{return[a(Y,{finished:b.value,"finished-text":" ",onLoad:M,"loading-text":" "},(t=e=D.value.map(((e,t)=>a(L,{item:e,type:"day",index:t+1},null))),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!p(t)?e:{default:()=>[e]}))];var t}}):a(u,{tips:"暂无排行"},null),a(m,{show:_.showPopoverOrchestra,"onUpdate:show":e=>_.showPopoverOrchestra=e,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[a(x,{columns:_.actions,onCancel:()=>_.showPopoverOrchestra=!1,onConfirm:e=>(e=>{const t=e.selectedOptions[0]||{};f.orchestraId=t.value,f.orchestraName=t.name,_.showPopoverOrchestra=!1,g.value=!0,M()})(e),columnsFieldNames:{text:"name",value:"value"}},null)]}),a(m,{show:_.showPopoverSubject,"onUpdate:show":e=>_.showPopoverSubject=e,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[a(x,{columns:_.subjects,onCancel:()=>_.showPopoverSubject=!1,onConfirm:e=>(e=>{const t=e.selectedOptions[0]||{};f.subjectId=t.value,f.subjectName=t.name,_.showPopoverSubject=!1,g.value=!0,M()})(e),columnsFieldNames:{text:"name",value:"value"}},null)]})])}}});var V="_topWrap_dy38b_1",F="_topTime_dy38b_6",U="_imgIcon_dy38b_18",E="_rankTabs_dy38b_22";r.extend(D);e("default",t({name:"ranking-list",setup(){v();const e=_();i("");const t=i(e.query.type||"day"),c=n({heightV:0,showPopoverTime:!1,startTime:r().day(1).format("YYYY-MM-DD"),endTime:r().day(7).format("YYYY-MM-DD")}),l=e=>{c.heightV=e,console.log(c.heightV,"获取高度")};return()=>a(s,null,[a(y,{position:"top",background:"#F8F8F8",onGetHeight:l},{default:()=>[a("div",{class:V},[a(f,{color:"#ffffff",backIconColor:"white",background:"transparent",border:!1},null),a("span",{class:F,onClick:()=>c.showPopoverTime=!0},[c.startTime,o("~"),c.endTime,a(g,{name:c.showPopoverTime?"arrow-up":"arrow-down",class:U},null)])]),a(P,{active:t.value,"onUpdate:active":e=>t.value=e,class:E,background:"rgba(224, 69, 21,.71)","title-active-color":"#fff","title-inactive-color":"#fff",color:"#fff"},{default:()=>[a(M,{name:"day",title:"天数榜"},null),a(M,{name:"time",title:"时长榜"},null)]})]}),"time"==t.value?a(R,{startTime:r(c.startTime).format("YYYYMMDD"),endTime:c.endTime,toHeight:c.heightV},null):a(z,{startTime:r(c.startTime).format("YYYYMMDD"),endTime:c.endTime,toHeight:c.heightV},null),a(I,{show:c.showPopoverTime,"onUpdate:show":e=>c.showPopoverTime=e,firstDayOfWeek:1,showConfirm:!1,type:"range",maxRange:7,minDate:new Date("2023-02-27"),defaultDate:[r(c.startTime).toDate(),r(c.endTime).toDate()],style:{height:"70%"},onSelect:e=>{if(c.startTime="",c.endTime="",!r(e[0]).isBetween(r(c.startTime),r(c.endTime))){const t=r(e[0]).day();0===t?(c.startTime=r(e[0]).subtract(6,"day").format("YYYY-MM-DD"),c.endTime=r(e[0]).format("YYYY-MM-DD")):1===t?(c.startTime=r(e[0]).format("YYYY-MM-DD"),c.endTime=r(e[0]).add(6,"day").format("YYYY-MM-DD")):(c.startTime=r(e[0]).subtract(t-1,"day").format("YYYY-MM-DD"),c.endTime=r(e[0]).add(7-t,"day").format("YYYY-MM-DD"))}c.showPopoverTime=!1}},null)])}}))}}}))}();
|