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.90c82f08.js","./index-legacy.84457c4c.js","./index-legacy.02f13b7a.js","./student-icon-legacy.91b6689d.js","./index-legacy.eb4bc59e.js","./index-legacy.f9492e3a.js","./index-legacy.789a0824.js","./index-legacy.c8871c95.js","./isBetween-legacy.d50f1200.js","./index-legacy.fe10c814.js","./index-legacy.4a08192a.js","./use-tab-status-legacy.bafe466c.js","./Picker-legacy.aeff9f1a.js","./index-legacy.64e3b474.js","./utils-legacy.8e06f916.js"],(function(e){"use strict";var n,a,o,i,c,s,u,l,p,m,f,d,h,v,_,g,b,w,y,j,x,T,Y,P,D,O,k,M,I;return{setters:[function(e){n=e.d,a=e.c,o=e.q,i=e.F,c=e.r,s=e.ai,u=e.R,l=e.Z,p=e.$,m=e.ak,f=e.P,d=e.al,h=e.m,v=e.o,_=e.ag,g=e.ah,b=e.aj,w=e.a5},function(e){y=e.O},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(){}],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",F=n({props:["item","type","index"],name:"rank-item",setup:function(e){return function(){return a(i,null,[a("div",null,[a("div",{class:N},[a("div",{class:S},[a("div",{class:W},[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:R},[a(T,{width:"48px",height:"48px",fit:"cover",src:e.item.avatar?e.item.avatar:x,alt:""},null)]),a("div",null,[a("p",{class:H},[e.item.nickname]),a("div",{class:B},[e.item.subjectNames?e.item.subjectNames:"暂无声部"])])]),a("div",{class:L},["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 z=n({name:"timer-bang",props:["toHeight","startTime","endTime"],setup:function(e){var n=c({showPopoverTime:!1,showPopoverOrchestra:!1,showPopoverSubject:!1,actions:[],subjects:[],currentDate:[s().format("YYYY"),s().format("MM")]}),o=c({practiceMonth:e.startTime,orchestraId:"",orchestraName:"全部乐团",subjectId:"",subjectName:"全部声部",page:1,rows:50,sortType:"PRACTICE_TIMES"}),i=u(!1),_=u(!1),g=u(!1),b=u(!1),w=u([]),y=u(e.toHeight);l((function(){return e.toHeight}),(function(e){y.value=e,console.log(y.value)})),l((function(){return e.startTime}),(function(){o.practiceMonth=e.startTime,i.value=!0,x()}));var x=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 _.value=!0,e.prev=1,i.value&&(o.page=1,w.value=[],i.value=!1),e.next=5,h.post("/api-school/student/page",{data:t({},o)});case 5:if(n=e.sent,!(w.value.length>0&&1===n.data.pages)){e.next=8;break}return e.abrupt("return");case 8:o.page=n.data.current+1,w.value=n.data.rows,b.value=w.value.length>0,console.log(b.value," showContact.value "),_.value=!1,g.value=!0,e.next=22;break;case 16:e.prev=16,e.t0=e.catch(1),a=e.t0.message,v(a),b.value=!1,g.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,h.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,v(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,h.post("/api-school/subjectBasicConfig/page",{data:{page:1,rows:9999,enableFlag:!0}});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,v(a);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}();p((function(){O(),T(),x()}));var k=function(){g.value=!1,_.value=!0,x()};return function(){var e;return a("div",{class:[!b.value&&"emptyRootContainer",C],style:{minHeight:"calc(100vh - ".concat(y.value,"px)")}},[a(Y,{offsetTop:y.value,style:{width:"100%"}},{default:function(){return[a("div",{class:"searchGroup"},[a("div",{class:["searchItem searchItem-normal",n.showPopoverOrchestra&&"searchItem-active"],onClick:function(){n.showPopoverOrchestra=!0}},[a("span",null,[o.orchestraName]),a("i",{class:"arrow"},null)]),a("div",{class:["searchItem searchItem-normal",n.showPopoverSubject&&"searchItem-active"],onClick:function(){n.showPopoverSubject=!0}},[a("span",null,[o.subjectName]),a("i",{class:"arrow"},null)])])]}}),b.value?a(j,{modelValue:i.value,"onUpdate:modelValue":function(e){return i.value=e},onRefresh:k,style:{minHeight:"calc(100vh - ".concat(y.value,"px - 1.17333rem)")}},{default:function(){return[a(P,{finished:g.value,"finished-text":" ",onLoad:x,"loading-text":" "},(t=e=w.value.map((function(e,t){return a(F,{item:e,type:"time",index:t+1},null)})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!d(t)?e:{default:function(){return[e]}}))];var t}}):a(m,{tips:"暂无排行"},null),a(f,{show:n.showPopoverOrchestra,"onUpdate:show":function(e){return n.showPopoverOrchestra=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[a(D,{columns:n.actions,onCancel:function(){return n.showPopoverOrchestra=!1},onConfirm:function(e){return function(e){var t=e.selectedOptions[0]||{};o.orchestraId=t.value,o.orchestraName=t.name,n.showPopoverOrchestra=!1,i.value=!0,x()}(e)},columnsFieldNames:{text:"name",value:"value"}},null)]}}),a(f,{show:n.showPopoverSubject,"onUpdate:show":function(e){return n.showPopoverSubject=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[a(D,{columns:n.subjects,onCancel:function(){return n.showPopoverSubject=!1},onConfirm:function(e){return function(e){var t=e.selectedOptions[0]||{};o.subjectId=t.value,o.subjectName=t.name,n.showPopoverSubject=!1,i.value=!0,x()}(e)},columnsFieldNames:{text:"name",value:"value"}},null)]}})])}}});var E=n({props:["toHeight","startTime","endTime"],name:"day-bang",setup:function(e,n){n.slots,n.attrs,n.emit;_();var o=c({showPopoverTime:!1,showPopoverOrchestra:!1,showPopoverSubject:!1,actions:[],subjects:[],currentDate:[s().format("YYYY"),s().format("MM")]}),i=c({practiceMonth:e.startTime,orchestraId:"",orchestraName:"全部乐团",subjectId:"",subjectName:"全部声部",page:1,rows:50,sortType:"PRACTICE_TIMES"});u(new Date(s().subtract(10,"year").format("YYYY-MM-DD"))),u(new Date(s().add(10,"year").format("YYYY-MM-DD"))),u(["year","month"]);var g=u(!1),b=u(!1),w=u(!1),y=u(!1),x=u([]),T=u(e.toHeight);console.log(e.toHeight),l((function(){return e.toHeight}),(function(e){T.value=e})),l((function(){return e.startTime}),(function(){i.practiceMonth=e.startTime,g.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 b.value=!0,e.prev=1,g.value&&(i.page=1,x.value=[],g.value=!1),e.next=5,h.post("/api-school/student/page",{data:t({},i)});case 5:if(n=e.sent,!(x.value.length>0&&1===n.data.pages)){e.next=8;break}return e.abrupt("return");case 8:i.page=n.data.current+1,x.value=n.data.rows,y.value=x.value.length>0,console.log(y.value," showContact.value "),b.value=!1,w.value=!0,e.next=22;break;case 16:e.prev=16,e.t0=e.catch(1),a=e.t0.message,v(a),y.value=!1,w.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,h.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,v(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,h.post("/api-school/subjectBasicConfig/page",{data:{page:1,rows:9999,enableFlag:!0}});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,v(n);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}();p((function(){M(),k(),O()}));var I=function(){w.value=!1,b.value=!0,O()};return function(){var e;return a("div",{class:[!y.value&&"emptyRootContainer",C],style:{minHeight:"calc(100vh - ".concat(T.value,"px)")}},[a(Y,{offsetTop:T.value,style:{width:"100%"}},{default:function(){return[a("div",{class:"searchGroup"},[a("div",{class:["searchItem searchItem-normal",o.showPopoverOrchestra&&"searchItem-active"],onClick:function(){o.showPopoverOrchestra=!0}},[a("span",null,[i.orchestraName]),a("i",{class:"arrow"},null)]),a("div",{class:["searchItem searchItem-normal",o.showPopoverSubject&&"searchItem-active"],onClick:function(){o.showPopoverSubject=!0}},[a("span",null,[i.subjectName]),a("i",{class:"arrow"},null)])])]}}),y.value?a(j,{modelValue:g.value,"onUpdate:modelValue":function(e){return g.value=e},onRefresh:I,style:{minHeight:"calc(100vh - ".concat(T.value,"px - 1.17333rem)")}},{default:function(){return[a(P,{finished:w.value,"finished-text":" ",onLoad:O,"loading-text":" "},(t=e=x.value.map((function(e,t){return a(F,{item:e,type:"day",index:t+1},null)})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!d(t)?e:{default:function(){return[e]}}))];var t}}):a(m,{tips:"暂无排行"},null),a(f,{show:o.showPopoverOrchestra,"onUpdate:show":function(e){return o.showPopoverOrchestra=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[a(D,{columns:o.actions,onCancel:function(){return o.showPopoverOrchestra=!1},onConfirm:function(e){return function(e){var t=e.selectedOptions[0]||{};i.orchestraId=t.value,i.orchestraName=t.name,o.showPopoverOrchestra=!1,g.value=!0,O()}(e)},columnsFieldNames:{text:"name",value:"value"}},null)]}}),a(f,{show:o.showPopoverSubject,"onUpdate:show":function(e){return o.showPopoverSubject=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[a(D,{columns:o.subjects,onCancel:function(){return o.showPopoverSubject=!1},onConfirm:function(e){return function(e){var t=e.selectedOptions[0]||{};i.subjectId=t.value,i.subjectName=t.name,o.showPopoverSubject=!1,g.value=!0,O()}(e)},columnsFieldNames:{text:"name",value:"value"}},null)]}})])}}}),V="_topWrap_dy38b_1",U="_topTime_dy38b_6",A="_imgIcon_dy38b_18",G="_rankTabs_dy38b_22";s.extend(O);e("default",n({name:"ranking-list",setup:function(){_();var e=g();u("");var t=u(e.query.type||"day"),n=c({heightV:0,showPopoverTime:!1,startTime:s().day(1).format("YYYY-MM-DD"),endTime:s().day(7).format("YYYY-MM-DD")}),r=function(e){n.heightV=e,console.log(n.heightV,"获取高度")};return function(){return a(i,null,[a(y,{position:"top",background:"#F8F8F8",onGetHeight:r},{default:function(){return[a("div",{class:V},[a(b,{color:"#ffffff",backIconColor:"white",background:"transparent",border:!1},null),a("span",{class:U,onClick:function(){return n.showPopoverTime=!0}},[n.startTime,o("~"),n.endTime,a(w,{name:n.showPopoverTime?"arrow-up":"arrow-down",class:A},null)])]),a(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[a(M,{name:"day",title:"天数榜"},null),a(M,{name:"time",title:"时长榜"},null)]}})]}}),"time"==t.value?a(z,{startTime:s(n.startTime).format("YYYYMMDD"),endTime:n.endTime,toHeight:n.heightV},null):a(E,{startTime:s(n.startTime).format("YYYYMMDD"),endTime:n.endTime,toHeight:n.heightV},null),a(I,{show:n.showPopoverTime,"onUpdate:show":function(e){return n.showPopoverTime=e},firstDayOfWeek:1,showConfirm:!1,type:"range",maxRange:7,minDate:new Date("2023-02-27"),defaultDate:[s(n.startTime).toDate(),s(n.endTime).toDate()],style:{height:"70%"},onSelect:function(e){if(n.startTime="",n.endTime="",!s(e[0]).isBetween(s(n.startTime),s(n.endTime))){var t=s(e[0]).day();0===t?(n.startTime=s(e[0]).subtract(6,"day").format("YYYY-MM-DD"),n.endTime=s(e[0]).format("YYYY-MM-DD")):1===t?(n.startTime=s(e[0]).format("YYYY-MM-DD"),n.endTime=s(e[0]).add(6,"day").format("YYYY-MM-DD")):(n.startTime=s(e[0]).subtract(t-1,"day").format("YYYY-MM-DD"),n.endTime=s(e[0]).add(7-t,"day").format("YYYY-MM-DD"))}n.showPopoverTime=!1}},null)])}}}))}}}))}();
|