index-legacy.1237ffb8.js 17 KB

1
  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),i=u.value}catch(s){return void n(s)}u.done?t(i):Promise.resolve(i).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,i,"next",e)}function i(e){a(c,r,o,u,i,"throw",e)}u(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_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.48c8d62c.js","./index-legacy.f3037807.js","./index-legacy.8cf5f94f.js","./index-legacy.b00f6427.js","./student-icon-legacy.91b6689d.js","./index-legacy.0e0de364.js","./index-legacy.a2ac81dd.js","./index-legacy.04f465c8.js","./index-legacy.a53f47a7.js","./index-legacy.384d768f.js","./index-legacy.ef66d7bb.js","./index-legacy.ac553194.js","./use-tab-status-legacy.6949b1de.js","./utils-legacy.60f652b8.js","./index-legacy.71047e87.js"],(function(e){"use strict";var n,a,o,c,u,i,s,l,p,m,f,v,h,d,g,_,w,b,y,x,j,P,O,D,T,k,N;return{setters:[function(e){n=e.d,a=e.c,o=e.q,c=e.F,u=e.ag,i=e.r,s=e.ah,l=e.R,p=e.Z,m=e.$,f=e.ai,v=e.P,h=e.aj,d=e.ak,g=e.m,_=e.o},function(e){w=e.O},function(e){b=e.O},function(e){y=e.O},function(e){x=e.s},function(e){j=e.I},function(e){P=e.S},function(e){O=e.L},function(e){D=e.D},function(e){T=e.P},function(e){k=e.T,N=e.a},function(){},function(){},function(){},function(){}],execute:function(){var I="_bangContainer_1ubpv_31",C="_itemWrap_y8c93_1",S="_wrapLeft_y8c93_9",Y="_numWrap_y8c93_14",W="_headerWrap_y8c93_28",R="_studentName_y8c93_39",V="_tag_y8c93_45",M="_wrapRight_y8c93_56",B=n({props:["item","type","index"],name:"rank-item",setup:function(e){return function(){return a(c,null,[a("div",null,[a("div",{class:C},[a("div",{class:S},[a("div",{class:Y},[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:W},[a(j,{width:"48px",height:"48px",fit:"cover",src:e.item.avatar?e.item.avatar:x,alt:""},null)]),a("div",null,[a("p",{class:R},[e.item.nickname]),a("div",{class:V},[e.item.subjectNames?e.item.subjectNames:"暂无声部"])])]),a("div",{class:M},["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 H=n({name:"timer-bang",props:["toHeight"],emits:["setTime"],setup:function(e,n){n.slots,n.attrs;var o=n.emit;u();var c=i({showPopoverTime:!1,showPopoverOrchestra:!1,showPopoverSubject:!1,actions:[],subjects:[],currentDate:[s().format("YYYY"),s().format("MM")]}),w=i({practiceMonth:c.currentDate[0]+""+c.currentDate[1],timeName:c.currentDate[0]+"年"+c.currentDate[1]+"月",orchestraId:"",orchestraName:"全部乐团",subjectId:"",subjectName:"全部声部",page:1,rows:50,sortType:"PRACTICE_TIMES"}),b=l(new Date(s().subtract(10,"year").format("YYYY-MM-DD"))),x=l(new Date(s().add(10,"year").format("YYYY-MM-DD"))),j=l(["year","month"]),k=l(!1),N=l(!1),C=l(!1),S=l(!1),Y=l([]),W=l(e.toHeight);p((function(){return e.toHeight}),(function(e){W.value=e,console.log(W.value)}));var R=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 N.value=!0,e.prev=1,k.value&&(w.page=1,Y.value=[],k.value=!1),e.next=5,g.post("/api-school/student/page",{data:t({},w)});case 5:if(n=e.sent,!(Y.value.length>0&&1===n.data.pages)){e.next=8;break}return e.abrupt("return");case 8:w.page=n.data.current+1,Y.value=n.data.rows,S.value=Y.value.length>0,console.log(S.value," showContact.value "),N.value=!1,C.value=!0,e.next=22;break;case 16:e.prev=16,e.t0=e.catch(1),a=e.t0.message,_(a),S.value=!1,C.value=!0;case 22:case"end":return e.stop()}}),e,null,[[1,16]])})));return function(){return e.apply(this,arguments)}}(),V=function(e){w.practiceMonth=e.selectedValues[0]+e.selectedValues[1],w.timeName=e.selectedValues[0]+"年"+e.selectedValues[1]+"月",o("setTime",w.timeName),c.showPopoverTime=!1,k.value=!0,R()},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,g.post("/api-school/orchestra/page",{data:{page:1,rows:9999,status:"DONE"}});case 3:t=e.sent,c.actions=t.data.rows.map((function(e){return{name:e.name,value:e.id}})),c.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)}}(),H=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,g.post("/api-school/subjectBasicConfig/page",{data:{page:1,rows:9999}});case 3:t=e.sent,c.subjects=t.data.rows.map((function(e){return{name:e.subjectName,value:e.subjectId}})),c.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)}}();m((function(){H(),M(),R(),o("setTime",w.timeName)}));var L=function(){C.value=!1,N.value=!0,R()};return function(){var e;return a("div",{class:[!S.value&&"emptyRootContainer",I],style:{minHeight:"calc(100vh - ".concat(W.value,"px)")}},[a(P,{offsetTop:W.value,style:{width:"100%"}},{default:function(){return[a("div",{class:"searchGroup"},[a("div",{class:["searchItem searchItem-normal",c.showPopoverTime&&"searchItem-active"],onClick:function(){c.showPopoverTime=!0}},[a("span",null,[w.timeName]),a("i",{class:"arrow"},null)]),a("div",{class:["searchItem searchItem-normal",c.showPopoverOrchestra&&"searchItem-active"],onClick:function(){c.showPopoverOrchestra=!0}},[a("span",null,[w.orchestraName]),a("i",{class:"arrow"},null)]),a("div",{class:["searchItem searchItem-normal",c.showPopoverSubject&&"searchItem-active"],onClick:function(){c.showPopoverSubject=!0}},[a("span",null,[w.subjectName]),a("i",{class:"arrow"},null)])])]}}),S.value?a(y,{modelValue:k.value,"onUpdate:modelValue":function(e){return k.value=e},onRefresh:L},{default:function(){return[a(O,{finished:C.value,"finished-text":"没有更多了",onLoad:R,"loading-text":" "},(t=e=Y.value.map((function(e,t){return a(B,{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(f,{tips:"暂无排行"},null),a(v,{show:c.showPopoverTime,"onUpdate:show":function(e){return c.showPopoverTime=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[a(D,{onCancel:function(){c.showPopoverTime=!1},onConfirm:V,modelValue:c.currentDate,"onUpdate:modelValue":function(e){return c.currentDate=e},formatter:h,minDate:b.value,maxDate:x.value,columnsType:j.value},null)]}}),a(v,{show:c.showPopoverOrchestra,"onUpdate:show":function(e){return c.showPopoverOrchestra=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[a(T,{columns:c.actions,onCancel:function(){return c.showPopoverOrchestra=!1},onConfirm:function(e){return function(e){var t=e.selectedOptions[0]||{};w.orchestraId=t.value,w.orchestraName=t.name,c.showPopoverOrchestra=!1,k.value=!0,R()}(e)},columnsFieldNames:{text:"name",value:"value"}},null)]}}),a(v,{show:c.showPopoverSubject,"onUpdate:show":function(e){return c.showPopoverSubject=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[a(T,{columns:c.subjects,onCancel:function(){return c.showPopoverSubject=!1},onConfirm:function(e){return function(e){var t=e.selectedOptions[0]||{};w.subjectId=t.value,w.subjectName=t.name,c.showPopoverSubject=!1,k.value=!0,R()}(e)},columnsFieldNames:{text:"name",value:"value"}},null)]}})])}}});var L=n({props:["toHeight"],emits:["setTime"],name:"day-bang",setup:function(e,n){n.slots,n.attrs;var o=n.emit;u();var c=i({showPopoverTime:!1,showPopoverOrchestra:!1,showPopoverSubject:!1,actions:[],subjects:[],currentDate:[s().format("YYYY"),s().format("MM")]}),w=i({practiceMonth:c.currentDate[0]+""+c.currentDate[1],timeName:c.currentDate[0]+"年"+c.currentDate[1]+"月",orchestraId:"",orchestraName:"全部乐团",subjectId:"",subjectName:"全部声部",page:1,rows:50,sortType:"PRACTICE_TIMES"}),b=l(new Date(s().subtract(10,"year").format("YYYY-MM-DD"))),x=l(new Date(s().add(10,"year").format("YYYY-MM-DD"))),j=l(["year","month"]),k=l(!1),N=l(!1),C=l(!1),S=l(!1),Y=l([]),W=l(e.toHeight);console.log(e.toHeight),p((function(){return e.toHeight}),(function(e){W.value=e}));var R=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 N.value=!0,e.prev=1,k.value&&(w.page=1,Y.value=[],k.value=!1),e.next=5,g.post("/api-school/student/page",{data:t({},w)});case 5:if(n=e.sent,!(Y.value.length>0&&1===n.data.pages)){e.next=8;break}return e.abrupt("return");case 8:w.page=n.data.current+1,Y.value=n.data.rows,S.value=Y.value.length>0,console.log(S.value," showContact.value "),N.value=!1,C.value=!0,e.next=22;break;case 16:e.prev=16,e.t0=e.catch(1),a=e.t0.message,_(a),S.value=!1,C.value=!0;case 22:case"end":return e.stop()}}),e,null,[[1,16]])})));return function(){return e.apply(this,arguments)}}(),V=function(e){w.practiceMonth=e.selectedValues[0]+e.selectedValues[1],w.timeName=e.selectedValues[0]+"年"+e.selectedValues[1]+"月",c.showPopoverTime=!1,o("setTime",w.timeName),k.value=!0,R()},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,g.post("/api-school/orchestra/page",{data:{page:1,rows:9999,status:"DONE"}});case 3:t=e.sent,c.actions=t.data.rows.map((function(e){return{name:e.name,value:e.id}})),c.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)}}(),H=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,g.post("/api-school/subjectBasicConfig/page",{data:{page:1,rows:9999}});case 3:t=e.sent,c.subjects=t.data.rows.map((function(e){return{name:e.subjectName,value:e.subjectId}})),c.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)}}();m((function(){H(),M(),R(),o("setTime",w.timeName)}));var L=function(){C.value=!1,N.value=!0,R()};return function(){var e;return a("div",{class:[!S.value&&"emptyRootContainer",I],style:{minHeight:"calc(100vh - ".concat(W.value,"px)")}},[a(P,{offsetTop:W.value,style:{width:"100%"}},{default:function(){return[a("div",{class:"searchGroup"},[a("div",{class:["searchItem searchItem-normal",c.showPopoverTime&&"searchItem-active"],onClick:function(){c.showPopoverTime=!0}},[a("span",null,[w.timeName]),a("i",{class:"arrow"},null)]),a("div",{class:["searchItem searchItem-normal",c.showPopoverOrchestra&&"searchItem-active"],onClick:function(){c.showPopoverOrchestra=!0}},[a("span",null,[w.orchestraName]),a("i",{class:"arrow"},null)]),a("div",{class:["searchItem searchItem-normal",c.showPopoverSubject&&"searchItem-active"],onClick:function(){c.showPopoverSubject=!0}},[a("span",null,[w.subjectName]),a("i",{class:"arrow"},null)])])]}}),S.value?a(y,{modelValue:k.value,"onUpdate:modelValue":function(e){return k.value=e},onRefresh:L,style:"min-height: 100vh;"},{default:function(){return[a(O,{finished:C.value,"finished-text":"没有更多了",onLoad:R,"loading-text":" "},(t=e=Y.value.map((function(e,t){return a(B,{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(f,{tips:"暂无排行"},null),a(v,{show:c.showPopoverTime,"onUpdate:show":function(e){return c.showPopoverTime=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[a(D,{onCancel:function(){c.showPopoverTime=!1},onConfirm:V,modelValue:c.currentDate,"onUpdate:modelValue":function(e){return c.currentDate=e},formatter:h,minDate:b.value,maxDate:x.value,columnsType:j.value},null)]}}),a(v,{show:c.showPopoverOrchestra,"onUpdate:show":function(e){return c.showPopoverOrchestra=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[a(T,{columns:c.actions,onCancel:function(){return c.showPopoverOrchestra=!1},onConfirm:function(e){return function(e){var t=e.selectedOptions[0]||{};w.orchestraId=t.value,w.orchestraName=t.name,c.showPopoverOrchestra=!1,k.value=!0,R()}(e)},columnsFieldNames:{text:"name",value:"value"}},null)]}}),a(v,{show:c.showPopoverSubject,"onUpdate:show":function(e){return c.showPopoverSubject=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[a(T,{columns:c.subjects,onCancel:function(){return c.showPopoverSubject=!1},onConfirm:function(e){return function(e){var t=e.selectedOptions[0]||{};w.subjectId=t.value,w.subjectName=t.name,c.showPopoverSubject=!1,k.value=!0,R()}(e)},columnsFieldNames:{text:"name",value:"value"}},null)]}})])}}}),U="_topWrap_xa4v4_1",E="_topTime_xa4v4_6",z="_rankTabs_xa4v4_16",F=l("day"),A=l("");e("default",n({name:"ranking-list",setup:function(){u();var e=i({heightV:0}),t=function(e){A.value=e},n=function(t){e.heightV=t,console.log(e.heightV,"获取高度")};return function(){return a(c,null,[a(b,{position:"top",background:"#F8F8F8",onGetHeight:n},{default:function(){return[a("div",{class:U},[a(w,{color:"#ffffff",backIconColor:"white",background:"transparent",border:!1},null),a("span",{class:E},[A.value])]),a(k,{active:F.value,"onUpdate:active":function(e){return F.value=e},class:z,background:"rgba(224, 69, 21,.71)","title-active-color":"#fff","title-inactive-color":"#fff",color:"#fff"},{default:function(){return[a(N,{name:"day",title:"天数榜"},null),a(N,{name:"timer",title:"时长榜"},null)]}})]}}),"timer"==F.value?a(H,{onSetTime:function(e){return t(e)},toHeight:e.heightV},null):a(L,{onSetTime:function(e){return t(e)},toHeight:e.heightV},null)])}}}))}}}))}();