index-legacy.c9777c21.js 17 KB

1
  1. !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;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?t(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):t(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r=document.createElement("style");r.innerHTML='._rankListPage_t8t3q_1{background:linear-gradient(270deg,#FBE3F6 0%,#FFDFD0 100%);min-height:100vh}._rankListPage_t8t3q_1 .van-tabs__nav{background-color:transparent!important;justify-content:center}._rankListPage_t8t3q_1 .van-tab{font-size:.42667rem;font-weight:700;color:rgba(0,0,0,.5);line-height:.58667rem}._rankListPage_t8t3q_1 .van-tab--active{color:#131415}._rankListPage_t8t3q_1 .van-tabs__line{background:#2B2A2F;border-radius:.05333rem!important;bottom:.53333rem;width:.58667rem}._rankListPage_t8t3q_1 .van-tab--shrink{padding:0 .66667rem}._rankListPage_t8t3q_1 .van-calendar__day--end,._rankListPage_t8t3q_1 .van-calendar__day--start,._rankListPage_t8t3q_1 .van-calendar__day--start-end,._rankListPage_t8t3q_1 .van-calendar__day--multiple-middle,._rankListPage_t8t3q_1 .van-calendar__day--multiple-selected{background:#FF5074}._rankListPage_t8t3q_1 .van-overlay,._rankListPage_t8t3q_1 .van-popup{z-index:99999999!important}._rankListPage_t8t3q_1 ._timeRange_t8t3q_38{display:flex;align-items:center;font-size:.37333rem;color:rgba(19,20,21,.6)}._rankListPage_t8t3q_1 ._timeRange_t8t3q_38 ._iconArrow_t8t3q_44{display:inline-block;width:.24rem;height:.13333rem;margin-left:.08rem;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAKCAYAAAC5Sw6hAAAAAXNSR0IArs4c6QAAALNJREFUKFOV0j1rAkEUheHHSCSCjSlstAgWFgr6/3+GAS0sxMI0KZJGUBQ/uDgLG3XdzWmGYe554Zw7NVd9oIdaulc9zlhjlRn76FZ138x9YZmB4hyh/U/YL2Y456PUMUarImyDTxxj/raTV0zQLIFtMcUhm3tU7luCNQpg+wTZ5d+LthTxImbEzStiRJyI9UfP1h3FD/GSHCfMEQXfqezfdDBIrgW+i7orA4XvPZl/ni3gAsvsGgt8yZh1AAAAAElFTkSuQmCC) no-repeat center;background-size:contain}._bgImg_t8t3q_52{position:fixed;top:0;left:0;width:100%;height:10.58667rem;z-index:0}._sticky_t8t3q_60 .van-sticky{transition:none;background:url(./assets/time-bg.02131fc7.png) no-repeat top center;background-size:100% 10.58667rem}._sticky_t8t3q_60 ._backArrow_t8t3q_65{position:absolute;z-index:10;left:.34667rem;bottom:.21333rem;display:inline-block;font:.37333rem/1 vant-icon;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;margin-right:var(--van-padding-base);font-size:var(--van-nav-bar-arrow-size)}._rankContainer_t8t3q_78{position:relative}._rankLevel_t8t3q_81{padding-top:.26667rem;display:flex;align-items:center;justify-content:space-between;margin:0 .34667rem}._rankLevel_t8t3q_81 ._levelItem_t8t3q_88{width:2.98667rem;text-align:center}._rankLevel_t8t3q_81 ._levelItem_t8t3q_88:after{content:" ";display:block;width:2.98667rem;height:3.30667rem}._rankLevel_t8t3q_81 ._levelItem_t8t3q_88 ._levelUserImg_t8t3q_98{position:relative;width:2.29333rem;height:2.05333rem;margin:0 auto;display:flex;align-items:center;justify-content:center}._rankLevel_t8t3q_81 ._levelItem_t8t3q_88 ._levelUserImg_t8t3q_98:after{content:"";position:absolute;left:0;right:0;top:0;bottom:0;z-index:1}._rankLevel_t8t3q_81 ._levelItem_t8t3q_88 ._levelUserImg_t8t3q_98 ._img_t8t3q_116{width:1.33333rem;height:1.33333rem;border-radius:50%;overflow:hidden}._rankLevel_t8t3q_81 ._levelItem_t8t3q_88 h2{padding-top:.13333rem;font-size:.42667rem;font-weight:600;color:#131415;line-height:.58667rem}._rankLevel_t8t3q_81 ._levelItem_t8t3q_88 ._levelTime_t8t3q_129{font-size:.32rem;line-height:.45333rem;padding:.05333rem 0 .21333rem;color:rgba(0,0,0,.6)}._rankLevel_t8t3q_81 ._level1_t8t3q_135:after{height:3.78667rem;background:url(./assets/level-1-bg.e0ace4d7.png) no-repeat center;background-size:contain}._rankLevel_t8t3q_81 ._level1_t8t3q_135 ._levelUserImg_t8t3q_98{width:2.45333rem!important;height:2.34667rem!important}._rankLevel_t8t3q_81 ._level1_t8t3q_135 ._levelUserImg_t8t3q_98:after{background:url(./assets/level-1-header.2610b530.png) no-repeat center;background-size:contain}._rankLevel_t8t3q_81 ._level1_t8t3q_135 ._img_t8t3q_116{width:1.54667rem!important;height:1.54667rem!important}._rankLevel_t8t3q_81 ._level2_t8t3q_152{margin-top:.88rem}._rankLevel_t8t3q_81 ._level2_t8t3q_152:after{background:url(./assets/level-2-bg.2b4b311f.png) no-repeat center;background-size:contain}._rankLevel_t8t3q_81 ._level2_t8t3q_152 ._levelUserImg_t8t3q_98:after{background:url(./assets/level-2-header.8d66e92e.png) no-repeat center;background-size:contain}._rankLevel_t8t3q_81 ._level3_t8t3q_163{margin-top:.8rem}._rankLevel_t8t3q_81 ._level3_t8t3q_163:after{height:3.14667rem;background:url(./assets/level-3-bg.8e25ca85.png) no-repeat center;background-size:contain}._rankLevel_t8t3q_81 ._level3_t8t3q_163 ._levelUserImg_t8t3q_98:after{background:url(./assets/level-3-header.6eec83ed.png) no-repeat center;background-size:contain}._rankList_t8t3q_1{background:rgba(255,255,255,.7);border-radius:.53333rem .53333rem 0 0;border:.05333rem solid #FFFFFF;-webkit-backdrop-filter:blur(.16rem);backdrop-filter:blur(.16rem);min-height:calc(100vh - 5.86667rem - var(--header-height) - var(--bottom-height));margin:-1.65333rem .34667rem 0}._rankList_t8t3q_1 ._rankTitle_t8t3q_183{display:flex;align-items:center;justify-content:space-between;padding:.50667rem .32rem .10667rem 0}._rankList_t8t3q_1 ._rankTitle_t8t3q_183 ._titleName_t8t3q_189{display:flex;align-items:center}._rankList_t8t3q_1 ._rankTitle_t8t3q_183 ._titleName_t8t3q_189:before{content:"";display:flex;width:.10667rem;height:.37333rem;background-color:#ffa2a0;border-radius:0 .08rem .08rem 0;margin-right:.21333rem}._rankList_t8t3q_1 ._rankTitle_t8t3q_183 ._titleName_t8t3q_189 img{width:2.13333rem;height:.42667rem}._rankContainer_t8t3q_78 ._rankItem_t8t3q_206,._rankContainer_t8t3q_78 ._selfInfo_t8t3q_207{position:relative;background-color:transparent;padding:.16rem .26667rem .16rem .8rem;border-radius:.32rem;margin:0 .16rem .10667rem;width:auto}._rankContainer_t8t3q_78 ._rankItem_t8t3q_206._active_t8t3q_215,._rankContainer_t8t3q_78 ._selfInfo_t8t3q_207._active_t8t3q_215{background-color:#ffe5ea}._rankContainer_t8t3q_78 ._rankItem_t8t3q_206 ._num_t8t3q_219,._rankContainer_t8t3q_78 ._selfInfo_t8t3q_207 ._num_t8t3q_219{position:absolute;left:.21333rem;top:.53333rem;font-size:.53333rem;font-family:DINAlternate-Bold,DINAlternate;font-weight:700;color:#aaa;line-height:.64rem}._rankContainer_t8t3q_78 ._rankItem_t8t3q_206 ._userImg_t8t3q_230,._rankContainer_t8t3q_78 ._selfInfo_t8t3q_207 ._userImg_t8t3q_230{width:1.28rem;height:1.28rem;border-radius:50%;overflow:hidden;margin-right:.32rem;flex-shrink:0}._rankContainer_t8t3q_78 ._rankItem_t8t3q_206 ._userName_t8t3q_239,._rankContainer_t8t3q_78 ._selfInfo_t8t3q_207 ._userName_t8t3q_239{font-size:.42667rem;font-weight:600;color:#131415;line-height:.58667rem}._rankContainer_t8t3q_78 ._rankItem_t8t3q_206 ._subjectName_t8t3q_246,._rankContainer_t8t3q_78 ._selfInfo_t8t3q_207 ._subjectName_t8t3q_246{font-size:.32rem;color:#777;line-height:.45333rem}._rankContainer_t8t3q_78 ._rankItem_t8t3q_206 ._times_t8t3q_252,._rankContainer_t8t3q_78 ._selfInfo_t8t3q_207 ._times_t8t3q_252{font-size:.37333rem;color:#777;line-height:.53333rem}._rankContainer_t8t3q_78 ._rankItem_t8t3q_206 ._times_t8t3q_252 span,._rankContainer_t8t3q_78 ._selfInfo_t8t3q_207 ._times_t8t3q_252 span{font-size:.48rem;font-family:DINAlternate-Bold,DINAlternate;font-weight:700;color:#333;line-height:.56rem;padding-right:.10667rem}._rankContainer_t8t3q_78 ._selfInfo_t8t3q_207{background:#FFFFFF;box-shadow:0 .02667rem .32rem rgba(240,192,221,.43);border-radius:.53333rem .53333rem 0 0;margin:0;padding:.37333rem .66667rem calc(.37333rem + env(safe-area-inset-bottom)) 1.49333rem}._rankContainer_t8t3q_78 ._selfInfo_t8t3q_207 ._num_t8t3q_219{position:absolute;left:.8rem;top:.69333rem}._rankListDay_t8t3q_279{background:linear-gradient(180deg,#C1F2F9 0%,#D3FFFF 29%,#FFEBCE 100%)}._rankListDay_t8t3q_279 ._sticky_t8t3q_60 .van-sticky{background:url(./assets/day-bg.9df67bae.png) no-repeat top center #C1F2F9;background-size:100% 10.58667rem}._rankListDay_t8t3q_279 ._rankItem_t8t3q_206._active_t8t3q_215,._rankListDay_t8t3q_279 ._selfInfo_t8t3q_207._active_t8t3q_215{background-color:#e4f7f7}._rankListDay_t8t3q_279 ._selfInfo_t8t3q_207{box-shadow:0 .02667rem .32rem rgba(236,219,196,.34)}._rankListDay_t8t3q_279 ._selfInfo_t8t3q_207 ._num_t8t3q_219{position:absolute;left:.8rem;top:.69333rem}._emptyResult_t8t3q_298{position:absolute;width:100%;height:calc(100vh - var(--header-height));display:flex;align-items:center}\n',document.head.appendChild(r),System.register(["./ResizeObserver.es-legacy.44b91b4c.js","./index-legacy.9696a579.js","./index-legacy.6ac2a941.js","./index-legacy.3ccba950.js","./index-legacy.9d5cae73.js","./index-legacy.cf09c997.js","./index-legacy.4be048cf.js","./index-legacy.33d046ca.js","./index-legacy.9bc72b69.js","./index-legacy.c8c5bc4e.js","./isBetween-legacy.47c676b5.js","./icon_student-legacy.49eef9e9.js","./index-legacy.4bad5b90.js","./use-id-legacy.ef8b5e97.js","./use-tab-status-legacy.d7434e0b.js","./use-refs-legacy.d925b49f.js","./utils-legacy.9fa07eff.js"],(function(t){"use strict";var a,r,i,s,l,_,o,c,m,u,d,f,g,v,p,q,k,b,h,I,y,w,L,T,A;return{setters:[function(e){a=e.d,r=e.w,i=e.Q,s=e.P,l=e.S,_=e.W,o=e.g,c=e.V,m=e.j,u=e.F,d=e.N,f=e.f,g=e.n,v=e.A,p=e.C,q=e.y},function(e){k=e.T},function(e){b=e.C},function(){},function(){},function(e){h=e.T,I=e.a},function(e){y=e.I},function(){},function(e){w=e.C},function(e){L=e.C},function(e){T=e.i},function(e){A=e.s},function(){},function(){},function(){},function(){},function(){}],execute:function(){var j={rankListPage:"_rankListPage_t8t3q_1",timeRange:"_timeRange_t8t3q_38",iconArrow:"_iconArrow_t8t3q_44",bgImg:"_bgImg_t8t3q_52",sticky:"_sticky_t8t3q_60",backArrow:"_backArrow_t8t3q_65",rankContainer:"_rankContainer_t8t3q_78",rankLevel:"_rankLevel_t8t3q_81",levelItem:"_levelItem_t8t3q_88",levelUserImg:"_levelUserImg_t8t3q_98",img:"_img_t8t3q_116",levelTime:"_levelTime_t8t3q_129",level1:"_level1_t8t3q_135",level2:"_level2_t8t3q_152",level3:"_level3_t8t3q_163",rankList:"_rankList_t8t3q_1",rankTitle:"_rankTitle_t8t3q_183",titleName:"_titleName_t8t3q_189",rankItem:"_rankItem_t8t3q_206",selfInfo:"_selfInfo_t8t3q_207",active:"_active_t8t3q_215",num:"_num_t8t3q_219",userImg:"_userImg_t8t3q_230",userName:"_userName_t8t3q_239",subjectName:"_subjectName_t8t3q_246",times:"_times_t8t3q_252",rankListDay:"_rankListDay_t8t3q_279",emptyResult:"_emptyResult_t8t3q_298"},D="./assets/empty-logo.7a66ef7e.png";r.extend(T);t("default",a({name:"ranking-list",setup:function(){var t,a=i();s();var T=l({showPopoverTime:!1,tabActive:"timeBill",firstInfo:{},secondInfo:{},threeInfo:{},myInfo:{},list:[],loading:!1,beforListShow:!0,listShow:!0}),N=_((function(){return"dayBill"===T.tabActive})),C=function(e){var t=r(e).day(),n="",a="";return 0===t?(n=r(e).subtract(6,"day").format("YYYY-MM-DD"),a=r(e).format("YYYY-MM-DD")):1===t?(n=r(e).format("YYYY-MM-DD"),a=r(e).add(6,"day").format("YYYY-MM-DD")):(n=r(e).subtract(t-1,"day").format("YYYY-MM-DD"),a=r(e).add(7-t,"day").format("YYYY-MM-DD")),{startTime:n,endTime:a}},x=l(n(n({},C()),{},{studentIds:null===(t=o.user.data)||void 0===t?void 0:t.userId,orderType:0,page:1,rows:20})),F=function(){var t,a=(t=regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return T.loading=!0,e.prev=1,e.next=4,q.post("/api-tenant/studentMusicCompareRecord/rankingList",{data:n({},x)});case 4:t=e.sent,a=t.data,T.beforListShow=a.detail&&a.detail.length>0,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)])}}}))}}}))}();