index-legacy.9b95a241.js 13 KB

12
  1. !function(){function e(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 t(t){for(var a=1;a<arguments.length;a++){var r=null!=arguments[a]?arguments[a]:{};a%2?e(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t,n,a,r,i,o){try{var l=e[i](o),s=l.value}catch(c){return void n(c)}l.done?t(s):Promise.resolve(s).then(a,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function l(e){a(o,r,i,l,s,"next",e)}function s(e){a(o,r,i,l,s,"throw",e)}l(void 0)}))}}var i=document.createElement("style");i.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(i),System.register(["./index-legacy.c1f63540.js","./index-legacy.7e71b67e.js","./index-legacy.4596d3ae.js","./student-icon-legacy.91b6689d.js","./index-legacy.45d07924.js","./index-legacy.3d6462c3.js","./isBetween-legacy.1f391f06.js","./index-legacy.aa9b4ef8.js","./index-legacy.7929dd9f.js","./use-tab-status-legacy.77a01b2b.js","./index-legacy.49ab1c78.js","./index-legacy.6603017a.js","./utils-legacy.270b3ede.js","./Picker-legacy.5a9c13b9.js"],(function(e){"use strict";var n,a,i,o,l,s,c,u,p,m,v,f,d,_,h,g,w,x,b,y,k,Y,j,D,M,T,W,O;return{setters:[function(e){n=e.d,a=e.c,i=e.q,o=e.F,l=e.ag,s=e.r,c=e.ai,u=e.aJ,p=e.R,m=e.Z,v=e.$,f=e.ak,d=e.al,_=e.m,h=e.o,g=e.ah,w=e.X,x=e.aj,b=e.a5},function(e){y=e.O},function(e){k=e.O},function(e){Y=e.s},function(e){j=e.I},function(e){D=e.L},function(e){M=e.i},function(e){T=e.T,W=e.a},function(e){O=e.C},function(){},function(){},function(){},function(){},function(){}],execute:function(){var P="_itemWrap_1xvws_1",R="_wrapLeft_1xvws_9",L="_numWrap_1xvws_14",H="_headerWrap_1xvws_28",C="_studentName_1xvws_39",N="_tag_1xvws_46",z="_wrapRight_1xvws_57",I="_itemRankWrap_1xvws_69",A="_myTag_1xvws_109",S="_wall_1xvws_133",V=n({props:["item","type","index"],name:"rank-item",setup:function(e){return function(){return a(o,null,[a("div",null,[a("div",{class:P},[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(j,{width:"100%",height:"100%",src:e.item.avatar?e.item.avatar:Y,alt:"",fit:"cover"},null)]),a("div",null,[a("p",{class:C},[e.item.nickname]),a("div",{class:N},[e.item.subjectNames?e.item.subjectNames:"暂无声部"])])]),a("div",{class:z},["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(" 分钟")])])])])])}}}),E=n({props:["item","type","index"],name:"rank-item",setup:function(e){return function(){return a(o,null,[a("div",null,[a("div",{class:I},[a("div",{class:R},[a("div",{class:H},[a(j,{width:"100%",height:"100%",src:e.item.avatar?e.item.avatar:Y,alt:"",fit:"cover"},null)]),a("div",null,[a("p",{class:C},[e.item.nickname]),a("div",{class:A},[e.item.subjectNames?e.item.subjectNames:"暂无声部"])])]),a("div",{class:z},[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:S},null)])])}}});var B=n({name:"timer-bang",props:["toHeight"],emits:["setTime"],setup:function(e,n){n.slots,n.attrs,n.emit;l(),s({showPopoverTime:!1,showPopoverOrchestra:!1,showPopoverSubject:!1,actions:[],subjects:[],currentDate:[c().format("YYYY"),c().format("MM")]});var i=u("parentData",{practiceMonth:""}),o=s({practiceMonth:i.practiceMonth,page:1,rows:50,sortType:"PRACTICE_TIMES"}),g=p(!1),w=p(!1),x=p(!1),b=p(!0),y=p([]),Y=p(e.toHeight),j=p({});m((function(){return e.toHeight}),(function(e){Y.value=e,console.log(Y.value)})),m((function(){return i.practiceMonth}),(function(e){o.practiceMonth=e,g.value=!0,M()}));var M=function(){var e=r(regeneratorRuntime.mark((function e(){var n,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w.value=!0,e.prev=1,g.value&&(o.page=1,y.value=[],g.value=!1),e.next=5,_.post("/api-student/student/page",{data:t({},o)});case 5:if(n=e.sent,!(y.value.length>0&&1===n.data.pages)){e.next=8;break}return e.abrupt("return");case 8:o.page=n.data.current+1,y.value=n.data.rows,b.value=y.value.length>0,console.log(b.value," showContact.value "),w.value=!1,x.value=!0,j.value=n.data.extra,e.next=23;break;case 17:e.prev=17,e.t0=e.catch(1),a=e.t0.message,h(a),b.value=!1,x.value=!0;case 23:case"end":return e.stop()}}),e,null,[[1,17]])})));return function(){return e.apply(this,arguments)}}();v((function(){M()}));var T=function(){x.value=!1,w.value=!0,M()};return function(){var e,t;return a("div",{class:!b.value&&"emptyRootContainer",style:{minHeight:"calc(100vh - ".concat(Y.value,"px)")}},[b.value?a("div",null,[a(k,{modelValue:g.value,"onUpdate:modelValue":function(e){return g.value=e},onRefresh:T,style:{minHeight:"calc(100vh - ".concat(Y.value,"px - 1.17333rem)")}},{default:function(){return[a(D,{finished:x.value,"finished-text":" ",onLoad:M,"loading-text":" "},(e=t=y.value.map((function(e,t){return a(V,{item:e,type:"time",index:t+1},null)})),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!d(e)?t:{default:function(){return[t]}}))];var e}}),j.value&&null!==(e=j.value)&&void 0!==e&&e.ranking?a(E,{item:j.value},null):null]):a(f,null,null)])}}});var F=n({props:["toHeight"],emits:["setTime"],name:"day-bang",setup:function(e,n){n.slots,n.attrs,n.emit;l(),s({showPopoverTime:!1,showPopoverOrchestra:!1,showPopoverSubject:!1,actions:[],subjects:[],currentDate:[c().format("YYYY"),c().format("MM")]});var i=u("parentData",{practiceMonth:""}),o=s({practiceMonth:i.practiceMonth,page:1,rows:50,sortType:"PRACTICE_DAY"}),g=p(!1),w=p(!1),x=p(!1),b=p(!0),y=p([]),Y=p(e.toHeight),j=p({});console.log(e.toHeight),m((function(){return e.toHeight}),(function(e){Y.value=e})),m((function(){return i.practiceMonth}),(function(e){o.practiceMonth=e,g.value=!0,M()}));var M=function(){var e=r(regeneratorRuntime.mark((function e(){var n,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w.value=!0,e.prev=1,g.value&&(o.page=1,y.value=[],g.value=!1),e.next=5,_.post("/api-student/student/page",{data:t({},o)});case 5:if(n=e.sent,!(y.value.length>0&&1===n.data.pages)){e.next=8;break}return e.abrupt("return");case 8:o.page=n.data.current+1,y.value=n.data.rows,b.value=y.value.length>0,console.log(b.value," showContact.value "),w.value=!1,x.value=!0,j.value=n.data.extra,e.next=23;break;case 17:e.prev=17,e.t0=e.catch(1),a=e.t0.message,h(a),b.value=!1,x.value=!0;case 23:case"end":return e.stop()}}),e,null,[[1,17]])})));return function(){return e.apply(this,arguments)}}();v((function(){M()}));var T=function(){x.value=!1,w.value=!0,M()};return function(){var e,t;return a("div",{class:!b.value&&"emptyRootContainer",style:{minHeight:"calc(100vh - ".concat(Y.value,"px)")}},[b.value?a("div",null,[a(k,{modelValue:g.value,"onUpdate:modelValue":function(e){return g.value=e},onRefresh:T,style:{minHeight:"calc(100vh - ".concat(Y.value,"px - 1.17333rem)")}},{default:function(){return[a(D,{"loading-text":" ",finished:x.value,"finished-text":" ",onLoad:M},(e=t=y.value.map((function(e,t){return a(V,{item:e,type:"day",index:t+1},null)})),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!d(e)?t:{default:function(){return[t]}}))];var e}}),j.value&&null!==(e=j.value)&&void 0!==e&&e.ranking?a(E,{item:j.value},null):null]):a(f,null,null)])}}}),U="_topWrap_xa4v4_1",q="_topTime_xa4v4_6",G="_rankTabs_xa4v4_16";c.extend(M);e("default",n({name:"ranking-list",setup:function(){l();var e=g(),t=s({heightV:0,showPopoverTime:!1}),n=p(e.query.type||"day"),r=s({practiceMonth:c().day(1).format("YYYYMMDD"),endTime:c().day(7).format("YYYY-MM-DD")});w("parentData",r);var u=function(e){t.heightV=e,console.log(t.heightV,"获取高度")};return function(){return a(o,null,[a(y,{position:"top",background:"#F8F8F8",onGetHeight:u},{default:function(){return[a("div",{class:U},[a(x,{color:"#ffffff",backIconColor:"white",background:"transparent",border:!1},null),a("span",{class:q,onClick:function(){return t.showPopoverTime=!0}},[c(r.practiceMonth).format("YYYY-MM-DD"),i("~"),r.endTime," ",a(b,{name:t.showPopoverTime?"arrow-up":"arrow-down"},null)])]),a(T,{active:n.value,"onUpdate:active":function(e){return n.value=e},class:G,background:"rgba(224, 69, 21,.71)","title-active-color":"#fff","title-inactive-color":"#fff",color:"#fff"},{default:function(){return[a(W,{name:"day",title:"天数榜"},null),a(W,{name:"time",title:"时长榜"},null)]}})]}}),"time"==n.value?a(B,{toHeight:t.heightV},null):a(F,{toHeight:t.heightV},null),a(O,{show:t.showPopoverTime,"onUpdate:show":function(e){return t.showPopoverTime=e},firstDayOfWeek:1,showConfirm:!1,type:"range",maxRange:7,minDate:new Date("2023-02-27"),defaultDate:[c(r.practiceMonth).toDate(),c(r.endTime).toDate()],style:{height:"70%"},onSelect:function(e){if(r.practiceMonth="",r.endTime="",!c(e[0]).isBetween(c(r.practiceMonth),c(r.endTime))){var n=c(e[0]).day();0===n?(r.practiceMonth=c(e[0]).subtract(6,"day").format("YYYYMMDD"),r.endTime=c(e[0]).format("YYYY-MM-DD")):1===n?(r.practiceMonth=c(e[0]).format("YYYYMMDD"),r.endTime=c(e[0]).add(6,"day").format("YYYY-MM-DD")):(r.practiceMonth=c(e[0]).subtract(n-1,"day").format("YYYYMMDD"),r.endTime=c(e[0]).add(7-n,"day").format("YYYY-MM-DD"))}t.showPopoverTime=!1}},null)])}}}))}}}))}();