!function(){function e(e,t,n,a,r,i,s){try{var l=e[i](s),_=l.value}catch(o){return void n(o)}l.done?t(_):Promise.resolve(_).then(a,r)}function t(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 n(e){for(var n=1;n0,T.myInfo=a.head||{},T.list=a.detail||[],T.firstInfo=T.list.length>0?T.list.splice(0,1)[0]:{},T.secondInfo=T.list.length>0?T.list.splice(0,1)[0]:{},T.threeInfo=T.list.length>0?T.list.splice(0,1)[0]:{},T.listShow=T.list.length>0,e.next=17;break;case 15:e.prev=15,e.t0=e.catch(1);case 17:T.loading=!1;case 18:case"end":return e.stop()}}),e,null,[[1,15]])})),function(){var n=this,a=arguments;return new Promise((function(r,i){var s=t.apply(n,a);function l(t){e(s,r,i,l,_,"next",t)}function _(t){e(s,r,i,l,_,"throw",t)}l(void 0)}))});return function(){return a.apply(this,arguments)}}();return c((function(){F()})),function(){var e;return m("div",{class:[j.rankListPage,N.value?j.rankListDay:j.rankListTime]},[m("div",{class:j.sticky},[m(k,{position:"top"},{default:function(){return[m(b,{background:"transparent",isFixed:!1,border:!1,title:" ",color:"#131415"},{content:function(){return m(u,null,[m(d,{name:"arrow-left",class:j.backArrow,onClick:function(){f().isApp?g({api:"goBack"}):a.back()}},null),m(h,{lineWidth:22,lineHeight:4,shrink:!0,active:T.tabActive,"onUpdate:active":function(e){return T.tabActive=e},onChange:function(e){x.orderType="dayBill"===e?2:0,F()}},{default:function(){return[m(I,{title:"时长榜",name:"timeBill"},null),m(I,{title:"天数榜",name:"dayBill"},null)]}})])}})]}}),m("img",{class:j.bgImg,src:N.value?"./assets/day-bg.9df67bae.png":"./assets/time-bg.02131fc7.png"},null)]),m("div",{class:j.rankContainer},[m("div",{class:j.rankLevel},[m("div",{class:[j.levelItem,j.level2]},[T.secondInfo.userId?m(u,null,[m("div",{class:j.levelUserImg},[m(y,{class:j.img,src:T.secondInfo.avatar||A},null)]),m("h2",{class:"van-ellipsis"},[T.secondInfo.studentName]),2===x.orderType?m("p",{class:[j.levelTime,"van-ellipsis"]},[T.secondInfo.subjectName,v("-"),T.secondInfo.trainDays,v("天")]):m("p",{class:[j.levelTime,"van-ellipsis"]},[T.secondInfo.subjectName,v("-"),T.secondInfo.trainTime,v("分钟")])]):m(u,null,[m("div",{class:j.levelUserImg},[m(y,{class:j.img,src:D},null)]),m("h2",{class:"van-ellipsis"},[v("虚位以待")]),m("p",{class:[j.levelTime,"van-ellipsis"]},[v(" ")])])]),m("div",{class:[j.levelItem,j.level1]},[T.firstInfo.userId?m(u,null,[m("div",{class:j.levelUserImg},[m(y,{class:j.img,src:T.firstInfo.avatar||A},null)]),m("h2",{class:"van-ellipsis"},[T.firstInfo.studentName]),2===x.orderType?m("p",{class:[j.levelTime,"van-ellipsis"]},[T.firstInfo.subjectName,v("-"),T.firstInfo.trainDays,v("天")]):m("p",{class:[j.levelTime,"van-ellipsis"]},[T.firstInfo.subjectName,v("-"),T.firstInfo.trainTime,v("分钟")])]):m(u,null,[m("div",{class:j.levelUserImg},[m(y,{class:j.img,src:D},null)]),m("h2",{class:"van-ellipsis"},[v("虚位以待")]),m("p",{class:[j.levelTime,"van-ellipsis"]},[v(" ")])])]),m("div",{class:[j.levelItem,j.level3]},[T.threeInfo.userId?m(u,null,[m("div",{class:j.levelUserImg},[m(y,{class:j.img,src:T.threeInfo.avatar||A},null)]),m("h2",{class:"van-ellipsis"},[T.threeInfo.studentName]),2===x.orderType?m("p",{class:[j.levelTime,"van-ellipsis"]},[T.threeInfo.subjectName,v("-"),T.threeInfo.trainDays,v("天")]):m("p",{class:[j.levelTime,"van-ellipsis"]},[T.threeInfo.subjectName,v("-"),T.threeInfo.trainTime,v("分钟")])]):m(u,null,[m("div",{class:j.levelUserImg},[m(y,{class:j.img,src:D},null)]),m("h2",{class:"van-ellipsis"},[v("虚位以待")]),m("p",{class:[j.levelTime,"van-ellipsis"]},[v(" ")])])])]),m("div",{class:j.rankList},[m("div",{class:j.rankTitle},[m("div",{class:j.titleName},[m("img",{src:N.value?"./assets/day-title.ab321456.png":"./assets/time-title.4d40ddc5.png"},null)]),m("span",{class:j.timeRange,onClick:function(){return T.showPopoverTime=!0}},[r(x.startTime).format("YYYY-MM-DD"),v("至"),r(x.endTime).format("YYYY-MM-DD"),m("i",{class:j.iconArrow},null)])]),T.list.map((function(e){return m(L,{class:[j.rankItem,T.myInfo.userId===e.userId?j.active:""],border:!1,center:!0},{icon:function(){return m(u,null,[m("span",{class:j.num},[e.rankNum]),m(y,{class:j.userImg,src:e.avatar||A},null)])},title:function(){return m("div",{class:j.userInfo},[m("p",{class:j.userName},[e.studentName]),m("p",{class:j.subjectName},[e.subjectName])])},value:function(){return 2===x.orderType?m("div",{class:j.times},[m("span",null,[e.trainDays]),v("天")]):m("div",{class:j.times},[m("span",null,[e.trainTime]),v("分钟")])}})})),!T.loading&&!T.listShow&&m(p,{tips:"暂无数据",btnStatus:!1},null)]),null!==(e=T.myInfo)&&void 0!==e&&e.userId?m(k,{position:"bottom",varName:"--bottom-height"},{default:function(){return[m(L,{class:j.selfInfo,border:!1,center:!0},{icon:function(){return m(u,null,[m("span",{class:j.num},[-1==T.myInfo.rankNum?"-":T.myInfo.rankNum]),m(y,{src:T.myInfo.avatar||A,class:j.userImg},null)])},title:function(){return m("div",{class:j.userInfo},[m("p",{class:j.userName},[T.myInfo.studentName]),m("p",{class:j.subjectName},[T.myInfo.subjectName])])},value:function(){return 2===x.orderType?m("div",{class:j.times},[m("span",null,[T.myInfo.trainDays]),v("天")]):m("div",{class:j.times},[m("span",null,[T.myInfo.trainTime]),v("分钟")])}})]}}):""]),m(w,{show:T.showPopoverTime,"onUpdate:show":function(e){return T.showPopoverTime=e},firstDayOfWeek:1,showConfirm:!1,type:"range",title:"周期选择",maxRange:7,minDate:new Date("2023-02-27"),defaultDate:[r(x.startTime).toDate(),r(x.endTime).toDate()],style:{height:"70%"},onSelect:function(e){if(x.startTime="",x.endTime="",!r(e[0]).isBetween(r(x.startTime),r(x.endTime))){var t=C(e[0]);x.startTime=t.startTime,x.endTime=t.endTime}T.showPopoverTime=!1,F()}},null)])}}}))}}}))}();