1 |
- !function(){var e=document.createElement("style");e.innerHTML="._itemWrap_1xvws_1{display:flex;flex-direction:row;align-items:center;padding:.32rem .48rem;background-color:#fff;justify-content:space-between}._itemWrap_1xvws_1 ._wrapLeft_1xvws_9{display:flex;flex-direction:row;align-items:center}._itemWrap_1xvws_1 ._wrapLeft_1xvws_9 ._numWrap_1xvws_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_1xvws_1 ._wrapLeft_1xvws_9 ._numWrap_1xvws_14 img{width:100%}._itemWrap_1xvws_1 ._wrapLeft_1xvws_9 ._headerWrap_1xvws_28{width:1.28rem;height:1.28rem;overflow:hidden;border-radius:50%;margin-right:.26667rem}._itemWrap_1xvws_1 ._wrapLeft_1xvws_9 ._headerWrap_1xvws_28 img{width:100%;height:100%}._itemWrap_1xvws_1 ._wrapLeft_1xvws_9 ._studentName_1xvws_39{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem;text-align:center}._itemWrap_1xvws_1 ._wrapLeft_1xvws_9 ._tag_1xvws_46{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_1xvws_1 ._wrapRight_1xvws_57 p{font-size:.42667rem;color:#777;line-height:.50667rem}._itemWrap_1xvws_1 ._wrapRight_1xvws_57 p span{font-size:.42667rem;font-family:DINAlternate-Bold,DINAlternate;font-weight:700;color:#333;line-height:.50667rem}._itemRankWrap_1xvws_69{width:100%;box-sizing:border-box;height:2.61333rem;position:fixed;left:0;bottom:0;display:flex;flex-direction:row;align-items:center;padding:.37333rem .48rem .90667rem;background-color:#fff;justify-content:space-between;box-shadow:0 .05333rem .13333rem rgba(0,0,0,.5)}._itemRankWrap_1xvws_69 ._wrapLeft_1xvws_9{display:flex;flex-direction:row;align-items:center}._itemRankWrap_1xvws_69 ._wrapLeft_1xvws_9 ._headerWrap_1xvws_28{width:1.28rem;height:1.28rem;overflow:hidden;border-radius:50%;margin-right:.37333rem;border:.05333rem solid #ffffff}._itemRankWrap_1xvws_69 ._wrapLeft_1xvws_9 ._headerWrap_1xvws_28 img{width:100%;height:100%}._itemRankWrap_1xvws_69 ._wrapLeft_1xvws_9 ._studentName_1xvws_39{font-size:.42667rem;font-weight:600;color:#333;line-height:.58667rem;margin-bottom:.02667rem;text-align:center}._itemRankWrap_1xvws_69 ._wrapLeft_1xvws_9 ._myTag_1xvws_109{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}._itemRankWrap_1xvws_69 ._wrapRight_1xvws_57 p{font-size:.53333rem;font-family:DINAlternate-Bold,DINAlternate;font-weight:700;color:#333;line-height:.64rem}._itemRankWrap_1xvws_69 ._wrapRight_1xvws_57 p span{font-size:.42667rem;color:#777;line-height:.64rem;margin-right:.08rem}._wall_1xvws_133{height:2.61333rem}._topWrap_xa4v4_1{height:7.46667rem;background:url(./assets/ranking-bg.0dbcd870.png) center center / cover;position:relative}._topWrap_xa4v4_1 ._topTime_xa4v4_6{position:absolute;left:.77333rem;bottom:1.94667rem;font-size:.37333rem;font-weight:500;color:#fff;line-height:.53333rem;letter-spacing:.02667rem}._rankTabs_xa4v4_16{position:absolute;width:100%;bottom:-.02667rem;height:1.2rem;line-height:1.2rem}._rankTabs_xa4v4_16 .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.fad72574.js","./isBetween-legacy.1e441451.js","./index-legacy.ac7c51db.js","./index-legacy.b13fd1c4.js","./use-tab-status-legacy.91417466.js","./index-legacy.fab451f1.js","./index-legacy.10d8486a.js","./utils-legacy.6e8de97c.js","./Picker-legacy.95f03705.js"],(function(e){"use strict";var t,a,i,n,r,l,o,s,c,m,u,d,_,v,p,h,g,f,w,x,y,b,Y,M,k,D,T,W;return{setters:[function(e){t=e.d,a=e.c,i=e.q,n=e.F,r=e.ag,l=e.r,o=e.ai,s=e.aJ,c=e.R,m=e.Z,u=e.$,d=e.ak,_=e.al,v=e.m,p=e.o,h=e.ah,g=e.X,f=e.aj,w=e.a5},function(e){x=e.O},function(e){y=e.O},function(e){b=e.s},function(e){Y=e.I},function(e){M=e.L},function(e){k=e.i},function(e){D=e.T,T=e.a},function(e){W=e.C},function(){},function(){},function(){},function(){},function(){}],execute:function(){var j="_itemWrap_1xvws_1",R="_wrapLeft_1xvws_9",L="_numWrap_1xvws_14",H="_headerWrap_1xvws_28",P="_studentName_1xvws_39",C="_tag_1xvws_46",N="_wrapRight_1xvws_57",z="_itemRankWrap_1xvws_69",I="_myTag_1xvws_109",A="_wall_1xvws_133",O=t({props:["item","type","index"],name:"rank-item",setup:e=>()=>a(n,null,[a("div",null,[a("div",{class:j},[a("div",{class:R},[a("div",{class:L},[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:H},[a(Y,{width:"100%",height:"100%",src:e.item.avatar?e.item.avatar:b,alt:"",fit:"cover"},null)]),a("div",null,[a("p",{class:P},[e.item.nickname]),a("div",{class:C},[e.item.subjectNames?e.item.subjectNames:"暂无声部"])])]),a("div",{class:N},["day"==e.type?a("p",null,[a("span",null,[e.item.practiceDays?e.item.practiceDays:0]),i(" 天")]):a("p",null,[a("span",null,[e.item.practiceTimes?e.item.practiceTimes:0]),i(" 分钟")])])])])])}),V=t({props:["item","type","index"],name:"rank-item",setup:e=>()=>a(n,null,[a("div",null,[a("div",{class:z},[a("div",{class:R},[a("div",{class:H},[a(Y,{width:"100%",height:"100%",src:e.item.avatar?e.item.avatar:b,alt:"",fit:"cover"},null)]),a("div",null,[a("p",{class:P},[e.item.nickname]),a("div",{class:I},[e.item.subjectNames?e.item.subjectNames:"暂无声部"])])]),a("div",{class:N},[e.item.ranking<=50?a("p",null,[a("span",null,[i("我的排名")]),e.item.ranking<=50?e.item.ranking:0]):a("p",null,[" ",a("span",null,[i("暂无排名")])])])]),a("div",{class:A},null)])])});var S=t({name:"timer-bang",props:["toHeight"],emits:["setTime"],setup(e,{slots:t,attrs:i,emit:n}){r(),l({showPopoverTime:!1,showPopoverOrchestra:!1,showPopoverSubject:!1,actions:[],subjects:[],currentDate:[o().format("YYYY"),o().format("MM")]});const h=s("parentData",{practiceMonth:""}),g=l({practiceMonth:h.practiceMonth,page:1,rows:50,sortType:"PRACTICE_TIMES"}),f=c(!1),w=c(!1),x=c(!1),b=c(!0),Y=c([]),k=c(e.toHeight),D=c({});m((()=>e.toHeight),(e=>{k.value=e,console.log(k.value)})),m((()=>h.practiceMonth),(e=>{g.practiceMonth=e,f.value=!0,T()}));const T=async()=>{w.value=!0;try{f.value&&(g.page=1,Y.value=[],f.value=!1);const e=await v.post("/api-student/student/page",{data:{...g}});if(Y.value.length>0&&1===e.data.pages)return;g.page=e.data.current+1,Y.value=e.data.rows,b.value=Y.value.length>0,console.log(b.value," showContact.value "),w.value=!1,x.value=!0,D.value=e.data.extra}catch(e){const t=e.message;p(t),b.value=!1,x.value=!0}};u((()=>{T()}));const W=()=>{x.value=!1,w.value=!0,T()};return()=>{var e;let t;return a("div",{class:!b.value&&"emptyRootContainer",style:{minHeight:`calc(100vh - ${k.value}px)`}},[b.value?a("div",null,[a(y,{modelValue:f.value,"onUpdate:modelValue":e=>f.value=e,onRefresh:W,style:{minHeight:`calc(100vh - ${k.value}px - 1.17333rem)`}},{default:()=>{return[a(M,{finished:x.value,"finished-text":" ",onLoad:T,"loading-text":" "},(e=t=Y.value.map(((e,t)=>a(O,{item:e,type:"time",index:t+1},null))),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!_(e)?t:{default:()=>[t]}))];var e}}),D.value&&null!==(e=D.value)&&void 0!==e&&e.ranking?a(V,{item:D.value},null):null]):a(d,null,null)])}}});var B=t({props:["toHeight"],emits:["setTime"],name:"day-bang",setup(e,{slots:t,attrs:i,emit:n}){r(),l({showPopoverTime:!1,showPopoverOrchestra:!1,showPopoverSubject:!1,actions:[],subjects:[],currentDate:[o().format("YYYY"),o().format("MM")]});const h=s("parentData",{practiceMonth:""}),g=l({practiceMonth:h.practiceMonth,page:1,rows:50,sortType:"PRACTICE_DAY"}),f=c(!1),w=c(!1),x=c(!1),b=c(!0),Y=c([]),k=c(e.toHeight),D=c({});console.log(e.toHeight),m((()=>e.toHeight),(e=>{k.value=e})),m((()=>h.practiceMonth),(e=>{g.practiceMonth=e,f.value=!0,T()}));const T=async()=>{w.value=!0;try{f.value&&(g.page=1,Y.value=[],f.value=!1);const e=await v.post("/api-student/student/page",{data:{...g}});if(Y.value.length>0&&1===e.data.pages)return;g.page=e.data.current+1,Y.value=e.data.rows,b.value=Y.value.length>0,console.log(b.value," showContact.value "),w.value=!1,x.value=!0,D.value=e.data.extra}catch(e){const t=e.message;p(t),b.value=!1,x.value=!0}};u((()=>{T()}));const W=()=>{x.value=!1,w.value=!0,T()};return()=>{var e;let t;return a("div",{class:!b.value&&"emptyRootContainer",style:{minHeight:`calc(100vh - ${k.value}px)`}},[b.value?a("div",null,[a(y,{modelValue:f.value,"onUpdate:modelValue":e=>f.value=e,onRefresh:W,style:{minHeight:`calc(100vh - ${k.value}px - 1.17333rem)`}},{default:()=>{return[a(M,{"loading-text":" ",finished:x.value,"finished-text":" ",onLoad:T},(e=t=Y.value.map(((e,t)=>a(O,{item:e,type:"day",index:t+1},null))),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!_(e)?t:{default:()=>[t]}))];var e}}),D.value&&null!==(e=D.value)&&void 0!==e&&e.ranking?a(V,{item:D.value},null):null]):a(d,null,null)])}}});var $="_topWrap_xa4v4_1",E="_topTime_xa4v4_6",F="_rankTabs_xa4v4_16";o.extend(k);e("default",t({name:"ranking-list",setup(){r();const e=h(),t=l({heightV:0,showPopoverTime:!1}),s=c(e.query.type||"day"),m=l({practiceMonth:o().day(1).format("YYYYMMDD"),endTime:o().day(7).format("YYYY-MM-DD")});g("parentData",m);const u=e=>{t.heightV=e,console.log(t.heightV,"获取高度")};return()=>a(n,null,[a(x,{position:"top",background:"#F8F8F8",onGetHeight:u},{default:()=>[a("div",{class:$},[a(f,{color:"#ffffff",backIconColor:"white",background:"transparent",border:!1},null),a("span",{class:E,onClick:()=>t.showPopoverTime=!0},[o(m.practiceMonth).format("YYYY-MM-DD"),i("~"),m.endTime," ",a(w,{name:t.showPopoverTime?"arrow-up":"arrow-down"},null)])]),a(D,{active:s.value,"onUpdate:active":e=>s.value=e,class:F,background:"rgba(224, 69, 21,.71)","title-active-color":"#fff","title-inactive-color":"#fff",color:"#fff"},{default:()=>[a(T,{name:"day",title:"天数榜"},null),a(T,{name:"time",title:"时长榜"},null)]})]}),"time"==s.value?a(S,{toHeight:t.heightV},null):a(B,{toHeight:t.heightV},null),a(W,{show:t.showPopoverTime,"onUpdate:show":e=>t.showPopoverTime=e,firstDayOfWeek:1,showConfirm:!1,type:"range",maxRange:7,minDate:new Date("2023-02-27"),defaultDate:[o(m.practiceMonth).toDate(),o(m.endTime).toDate()],style:{height:"70%"},onSelect:e=>{if(m.practiceMonth="",m.endTime="",!o(e[0]).isBetween(o(m.practiceMonth),o(m.endTime))){const t=o(e[0]).day();0===t?(m.practiceMonth=o(e[0]).subtract(6,"day").format("YYYYMMDD"),m.endTime=o(e[0]).format("YYYY-MM-DD")):1===t?(m.practiceMonth=o(e[0]).format("YYYYMMDD"),m.endTime=o(e[0]).add(6,"day").format("YYYY-MM-DD")):(m.practiceMonth=o(e[0]).subtract(t-1,"day").format("YYYYMMDD"),m.endTime=o(e[0]).add(7-t,"day").format("YYYY-MM-DD"))}t.showPopoverTime=!1}},null)])}}))}}}))}();
|