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,o,c){try{var u=e[o](c),s=u.value}catch(i){return void n(i)}u.done?t(s):Promise.resolve(s).then(a,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var c=e.apply(t,n);function u(e){a(c,r,o,u,s,"next",e)}function s(e){a(c,r,o,u,s,"throw",e)}u(void 0)}))}}var o=document.createElement("style");o.innerHTML="._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_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(o),System.register(["./index-legacy.81fd4e6f.js","./index-legacy.00d82922.js","./index-legacy.a9944503.js","./index-legacy.0e551442.js","./student-icon-legacy.91b6689d.js","./index-legacy.aa24f77a.js","./index-legacy.2a9471c6.js","./index-legacy.8271e59c.js","./index-legacy.55bd130c.js","./index-legacy.40afcdaf.js","./index-legacy.e997fd26.js","./index-legacy.819d05e3.js","./use-tab-status-legacy.7b80393c.js","./utils-legacy.0c949fd0.js","./index-legacy.8bfb99fc.js"],(function(e){"use strict";var n,a,o,c,u,s,i,l,m,p,f,h,v,d,g,w,_,b,y,j,x,P,O,D,T,I;return{setters:[function(e){n=e.O},function(e){a=e.O},function(e){o=e.d,c=e.c,u=e.q,s=e.F,i=e.ag,l=e.r,m=e.ah,p=e.R,f=e.Z,h=e.$,v=e.ai,d=e.P,g=e.aj,w=e.m,_=e.o},function(e){b=e.O},function(e){y=e.s},function(e){j=e.I},function(e){x=e.S},function(e){P=e.L},function(e){O=e.D},function(e){D=e.P},function(e){T=e.T,I=e.a},function(){},function(){},function(){},function(){}],execute:function(){var N="_itemWrap_y8c93_1",k="_wrapLeft_y8c93_9",C="_numWrap_y8c93_14",S="_headerWrap_y8c93_28",Y="_studentName_y8c93_39",R="_tag_y8c93_45",V="_wrapRight_y8c93_56",W=o({props:["item","type","index"],name:"rank-item",setup:function(e){return function(){return c(s,null,[c("div",null,[c("div",{class:N},[c("div",{class:k},[c("div",{class:C},[1==e.index?c("img",{src:"./assets/first.9696dc0f.png",alt:""},null):null,2==e.index?c("img",{src:"./assets/second.e9b7016e.png",alt:""},null):null,3==e.index?c("img",{src:"./assets/third.6edc909a.png",alt:""},null):null,e.index>3?c("p",null,[e.index]):null]),c("div",{class:S},[c(j,{width:"48px",height:"48px",fit:"cover",src:e.item.avatar?e.item.avatar:y,alt:""},null)]),c("div",null,[c("p",{class:Y},[e.item.nickname]),c("div",{class:R},[e.item.subjectNames?e.item.subjectNames:"暂无声部"])])]),c("div",{class:V},["day"==e.type?c("p",null,[c("span",null,[e.item.practiceDays?e.item.practiceDays:0]),u(" 天")]):c("p",null,[c("span",null,[e.item.practiceTimes?e.item.practiceTimes:0]),u(" 分钟")])])])])])}}});var M=o({name:"timer-bang",props:["toHeight"],emits:["setTime"],setup:function(e,n){n.slots,n.attrs;var a=n.emit;i();var o=l({showPopoverTime:!1,showPopoverOrchestra:!1,showPopoverSubject:!1,actions:[],subjects:[],currentDate:[m().format("YYYY"),m().format("MM")]}),u=l({practiceMonth:o.currentDate[0]+""+o.currentDate[1],timeName:o.currentDate[0]+"年"+o.currentDate[1]+"月",orchestraId:"",orchestraName:"全部乐团",subjectId:"",subjectName:"全部声部",page:1,rows:50,sortType:"PRACTICE_TIMES"}),s=p(new Date(m().subtract(10,"year").format("YYYY-MM-DD"))),y=p(new Date(m().add(10,"year").format("YYYY-MM-DD"))),j=p(["year","month"]),T=p(!1),I=p(!1),N=p(!1),k=p(!1),C=p([]),S=p(e.toHeight);f((function(){return e.toHeight}),(function(e){S.value=e,console.log(S.value)}));var Y=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 I.value=!0,e.prev=1,T.value&&(u.page=1,C.value=[],T.value=!1),e.next=5,w.post("/api-school/student/page",{data:t({},u)});case 5:if(n=e.sent,!(C.value.length>0&&1===n.data.pages)){e.next=8;break}return e.abrupt("return");case 8:u.page=n.data.current+1,C.value=n.data.rows,k.value=C.value.length>0,console.log(k.value," showContact.value "),I.value=!1,N.value=!0,e.next=22;break;case 16:e.prev=16,e.t0=e.catch(1),a=e.t0.message,_(a),k.value=!1,N.value=!0;case 22:case"end":return e.stop()}}),e,null,[[1,16]])})));return function(){return e.apply(this,arguments)}}(),R=function(e){u.practiceMonth=e.selectedValues[0]+e.selectedValues[1],u.timeName=e.selectedValues[0]+"年"+e.selectedValues[1]+"月",a("setTime",u.timeName),o.showPopoverTime=!1,T.value=!0,Y()},V=function(){var e=r(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,w.post("/api-school/orchestra/page",{data:{page:1,rows:9999,status:"DONE"}});case 3:t=e.sent,o.actions=t.data.rows.map((function(e){return{name:e.name,value:e.id}})),o.actions.unshift({name:"全部乐团",value:""}),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),n=e.t0.message,_(n);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),M=function(){var e=r(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,w.post("/api-school/subjectBasicConfig/page",{data:{page:1,rows:9999}});case 3:t=e.sent,o.subjects=t.data.rows.map((function(e){return{name:e.subjectName,value:e.subjectId}})),o.subjects.unshift({name:"全部声部",value:""}),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),n=e.t0.message,_(n);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}();h((function(){M(),V(),Y(),a("setTime",u.timeName)}));var H=function(){N.value=!1,I.value=!0,Y()};return function(){var e;return c("div",{class:!k.value&&"emptyRootContainer",style:{minHeight:"calc(100vh - ".concat(S.value,"px)")}},[c(x,{offsetTop:S.value,style:{width:"100%"}},{default:function(){return[c("div",{class:"searchGroup"},[c("div",{class:["searchItem searchItem-normal",o.showPopoverTime&&"searchItem-active"],onClick:function(){o.showPopoverTime=!0}},[c("span",null,[u.timeName]),c("i",{class:"arrow"},null)]),c("div",{class:["searchItem searchItem-normal",o.showPopoverOrchestra&&"searchItem-active"],onClick:function(){o.showPopoverOrchestra=!0}},[c("span",null,[u.orchestraName]),c("i",{class:"arrow"},null)]),c("div",{class:["searchItem searchItem-normal",o.showPopoverSubject&&"searchItem-active"],onClick:function(){o.showPopoverSubject=!0}},[c("span",null,[u.subjectName]),c("i",{class:"arrow"},null)])])]}}),k.value?c(b,{modelValue:T.value,"onUpdate:modelValue":function(e){return T.value=e},onRefresh:H},{default:function(){return[c(P,{finished:N.value,"finished-text":"没有更多了",onLoad:Y,"loading-text":" "},(t=e=C.value.map((function(e,t){return c(W,{item:e,type:"time",index:t+1},null)})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!g(t)?e:{default:function(){return[e]}}))];var t}}):c(v,null,null),c(d,{show:o.showPopoverTime,"onUpdate:show":function(e){return o.showPopoverTime=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[c(O,{onCancel:function(){o.showPopoverTime=!1},onConfirm:R,modelValue:o.currentDate,"onUpdate:modelValue":function(e){return o.currentDate=e},title:"选择年月",minDate:s.value,maxDate:y.value,columnsType:j.value},null)]}}),c(d,{show:o.showPopoverOrchestra,"onUpdate:show":function(e){return o.showPopoverOrchestra=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[c(D,{columns:o.actions,onCancel:function(){return o.showPopoverOrchestra=!1},onConfirm:function(e){return function(e){var t=e.selectedOptions[0]||{};u.orchestraId=t.value,u.orchestraName=t.name,o.showPopoverOrchestra=!1,T.value=!0,Y()}(e)},columnsFieldNames:{text:"name",value:"value"}},null)]}}),c(d,{show:o.showPopoverSubject,"onUpdate:show":function(e){return o.showPopoverSubject=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[c(D,{columns:o.subjects,onCancel:function(){return o.showPopoverSubject=!1},onConfirm:function(e){return function(e){var t=e.selectedOptions[0]||{};u.subjectId=t.value,u.subjectName=t.name,o.showPopoverSubject=!1,T.value=!0,Y()}(e)},columnsFieldNames:{text:"name",value:"value"}},null)]}})])}}});var H=o({props:["toHeight"],emits:["setTime"],name:"day-bang",setup:function(e,n){n.slots,n.attrs;var a=n.emit;i();var o=l({showPopoverTime:!1,showPopoverOrchestra:!1,showPopoverSubject:!1,actions:[],subjects:[],currentDate:[m().format("YYYY"),m().format("MM")]}),u=l({practiceMonth:o.currentDate[0]+""+o.currentDate[1],timeName:o.currentDate[0]+"年"+o.currentDate[1]+"月",orchestraId:"",orchestraName:"全部乐团",subjectId:"",subjectName:"全部声部",page:1,rows:50,sortType:"PRACTICE_TIMES"}),s=p(new Date(m().subtract(10,"year").format("YYYY-MM-DD"))),y=p(new Date(m().add(10,"year").format("YYYY-MM-DD"))),j=p(["year","month"]),T=p(!1),I=p(!1),N=p(!1),k=p(!1),C=p([]),S=p(e.toHeight);console.log(e.toHeight),f((function(){return e.toHeight}),(function(e){S.value=e}));var Y=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 I.value=!0,e.prev=1,T.value&&(u.page=1,C.value=[],T.value=!1),e.next=5,w.post("/api-school/student/page",{data:t({},u)});case 5:if(n=e.sent,!(C.value.length>0&&1===n.data.pages)){e.next=8;break}return e.abrupt("return");case 8:u.page=n.data.current+1,C.value=n.data.rows,k.value=C.value.length>0,console.log(k.value," showContact.value "),I.value=!1,N.value=!0,e.next=22;break;case 16:e.prev=16,e.t0=e.catch(1),a=e.t0.message,_(a),k.value=!1,N.value=!0;case 22:case"end":return e.stop()}}),e,null,[[1,16]])})));return function(){return e.apply(this,arguments)}}(),R=function(e){u.practiceMonth=e.selectedValues[0]+e.selectedValues[1],u.timeName=e.selectedValues[0]+"年"+e.selectedValues[1]+"月",o.showPopoverTime=!1,a("setTime",u.timeName),T.value=!0,Y()},V=function(){var e=r(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,w.post("/api-school/orchestra/page",{data:{page:1,rows:9999,status:"DONE"}});case 3:t=e.sent,o.actions=t.data.rows.map((function(e){return{name:e.name,value:e.id}})),o.actions.unshift({name:"全部乐团",value:""}),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),n=e.t0.message,_(n);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),M=function(){var e=r(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,w.post("/api-school/subjectBasicConfig/page",{data:{page:1,rows:9999}});case 3:t=e.sent,o.subjects=t.data.rows.map((function(e){return{name:e.subjectName,value:e.subjectId}})),o.subjects.unshift({name:"全部声部",value:""}),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),n=e.t0.message,_(n);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}();h((function(){M(),V(),Y(),a("setTime",u.timeName)}));var H=function(){N.value=!1,I.value=!0,Y()};return function(){var e;return c("div",{class:!k.value&&"emptyRootContainer",style:{minHeight:"calc(100vh - ".concat(S.value,"px)")}},[c(x,{offsetTop:S.value,style:{width:"100%"}},{default:function(){return[c("div",{class:"searchGroup"},[c("div",{class:["searchItem searchItem-normal",o.showPopoverTime&&"searchItem-active"],onClick:function(){o.showPopoverTime=!0}},[c("span",null,[u.timeName]),c("i",{class:"arrow"},null)]),c("div",{class:["searchItem searchItem-normal",o.showPopoverOrchestra&&"searchItem-active"],onClick:function(){o.showPopoverOrchestra=!0}},[c("span",null,[u.orchestraName]),c("i",{class:"arrow"},null)]),c("div",{class:["searchItem searchItem-normal",o.showPopoverSubject&&"searchItem-active"],onClick:function(){o.showPopoverSubject=!0}},[c("span",null,[u.subjectName]),c("i",{class:"arrow"},null)])])]}}),k.value?c(b,{modelValue:T.value,"onUpdate:modelValue":function(e){return T.value=e},onRefresh:H,style:"min-height: 100vh;"},{default:function(){return[c(P,{finished:N.value,"finished-text":"没有更多了",onLoad:Y,"loading-text":" "},(t=e=C.value.map((function(e,t){return c(W,{item:e,type:"day",index:t+1},null)})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!g(t)?e:{default:function(){return[e]}}))];var t}}):c(v,null,null),c(d,{show:o.showPopoverTime,"onUpdate:show":function(e){return o.showPopoverTime=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[c(O,{onCancel:function(){o.showPopoverTime=!1},onConfirm:R,modelValue:o.currentDate,"onUpdate:modelValue":function(e){return o.currentDate=e},title:"选择年月",minDate:s.value,maxDate:y.value,columnsType:j.value},null)]}}),c(d,{show:o.showPopoverOrchestra,"onUpdate:show":function(e){return o.showPopoverOrchestra=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[c(D,{columns:o.actions,onCancel:function(){return o.showPopoverOrchestra=!1},onConfirm:function(e){return function(e){var t=e.selectedOptions[0]||{};u.orchestraId=t.value,u.orchestraName=t.name,o.showPopoverOrchestra=!1,T.value=!0,Y()}(e)},columnsFieldNames:{text:"name",value:"value"}},null)]}}),c(d,{show:o.showPopoverSubject,"onUpdate:show":function(e){return o.showPopoverSubject=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[c(D,{columns:o.subjects,onCancel:function(){return o.showPopoverSubject=!1},onConfirm:function(e){return function(e){var t=e.selectedOptions[0]||{};u.subjectId=t.value,u.subjectName=t.name,o.showPopoverSubject=!1,T.value=!0,Y()}(e)},columnsFieldNames:{text:"name",value:"value"}},null)]}})])}}}),L="_topWrap_xa4v4_1",U="_topTime_xa4v4_6",B="_rankTabs_xa4v4_16",E=p("day"),F=p("");e("default",o({name:"ranking-list",setup:function(){i();var e=l({heightV:0}),t=function(e){F.value=e},r=function(t){e.heightV=t,console.log(e.heightV,"获取高度")};return function(){return c(s,null,[c(a,{position:"top",background:"#F8F8F8",onGetHeight:r},{default:function(){return[c("div",{class:L},[c(n,{color:"#ffffff",backIconColor:"white",background:"transparent",border:!1},null),c("span",{class:U},[F.value])]),c(T,{active:E.value,"onUpdate:active":function(e){return E.value=e},class:B,background:"rgba(224, 69, 21,.71)","title-active-color":"#fff","title-inactive-color":"#fff",color:"#fff"},{default:function(){return[c(I,{name:"day",title:"天数榜"},null),c(I,{name:"timer",title:"时长榜"},null)]}})]}}),"timer"==E.value?c(M,{onSetTime:function(e){return t(e)},toHeight:e.heightV},null):c(H,{onSetTime:function(e){return t(e)},toHeight:e.heightV},null)])}}}))}}}))}();
|