1 line
13 KiB
JavaScript
1 line
13 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a5b377f4"],{"097e":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:"levelReturn"}},[a("c-title",{attrs:{hide:!1,text:"分销商全返"}}),a("div",{staticClass:"share_holder"},[a("p",[a("span",[t._v(t._s(t.level))]),"1"==t.is_days?a("span",[t._v("返还天数:"+t._s(t.return_time))]):t._e()]),a("ul",{staticClass:"today_bonus"},t._l(t.ratioDatas,(function(e,i){return a("li",{key:i,class:e.name},[a("span",[t._v(t._s(e.money))]),a("br"),a("b",[t._v(t._s(e.data))])])})),0)]),a("div",{staticClass:"content"},[a("van-pull-refresh",{attrs:{"success-text":"刷新成功"},on:{refresh:t.loadTop},model:{value:t.isLoading,callback:function(e){t.isLoading=e},expression:"isLoading"}},[a("van-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("van-tab",{attrs:{name:"first"}},[a("span",{attrs:{slot:"title"},on:{click:function(e){return t.handleClick("0")}},slot:"title"},[t._v("全部")])]),a("van-tab",{attrs:{name:"second"}},[a("span",{attrs:{slot:"title"},on:{click:function(e){return t.handleClick("1")}},slot:"title"},[t._v("未返还")])]),a("van-tab",{attrs:{name:"third"}},[a("span",{attrs:{slot:"title"},on:{click:function(e){return t.handleClick("2")}},slot:"title"},[t._v("已返还")])]),a("van-tab",{attrs:{name:"fourth"}},[a("span",{attrs:{slot:"title"},on:{click:function(e){return t.handleClick("3")}},slot:"title"},[t._v("无效")])])],1),a("div",[a("div",{directives:[{name:"show",rawName:"v-show",value:"first"==t.activeName,expression:"activeName=='first'"}]},[a("ul",{staticClass:"rationList"},t._l(t.first_content,(function(e,i){return a("li",{key:i},[a("div",{staticClass:"detail"},[a("span",{staticClass:"month"},[t._v(t._s(e.created_at))]),a("div",{staticClass:"info"},[a("div",{staticClass:"left"},[a("span",[t._v("返还ID:"+t._s(e.id))]),"1"==t.is_days?a("p",[t._v(" 返还时间:"+t._s(e.return_time)+"天 ")]):t._e()]),a("div",{staticClass:"right"},[a("b",[t._v(t._s(e.amount)+"元")]),a("br"),a("span",[t._v(t._s(e.status_name))])])])])])})),0)]),a("div",{directives:[{name:"show",rawName:"v-show",value:"second"==t.activeName,expression:"activeName=='second'"}]},[a("ul",{staticClass:"rationList"},t._l(t.second_content,(function(e,i){return a("li",{key:i},[a("div",{staticClass:"detail"},[a("span",{staticClass:"month"},[t._v(t._s(e.created_at))]),a("div",{staticClass:"info"},[a("div",{staticClass:"left"},[a("span",[t._v("返还ID:"+t._s(e.id))]),"1"==t.is_days?a("p",[t._v(" 返还时间:"+t._s(e.return_time)+"天 ")]):t._e()]),a("div",{staticClass:"right"},[a("b",[t._v(t._s(e.amount)+"元")]),a("br"),a("span",[t._v(t._s(e.status_name))])])])])])})),0)]),a("div",{directives:[{name:"show",rawName:"v-show",value:"third"==t.activeName,expression:"activeName=='third'"}]},[a("ul",{staticClass:"rationList"},t._l(t.third_content,(function(e,i){return a("li",{key:i},[a("div",{staticClass:"detail"},[a("span",{staticClass:"month"},[t._v(t._s(e.created_at))]),a("div",{staticClass:"info"},[a("div",{staticClass:"left"},[a("span",[t._v("返还ID:"+t._s(e.id))]),"1"==t.is_days?a("p",[t._v(" 返还时间:"+t._s(e.return_time)+"天 ")]):t._e()]),a("div",{staticClass:"right"},[a("b",[t._v(t._s(e.amount)+"元")]),a("br"),a("span",[t._v(t._s(e.status_name))])])])])])})),0)]),a("div",{directives:[{name:"show",rawName:"v-show",value:"fourth"==t.activeName,expression:"activeName=='fourth'"}]},[a("ul",{staticClass:"rationList"},t._l(t.fourth_content,(function(e,i){return a("li",{key:i},[a("div",{staticClass:"detail"},[a("span",{staticClass:"month"},[t._v(t._s(e.created_at))]),a("div",{staticClass:"info"},[a("div",{staticClass:"left"},[a("span",[t._v("返还ID:"+t._s(e.id))]),"1"==t.is_days?a("p",[t._v(" 返还时间:"+t._s(e.return_time)+"天 ")]):t._e()]),a("div",{staticClass:"right"},[a("b",[t._v(t._s(e.amount)+"元")]),a("br"),a("span",[t._v(t._s(e.status_name))])])])])])})),0)])])],1)],1)],1)},n=[],o=(a("e7e5"),a("d399")),s=(a("b0c0"),a("99af"),a("6968")),r=a("ac0d"),l="0",d=!1,c=!1,h=!1,u={mixins:[r["a"]],data:function(){return{sType:"",is_days:0,level:"",return_time:"",ratioDatas:[],activeName:"first",first_content:[],second_content:[],third_content:[],fourth_content:[],loading:!1,allLoaded:!1,goload:!0,isLoadMore:!0,page:1,total_page:0,isLoading:!1}},activated:function(){this.initData(),this.initInfo(),this.setDataByTabIndex()},methods:{loadTop:function(){this.initPageData(),this.getData(this.sType)},initPageData:function(){d=!1,c=!1,h=!1,this.first_content=[],this.second_content=[],this.third_content=[],this.fourth_content=[],this.page=1,this.total_page=0,this.goload=!0,this.loading=!0,this.allLoaded=!1,this.isLoadMore=!0},initData:function(){this.is_days="",this.level="",this.return_time="",this.ratioDatas=[],l="0",this.activeName="first",d=!1,c=!1,h=!1,this.first_content=[],this.second_content=[],this.third_content=[],this.fourth_content=[],this.page=1,this.total_page=0,this.goload=!0,this.loading=!0,this.allLoaded=!1,this.isLoadMore=!0},initInfo:function(){var t=this;$http.get("plugin.level-return.api.level-return.get-level-return-statistic",{}).then((function(e){if(1==e.result){t.level=e.data.level,t.return_time=e.data.return_time;var a=new Object;a.money=e.data.amountTotal,a.data="总返还金额",a.name="data",t.ratioDatas.push(a);var i=new Object;i.money=e.data.notReturn,i.data="未返还金额",i.name="data",t.ratioDatas.push(i);var n=new Object;n.money=e.data.return_amount,n.data="已返还金额",n.name="data",t.ratioDatas.push(n);var s=new Object;s.money=e.data.invalid,s.data="无效金额",s.name="data",t.ratioDatas.push(s)}else Object(o["a"])(e.msg)}),(function(t){Object(o["a"])(t.msg)}))},getData:function(t){var e=this,a={status:t,page:1};$http.get("plugin.level-return.api.level-return.get-return-log",a,"获取中").then((function(a){if(e.is_days=a.data.is_days,1==a.result){switch(e.total_page=a.data.last_page,t){case"":e.first_content=a.data.data;break;case"0":e.second_content=a.data.data;break;case"1":e.third_content=a.data.data;break;case"-1":e.fourth_content=a.data.data;break;default:break}e.isLoading=!1}else Object(o["a"])(a.msg),e.isLoading=!1}),(function(t){Object(o["a"])(t.msg)}))},getMoreData:function(){var t=this.sType,e=this;if(this.page!=this.total_page){if(this.page>=this.total_page)return e.loading=!0,void(e.allLoaded=!0);this.page=this.page+1;var a={status:t,page:this.page};$http.get("plugin.level-return.api.level-return.get-return-log",a,"加载中...").then((function(a){if(1!=a.result)return e.page=e.page-1,e.loading=!0,e.allLoaded=!0,void(e.isLoadMore=!1);switch(e.loading=!1,e.allLoaded=!1,t){case"":e.first_content=e.first_content.concat(a.data.data);break;case"0":e.second_content=e.second_content.concat(a.data.data);break;case"1":e.third_content=e.third_content.concat(a.data.data);break;case"-1":e.fourth_content=e.fourth_content.concat(a.data.data);break;default:break}}),(function(t){}))}},setDataByTabIndex:function(){"0"!=l||d?"1"!=l||c?"2"!=l||h?"3"!=l||h||(this.sType="-1",this.getData("-1")):(h=!0,this.sType="1",this.getData("1")):(c=!0,this.sType="0",this.getData("0")):(d=!0,this.sType="",this.getData(""))},handleClick:function(t,e){l!=t&&(l=t,this.setDataByTabIndex())}},components:{cTitle:s["a"]}},v=u,f=v,_=(a("f585"),a("2877")),g=Object(_["a"])(f,i,n,!1,null,"02675e9a",null);e["default"]=g.exports},7440:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"*[data-v-02675e9a]{-webkit-box-sizing:border-box;box-sizing:border-box}#levelReturn .share_holder[data-v-02675e9a]{font-size:14px}#levelReturn .share_holder p[data-v-02675e9a]{margin-bottom:.625rem;padding:1rem .75rem;line-height:1.5rem;-webkit-box-sizing:border-box;box-sizing:border-box;background:#f15353;color:#fff;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}#levelReturn .share_holder p span[data-v-02675e9a]:first-child,#levelReturn .share_holder p span[data-v-02675e9a]:nth-child(2){line-height:1.5rem}#levelReturn .share_holder .today_bonus[data-v-02675e9a]{width:100%;height:5.375rem;background:#fff;padding:1rem 0;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;border-bottom:.0625rem solid #ebebeb}#levelReturn .share_holder .today_bonus li.line[data-v-02675e9a]{position:absolute;width:.0625rem;height:2.8125rem;background:#ddd;margin-top:.625rem;top:0;right:32%}#levelReturn .share_holder .today_bonus li.line .careat[data-v-02675e9a]{position:absolute;width:.0625rem;height:4.0625rem;background:#ddd;top:0;right:32%}#levelReturn .share_holder .today_bonus li[data-v-02675e9a]{text-align:center;float:left}#levelReturn .share_holder .today_bonus li span[data-v-02675e9a]{margin-bottom:.625rem;display:inline-block;font-size:17px;line-height:1.625rem}#levelReturn .share_holder .today_bonus li b[data-v-02675e9a]{font-size:11px;color:#333}#levelReturn .share_holder .today_bonus li.data[data-v-02675e9a]{width:25%}#levelReturn .share_holder .today_bonus li.data span[data-v-02675e9a]{color:#ffa800}#levelReturn .share_holder .today_bonus li[data-v-02675e9a]:first-child,#levelReturn .share_holder .today_bonus li[data-v-02675e9a]:nth-child(2),#levelReturn .share_holder .today_bonus li[data-v-02675e9a]:nth-child(3){border-right:.0625rem solid #ebebeb}#levelReturn .share_holder .today_bonus li.mounth[data-v-02675e9a]{width:33%}#levelReturn .share_holder .today_bonus li.mounth span[data-v-02675e9a]{color:#f15353}#levelReturn .code[data-v-02675e9a]{height:2.75rem;width:100%;background:#fff;padding:0 0 0 3%;font-size:14px;line-height:2.75rem;color:#333;text-align:left;margin-top:.375rem;-webkit-box-sizing:border-box;box-sizing:border-box}#levelReturn .code i[data-v-02675e9a]{float:right;line-height:2.75rem;display:inline-block;font-size:14px;margin-right:.375rem;color:#929292;width:1.25rem;height:1.25rem;text-align:center;background-size:1.25rem}#levelReturn .content .ratioNav[data-v-02675e9a]{padding:0;margin:0;height:2.375rem;width:100%;background:#fff;border-bottom:.0625rem solid #f15353;border-top:.0625rem solid #f15353}#levelReturn .content .ratioNav li[data-v-02675e9a]{float:left;width:25%;text-align:center;line-height:2.1875rem;font-size:14px;color:#666}#levelReturn .content .rationList[data-v-02675e9a]{padding:0;margin:0}#levelReturn .content .rationList li[data-v-02675e9a]{border-bottom:.0625rem solid #e2e2e2}#levelReturn .content .rationList li span.month[data-v-02675e9a]{display:block;height:1.5625rem;line-height:1.5625rem;text-align:left;padding:.3125rem .625rem;background:#fff}#levelReturn .content .rationList li .info[data-v-02675e9a]{overflow:hidden;padding:.625rem;background:#fff;line-height:1.25rem}#levelReturn .content .rationList li .info .left[data-v-02675e9a]{width:70%;float:left;text-align:left;-webkit-box-sizing:border-box;box-sizing:border-box}#levelReturn .content .rationList li .info .left span[data-v-02675e9a]{font-size:14px;font-weight:400;height:1.25rem;line-height:1.25rem;color:#333}#levelReturn .content .rationList li .info .left p[data-v-02675e9a]{font-size:12px;height:1.25rem;line-height:1.25rem;color:#999}#levelReturn .content .rationList li .info .left span.created[data-v-02675e9a]{font-size:12px}#levelReturn .content .rationList li .info .left h4[data-v-02675e9a]{font-weight:400}#levelReturn .content .rationList li .info .left h4 b[data-v-02675e9a]{font-weight:400;color:#f15353}#levelReturn .content .rationList li .info .right[data-v-02675e9a]{float:left;width:30%;color:#20b86a;text-align:right}#levelReturn .content .rationList li .info .right p[data-v-02675e9a]{margin:0;padding:0;font-size:12px;color:#888}#levelReturn .content .rationList li .info .right b[data-v-02675e9a]{font-weight:400;color:#f15353}#levelReturn .content .rationList li .info .right b.created[data-v-02675e9a]{line-height:2.1875rem}",""]),t.exports=e},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(){}}}},b2a3:function(t,e,a){var i=a("7440");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("499e").default;n("40d54261",i,!0,{sourceMap:!1,shadowMode:!1})},f585:function(t,e,a){"use strict";a("b2a3")}}]); |