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),u=l.value}catch(s){return void n(s)}l.done?t(u):Promise.resolve(u).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,u,"next",e)}function u(e){a(o,r,i,l,u,"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.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.04f465c8.js","./index-legacy.ef66d7bb.js","./index-legacy.a53f47a7.js","./index-legacy.ac553194.js","./use-tab-status-legacy.6949b1de.js","./index-legacy.71047e87.js","./index-legacy.a2ac81dd.js","./utils-legacy.60f652b8.js","./index-legacy.384d768f.js"],(function(e){"use strict";var n,a,i,o,l,u,s,c,m,f,p,v,d,_,h,g,w,x,b,y,j,k,D,W,T,O,P,R;return{setters:[function(e){n=e.d,a=e.c,i=e.q,o=e.F,l=e.ag,u=e.r,s=e.ah,c=e.aD,m=e.R,f=e.Z,p=e.$,v=e.ai,d=e.ak,_=e.m,h=e.o,g=e.X,w=e.a5,x=e.P,b=e.aj},function(e){y=e.O},function(e){j=e.O},function(e){k=e.O},function(e){D=e.s},function(e){W=e.I},function(e){T=e.L},function(e){O=e.T,P=e.a},function(e){R=e.D},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var M="_itemWrap_1xvws_1",Y="_wrapLeft_1xvws_9",N="_numWrap_1xvws_14",L="_headerWrap_1xvws_28",V="_studentName_1xvws_39",C="_tag_1xvws_46",H="_wrapRight_1xvws_57",z="_itemRankWrap_1xvws_69",I="_myTag_1xvws_109",A="_wall_1xvws_133",S=n({props:["item","type","index"],name:"rank-item",setup:function(e){return function(){return a(o,null,[a("div",null,[a("div",{class:M},[a("div",{class:Y},[a("div",{class:N},[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:L},[a(W,{width:"100%",height:"100%",src:e.item.avatar?e.item.avatar:D,alt:"",fit:"cover"},null)]),a("div",null,[a("p",{class:V},[e.item.nickname]),a("div",{class:C},[e.item.subjectNames?e.item.subjectNames:"暂无声部"])])]),a("div",{class:H},["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:z},[a("div",{class:Y},[a("div",{class:L},[a(W,{width:"100%",height:"100%",src:e.item.avatar?e.item.avatar:D,alt:"",fit:"cover"},null)]),a("div",null,[a("p",{class:V},[e.item.nickname]),a("div",{class:I},[e.item.subjectNames?e.item.subjectNames:"暂无声部"])])]),a("div",{class:H},[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:A},null)])])}}});var U=n({name:"timer-bang",props:["toHeight"],emits:["setTime"],setup:function(e,n){n.slots,n.attrs,n.emit;l(),u({showPopoverTime:!1,showPopoverOrchestra:!1,showPopoverSubject:!1,actions:[],subjects:[],currentDate:[s().format("YYYY"),s().format("MM")]});var i=c("parentData",{practiceMonth:"",timeName:""}),o=u({practiceMonth:i.practiceMonth,page:1,rows:50,sortType:"PRACTICE_TIMES"}),g=m(!1),w=m(!1),x=m(!1),b=m(!1),y=m([]),j=m(e.toHeight),D=m({});f((function(){return e.toHeight}),(function(e){j.value=e,console.log(j.value)})),f((function(){return i.practiceMonth}),(function(e){o.practiceMonth=e,g.value=!0,W()}));var W=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,D.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)}}();p((function(){W()}));var O=function(){x.value=!1,w.value=!0,W()};return function(){var e,t;return a("div",{class:!b.value&&"emptyRootContainer",style:{minHeight:"calc(100vh - ".concat(j.value,"px)")}},[b.value?a("div",null,[a(k,{modelValue:g.value,"onUpdate:modelValue":function(e){return g.value=e},onRefresh:O,style:"min-height: 100vh;"},{default:function(){return[a(T,{finished:x.value,"finished-text":"没有更多了",onLoad:W,"loading-text":" "},(e=t=y.value.map((function(e,t){return a(S,{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}}),D.value&&null!==(e=D.value)&&void 0!==e&&e.ranking?a(E,{item:D.value},null):null]):a(v,null,null)])}}});var B=n({props:["toHeight"],emits:["setTime"],name:"day-bang",setup:function(e,n){n.slots,n.attrs,n.emit;l(),u({showPopoverTime:!1,showPopoverOrchestra:!1,showPopoverSubject:!1,actions:[],subjects:[],currentDate:[s().format("YYYY"),s().format("MM")]});var i=c("parentData",{practiceMonth:"",timeName:""}),o=u({practiceMonth:i.practiceMonth,page:1,rows:50,sortType:"PRACTICE_DAY"});m(new Date(s().subtract(10,"year").format("YYYY-MM-DD"))),m(new Date(s().add(10,"year").format("YYYY-MM-DD"))),m(["year","month"]);var g=m(!1),w=m(!1),x=m(!1),b=m(!1),y=m([]),j=m(e.toHeight),D=m({});console.log(e.toHeight),f((function(){return e.toHeight}),(function(e){j.value=e})),f((function(){return i.practiceMonth}),(function(e){o.practiceMonth=e,g.value=!0,W()}));var W=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,D.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)}}();p((function(){W()}));var O=function(){x.value=!1,w.value=!0,W()};return function(){var e,t;return a("div",{class:!b.value&&"emptyRootContainer",style:{minHeight:"calc(100vh - ".concat(j.value,"px)")}},[b.value?a("div",null,[a(k,{modelValue:g.value,"onUpdate:modelValue":function(e){return g.value=e},onRefresh:O,style:"min-height: 100vh;"},{default:function(){return[a(T,{"loading-text":" ",finished:x.value,"finished-text":"没有更多了",onLoad:W},(e=t=y.value.map((function(e,t){return a(S,{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}}),D.value&&null!==(e=D.value)&&void 0!==e&&e.ranking?a(E,{item:D.value},null):null]):a(v,null,null)])}}}),F="_topWrap_xa4v4_1",q="_topTime_xa4v4_6",G="_rankTabs_xa4v4_16",X=m("student");m("");e("default",n({name:"ranking-list",setup:function(){l();var e=u({heightV:0,showPopoverTime:!1,currentDate:[s().format("YYYY"),s().format("MM")]}),t=u({practiceMonth:e.currentDate[0]+""+e.currentDate[1],timeName:e.currentDate[0]+"年"+e.currentDate[1]+"月"});g("parentData",t);var n=function(t){e.heightV=t,console.log(e.heightV,"获取高度")},r=m(["year","month"]),c=function(n){t.practiceMonth=n.selectedValues[0]+n.selectedValues[1],t.timeName=n.selectedValues[0]+"年"+n.selectedValues[1]+"月",e.showPopoverTime=!1};return function(){return a(o,null,[a(j,{position:"top",background:"#F8F8F8",onGetHeight:n},{default:function(){return[a("div",{class:F},[a(y,{color:"#ffffff",backIconColor:"white",background:"transparent",border:!1},null),a("span",{class:q,onClick:function(){return e.showPopoverTime=!0}},[t.timeName,i(" "),a(w,{name:e.showPopoverTime?"arrow-up":"arrow-down"},null)])]),a(O,{active:X.value,"onUpdate:active":function(e){return X.value=e},class:G,background:"rgba(224, 69, 21,.71)","title-active-color":"#fff","title-inactive-color":"#fff",color:"#fff"},{default:function(){return[a(P,{name:"day",title:"天数榜"},null),a(P,{name:"timer",title:"时长榜"},null)]}})]}}),"timer"==X.value?a(U,{toHeight:e.heightV},null):a(B,{toHeight:e.heightV},null),a(x,{show:e.showPopoverTime,"onUpdate:show":function(t){return e.showPopoverTime=t},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[a(R,{onCancel:function(){e.showPopoverTime=!1},formatter:b,onConfirm:c,modelValue:e.currentDate,"onUpdate:modelValue":function(t){return e.currentDate=t},columnsType:r.value},null)]}})])}}}))}}}))}();
|