1 line
5.5 KiB
JavaScript
1 line
5.5 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-661fc8ac"],{"460c":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"#redRank[data-v-f42d00e4]{background-color:#fff;min-height:100vh}#redRank[data-v-f42d00e4] .van-tabs__line{background-color:#f9ab3e!important}#redRank .list[data-v-f42d00e4]{margin-top:.53rem;background-color:#fff}#redRank .list .left[data-v-f42d00e4]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}#redRank .list .left[data-v-f42d00e4],#redRank .list .left .topOne[data-v-f42d00e4]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#redRank .list .left .topOne[data-v-f42d00e4]{height:1.25rem;border-radius:.63rem;border:.03rem solid #f63b2c;padding:.28rem;font-size:.69rem;color:#f15353;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}#redRank .list .left .txt[data-v-f42d00e4]{font-size:.81rem;color:#333;margin-right:.34rem}#redRank .list .left .name[data-v-f42d00e4]{font-size:.81rem;color:#ff8828;width:5.47rem;margin-left:.72rem;margin-right:.56rem}#redRank .list .left .name[data-v-f42d00e4],#redRank .list .left .name .nickname[data-v-f42d00e4]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}#redRank .list .left .no[data-v-f42d00e4]{font-size:.94rem}#redRank .list .right[data-v-f42d00e4]{text-align:right;font-size:1rem;color:#f9ab3e}#redRank .list .lis[data-v-f42d00e4],#redRank .list .lisone[data-v-f42d00e4]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:1.16rem 1rem;border-bottom:1px solid #f2f2f2}#redRank .list .lisone[data-v-f42d00e4]{background-image:-webkit-gradient(linear,left bottom,left top,from(#feebe9),to(#fffaf9));background-image:-webkit-linear-gradient(bottom,#feebe9,#fffaf9);background-image:linear-gradient(0deg,#feebe9,#fffaf9)}",""]),t.exports=e},"598a":function(t,e,a){var i=a("460c");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("499e").default;n("0f200cfc",i,!0,{sourceMap:!1,shadowMode:!1})},a0b7:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"redRank"}},[a("c-title",{attrs:{hide:!1,text:"红包排名"}}),a("van-tabs",{attrs:{"title-active-color":"#f8aa3d"},on:{change:t.bindChange},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[a("van-tab",{attrs:{title:"今日排名"}}),a("van-tab",{attrs:{title:"本月排名"}}),a("van-tab",{attrs:{title:"总排名"}})],1),a("div",{staticClass:"list"},[t._l(t.list,(function(e,i){return[a("div",{key:i,class:[0==i?"lisone":"lis"]},[a("div",{staticClass:"left"},[a("div",{staticClass:"no",staticStyle:{color:"#f63b2c"}},[t._v(t._s(i<10?"0"+(i+1):i))]),a("div",{staticClass:"name"},[e.member?a("div",{staticClass:"nickname"},[t._v(t._s(e.member.nickname))]):t._e()]),a("div",{staticClass:"txt"},[t._v("抢红包获得")]),0==i?[2==t.active?a("div",{staticClass:"topOne"},[t._v("冠军")]):a("div",{staticClass:"topOne"},[t._v("今"+t._s(0==t.active?"日":"月")+"最佳")])]:t._e()],2),a("div",{staticClass:"right"},[t._v(t._s(t.$i18n.t("money"))+t._s(e.amount_total))])])]}))],2)],1)},n=[],o=(a("e7e5"),a("d399")),l=(a("99af"),a("6968")),s=a("ac0d"),r={mixins:[s["a"]],data:function(){return{active:0,recordsList:[],receive_logs:{},memberData:{},list:[],isLoadMore:!0,page:1,total_page:0}},activated:function(){this.active=0,this.getData()},methods:{bindChange:function(t){this.list=[],this.page=1,this.getData()},getData:function(){var t=this;$http.get("plugin.redpack-tool.frontend.rank.index",{page:this.page,rank_type:this.active+1},"加载中").then((function(e){1===e.result?(t.list=e.data.data,t.total_page=e.data.last_page,t.total_page||(t.total_page=0)):Object(o["a"])(e.msg)})).catch((function(t){}))},getMoreData:function(){var t=this;t.isLoadMore=!1,this.page>=this.total_page||(this.page=this.page+1,$http.get("plugin.redpack-tool.frontend.rank.index",{page:t.page,rank_type:this.active+1},"加载中").then((function(e){if(t.isLoadMore=!0,1!==e.result)return t.page=t.page-1,void(t.isLoadMore=!1);var a=e.data.data;t.list=t.list.concat(a)}),(function(t){})))}},components:{cTitle:l["a"]}},c=r,d=c,f=(a("a29d"),a("2877")),g=Object(f["a"])(d,i,n,!1,null,"f42d00e4",null);e["default"]=g.exports},a29d:function(t,e,a){"use strict";a("598a")},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return o}));var i=document.documentElement,n=document.body,o={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return i&&i.scrollTop?t=i.scrollTop:n&&(t=n.scrollTop),t},getClientHeight:function(){var t=0;return t=n.clientHeight&&i.clientHeight?Math.min(n.clientHeight,i.clientHeight):Math.max(n.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(n.scrollHeight,i.scrollHeight)},handleScroll:function(){this.otherScroll();var t=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=t>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}}}]); |