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,i){try{var c=e[o](i),s=c.value}catch(u){return void n(u)}c.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 i=e.apply(t,n);function c(e){a(i,r,o,c,s,"next",e)}function s(e){a(i,r,o,c,s,"throw",e)}c(void 0)}))}}var o=document.createElement("style");o.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(o),System.register(["./index-legacy.a7d85227.js","./index-legacy.03e232b9.js","./index-legacy.2542fc2a.js","./index-legacy.adc69fb1.js","./student-icon-legacy.91b6689d.js","./index-legacy.4d21a2de.js","./index-legacy.28b38226.js","./index-legacy.a9b41d56.js","./index-legacy.df66d38d.js","./isBetween-legacy.e47fc4c5.js","./index-legacy.32e0b73e.js","./index-legacy.9cbd783f.js","./index-legacy.18da61db.js","./use-tab-status-legacy.4b173f34.js","./Picker-legacy.9c37d540.js","./index-legacy.32985c60.js","./utils-legacy.5896997e.js"],(function(e){"use strict";var n,a,o,i,c,s,u,l,p,m,f,d,h,v,_,g,b,y,w,j,x,T,Y,P,D,O,k,M,I;return{setters:[function(e){n=e.O},function(e){a=e.O},function(e){o=e.d,i=e.c,c=e.q,s=e.F,u=e.r,l=e.ai,p=e.R,m=e.Z,f=e.$,d=e.aj,h=e.P,v=e.ak,_=e.m,g=e.o,b=e.ag,y=e.ah,w=e.a5},function(e){j=e.O},function(e){x=e.s},function(e){T=e.I},function(e){Y=e.S},function(e){P=e.L},function(e){D=e.P},function(e){O=e.i},function(e){k=e.T,M=e.a},function(e){I=e.C},function(){},function(){},function(){},function(){},function(){}],execute:function(){var C="_bangContainer_1ubpv_31",N="_itemWrap_y8c93_1",S="_wrapLeft_y8c93_9",W="_numWrap_y8c93_14",R="_headerWrap_y8c93_28",H="_studentName_y8c93_39",B="_tag_y8c93_45",L="_wrapRight_y8c93_56",z=o({props:["item","type","index"],name:"rank-item",setup:function(e){return function(){return i(s,null,[i("div",null,[i("div",{class:N},[i("div",{class:S},[i("div",{class:W},[1==e.index?i("img",{src:"./assets/first.9696dc0f.png",alt:""},null):null,2==e.index?i("img",{src:"./assets/second.e9b7016e.png",alt:""},null):null,3==e.index?i("img",{src:"./assets/third.6edc909a.png",alt:""},null):null,e.index>3?i("p",null,[e.index]):null]),i("div",{class:R},[i(T,{width:"48px",height:"48px",fit:"cover",src:e.item.avatar?e.item.avatar:x,alt:""},null)]),i("div",null,[i("p",{class:H},[e.item.nickname]),i("div",{class:B},[e.item.subjectNames?e.item.subjectNames:"暂无声部"])])]),i("div",{class:L},["day"==e.type?i("p",null,[i("span",null,[e.item.practiceDays?e.item.practiceDays:0]),c(" 天")]):i("p",null,[i("span",null,[e.item.practiceTimes?e.item.practiceTimes:0]),c(" 分钟")])])])])])}}});var E=o({name:"timer-bang",props:["toHeight","startTime","endTime"],setup:function(e){var n=u({showPopoverTime:!1,showPopoverOrchestra:!1,showPopoverSubject:!1,actions:[],subjects:[],currentDate:[l().format("YYYY"),l().format("MM")]}),a=u({practiceMonth:e.startTime,orchestraId:"",orchestraName:"全部乐团",subjectId:"",subjectName:"全部声部",page:1,rows:50,sortType:"PRACTICE_TIMES"}),o=p(!1),c=p(!1),s=p(!1),b=p(!1),y=p([]),w=p(e.toHeight);m((function(){return e.toHeight}),(function(e){w.value=e,console.log(w.value)})),m((function(){return e.startTime}),(function(){a.practiceMonth=e.startTime,o.value=!0,x()}));var x=function(){var e=r(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c.value=!0,e.prev=1,o.value&&(a.page=1,y.value=[],o.value=!1),e.next=5,_.post("/api-school/student/page",{data:t({},a)});case 5:if(n=e.sent,!(y.value.length>0&&1===n.data.pages)){e.next=8;break}return e.abrupt("return");case 8:a.page=n.data.current+1,y.value=n.data.rows,b.value=y.value.length>0,console.log(b.value," showContact.value "),c.value=!1,s.value=!0,e.next=22;break;case 16:e.prev=16,e.t0=e.catch(1),r=e.t0.message,g(r),b.value=!1,s.value=!0;case 22:case"end":return e.stop()}}),e,null,[[1,16]])})));return function(){return e.apply(this,arguments)}}(),T=function(){var e=r(regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,_.post("/api-school/orchestra/page",{data:{page:1,rows:9999,status:"DONE"}});case 3:t=e.sent,n.actions=t.data.rows.map((function(e){return{name:e.name,value:e.id}})),n.actions.unshift({name:"全部乐团",value:""}),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),a=e.t0.message,g(a);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),O=function(){var e=r(regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,_.post("/api-school/subjectBasicConfig/page",{data:{page:1,rows:9999}});case 3:t=e.sent,n.subjects=t.data.rows.map((function(e){return{name:e.subjectName,value:e.subjectId}})),n.subjects.unshift({name:"全部声部",value:""}),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),a=e.t0.message,g(a);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}();f((function(){O(),T(),x()}));var k=function(){s.value=!1,c.value=!0,x()};return function(){var e;return i("div",{class:[!b.value&&"emptyRootContainer",C],style:{minHeight:"calc(100vh - ".concat(w.value,"px)")}},[i(Y,{offsetTop:w.value,style:{width:"100%"}},{default:function(){return[i("div",{class:"searchGroup"},[i("div",{class:["searchItem searchItem-normal",n.showPopoverOrchestra&&"searchItem-active"],onClick:function(){n.showPopoverOrchestra=!0}},[i("span",null,[a.orchestraName]),i("i",{class:"arrow"},null)]),i("div",{class:["searchItem searchItem-normal",n.showPopoverSubject&&"searchItem-active"],onClick:function(){n.showPopoverSubject=!0}},[i("span",null,[a.subjectName]),i("i",{class:"arrow"},null)])])]}}),b.value?i(j,{modelValue:o.value,"onUpdate:modelValue":function(e){return o.value=e},onRefresh:k,style:{minHeight:"calc(100vh - ".concat(w.value,"px - 1.17333rem)")}},{default:function(){return[i(P,{finished:s.value,"finished-text":" ",onLoad:x,"loading-text":" "},(t=e=y.value.map((function(e,t){return i(z,{item:e,type:"time",index:t+1},null)})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!v(t)?e:{default:function(){return[e]}}))];var t}}):i(d,{tips:"暂无排行"},null),i(h,{show:n.showPopoverOrchestra,"onUpdate:show":function(e){return n.showPopoverOrchestra=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[i(D,{columns:n.actions,onCancel:function(){return n.showPopoverOrchestra=!1},onConfirm:function(e){return function(e){var t=e.selectedOptions[0]||{};a.orchestraId=t.value,a.orchestraName=t.name,n.showPopoverOrchestra=!1,o.value=!0,x()}(e)},columnsFieldNames:{text:"name",value:"value"}},null)]}}),i(h,{show:n.showPopoverSubject,"onUpdate:show":function(e){return n.showPopoverSubject=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[i(D,{columns:n.subjects,onCancel:function(){return n.showPopoverSubject=!1},onConfirm:function(e){return function(e){var t=e.selectedOptions[0]||{};a.subjectId=t.value,a.subjectName=t.name,n.showPopoverSubject=!1,o.value=!0,x()}(e)},columnsFieldNames:{text:"name",value:"value"}},null)]}})])}}});var V=o({props:["toHeight","startTime","endTime"],name:"day-bang",setup:function(e,n){n.slots,n.attrs,n.emit;b();var a=u({showPopoverTime:!1,showPopoverOrchestra:!1,showPopoverSubject:!1,actions:[],subjects:[],currentDate:[l().format("YYYY"),l().format("MM")]}),o=u({practiceMonth:e.startTime,orchestraId:"",orchestraName:"全部乐团",subjectId:"",subjectName:"全部声部",page:1,rows:50,sortType:"PRACTICE_TIMES"});p(new Date(l().subtract(10,"year").format("YYYY-MM-DD"))),p(new Date(l().add(10,"year").format("YYYY-MM-DD"))),p(["year","month"]);var c=p(!1),s=p(!1),y=p(!1),w=p(!1),x=p([]),T=p(e.toHeight);console.log(e.toHeight),m((function(){return e.toHeight}),(function(e){T.value=e})),m((function(){return e.startTime}),(function(){o.practiceMonth=e.startTime,c.value=!0,O()}));var O=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 s.value=!0,e.prev=1,c.value&&(o.page=1,x.value=[],c.value=!1),e.next=5,_.post("/api-school/student/page",{data:t({},o)});case 5:if(n=e.sent,!(x.value.length>0&&1===n.data.pages)){e.next=8;break}return e.abrupt("return");case 8:o.page=n.data.current+1,x.value=n.data.rows,w.value=x.value.length>0,console.log(w.value," showContact.value "),s.value=!1,y.value=!0,e.next=22;break;case 16:e.prev=16,e.t0=e.catch(1),a=e.t0.message,g(a),w.value=!1,y.value=!0;case 22:case"end":return e.stop()}}),e,null,[[1,16]])})));return function(){return e.apply(this,arguments)}}(),k=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,_.post("/api-school/orchestra/page",{data:{page:1,rows:9999,status:"DONE"}});case 3:t=e.sent,a.actions=t.data.rows.map((function(e){return{name:e.name,value:e.id}})),a.actions.unshift({name:"全部乐团",value:""}),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),n=e.t0.message,g(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,_.post("/api-school/subjectBasicConfig/page",{data:{page:1,rows:9999}});case 3:t=e.sent,a.subjects=t.data.rows.map((function(e){return{name:e.subjectName,value:e.subjectId}})),a.subjects.unshift({name:"全部声部",value:""}),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),n=e.t0.message,g(n);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}();f((function(){M(),k(),O()}));var I=function(){y.value=!1,s.value=!0,O()};return function(){var e;return i("div",{class:[!w.value&&"emptyRootContainer",C],style:{minHeight:"calc(100vh - ".concat(T.value,"px)")}},[i(Y,{offsetTop:T.value,style:{width:"100%"}},{default:function(){return[i("div",{class:"searchGroup"},[i("div",{class:["searchItem searchItem-normal",a.showPopoverOrchestra&&"searchItem-active"],onClick:function(){a.showPopoverOrchestra=!0}},[i("span",null,[o.orchestraName]),i("i",{class:"arrow"},null)]),i("div",{class:["searchItem searchItem-normal",a.showPopoverSubject&&"searchItem-active"],onClick:function(){a.showPopoverSubject=!0}},[i("span",null,[o.subjectName]),i("i",{class:"arrow"},null)])])]}}),w.value?i(j,{modelValue:c.value,"onUpdate:modelValue":function(e){return c.value=e},onRefresh:I,style:{minHeight:"calc(100vh - ".concat(T.value,"px - 1.17333rem)")}},{default:function(){return[i(P,{finished:y.value,"finished-text":" ",onLoad:O,"loading-text":" "},(t=e=x.value.map((function(e,t){return i(z,{item:e,type:"day",index:t+1},null)})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!v(t)?e:{default:function(){return[e]}}))];var t}}):i(d,{tips:"暂无排行"},null),i(h,{show:a.showPopoverOrchestra,"onUpdate:show":function(e){return a.showPopoverOrchestra=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[i(D,{columns:a.actions,onCancel:function(){return a.showPopoverOrchestra=!1},onConfirm:function(e){return function(e){var t=e.selectedOptions[0]||{};o.orchestraId=t.value,o.orchestraName=t.name,a.showPopoverOrchestra=!1,c.value=!0,O()}(e)},columnsFieldNames:{text:"name",value:"value"}},null)]}}),i(h,{show:a.showPopoverSubject,"onUpdate:show":function(e){return a.showPopoverSubject=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[i(D,{columns:a.subjects,onCancel:function(){return a.showPopoverSubject=!1},onConfirm:function(e){return function(e){var t=e.selectedOptions[0]||{};o.subjectId=t.value,o.subjectName=t.name,a.showPopoverSubject=!1,c.value=!0,O()}(e)},columnsFieldNames:{text:"name",value:"value"}},null)]}})])}}}),F="_topWrap_dy38b_1",U="_topTime_dy38b_6",A="_imgIcon_dy38b_18",G="_rankTabs_dy38b_22";l.extend(O);e("default",o({name:"ranking-list",setup:function(){b();var e=y();p("");var t=p(e.query.type||"day"),r=u({heightV:0,showPopoverTime:!1,startTime:l().day(1).format("YYYY-MM-DD"),endTime:l().day(7).format("YYYY-MM-DD")}),o=function(e){r.heightV=e,console.log(r.heightV,"获取高度")};return function(){return i(s,null,[i(a,{position:"top",background:"#F8F8F8",onGetHeight:o},{default:function(){return[i("div",{class:F},[i(n,{color:"#ffffff",backIconColor:"white",background:"transparent",border:!1},null),i("span",{class:U,onClick:function(){return r.showPopoverTime=!0}},[r.startTime,c("~"),r.endTime,i(w,{name:r.showPopoverTime?"arrow-up":"arrow-down",class:A},null)])]),i(k,{active:t.value,"onUpdate:active":function(e){return t.value=e},class:G,background:"rgba(224, 69, 21,.71)","title-active-color":"#fff","title-inactive-color":"#fff",color:"#fff"},{default:function(){return[i(M,{name:"day",title:"天数榜"},null),i(M,{name:"time",title:"时长榜"},null)]}})]}}),"time"==t.value?i(E,{startTime:l(r.startTime).format("YYYYMMDD"),endTime:r.endTime,toHeight:r.heightV},null):i(V,{startTime:l(r.startTime).format("YYYYMMDD"),endTime:r.endTime,toHeight:r.heightV},null),i(I,{show:r.showPopoverTime,"onUpdate:show":function(e){return r.showPopoverTime=e},firstDayOfWeek:1,showConfirm:!1,type:"range",maxRange:7,minDate:new Date("2023-02-27"),defaultDate:[l(r.startTime).toDate(),l(r.endTime).toDate()],style:{height:"70%"},onSelect:function(e){if(r.startTime="",r.endTime="",!l(e[0]).isBetween(l(r.startTime),l(r.endTime))){var t=l(e[0]).day();0===t?(r.startTime=l(e[0]).subtract(6,"day").format("YYYY-MM-DD"),r.endTime=l(e[0]).format("YYYY-MM-DD")):1===t?(r.startTime=l(e[0]).format("YYYY-MM-DD"),r.endTime=l(e[0]).add(6,"day").format("YYYY-MM-DD")):(r.startTime=l(e[0]).subtract(t-1,"day").format("YYYY-MM-DD"),r.endTime=l(e[0]).add(7-t,"day").format("YYYY-MM-DD"))}r.showPopoverTime=!1}},null)])}}}))}}}))}();
|