1 line
8.3 KiB
JavaScript
1 line
8.3 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7cf8bd78"],{"0415":function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,'p[data-v-48e63019]{margin:0;padding:0}#shareholderCenter .m_header[data-v-48e63019]{width:100%;height:2.8125rem;line-height:2.8125rem;font-size:15px;font-weight:700;background:#fff}#shareholderCenter .m_header span[data-v-48e63019]{display:inline-block;width:1rem;height:1.5rem;float:left;margin-left:.625rem;font-size:30px}#shareholderCenter .share_holder[data-v-48e63019]{padding:1rem .75rem;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#e84f40;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;font-size:14px}#shareholderCenter .share_holder .right[data-v-48e63019]{width:55%;text-align:right;color:#fff;-webkit-box-sizing:border-box;box-sizing:border-box}#shareholderCenter .share_holder .right span[data-v-48e63019]{line-height:1.5rem}#shareholderCenter .share_holder .right span[data-v-48e63019]:first-child{font-weight:700;font-size:20px}#shareholderCenter .share_holder .left[data-v-48e63019]{width:45%;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;text-align:left;line-height:1.5rem}#shareholderCenter .share_info[data-v-48e63019]{width:100%;height:4.0625rem;background-color:#fff;margin-bottom:.625rem}#shareholderCenter .share_info div[data-v-48e63019]{color:#737372;font-size:12px;padding-top:.9375rem;line-height:1.25rem;float:left;width:50%;-webkit-box-sizing:border-box;box-sizing:border-box}#shareholderCenter .share_info div span[data-v-48e63019]{color:#e84f40;font-size:16px;font-weight:700}#shareholderCenter .shareholder-order #tabs .rationList .list[data-v-48e63019]{margin:.1875rem 0;background-color:#fff}#shareholderCenter .shareholder-order #tabs .rationList .list h4[data-v-48e63019]{width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;padding:.625rem 1.25rem;text-align:left;color:#333;font-size:14px;font-weight:400}#shareholderCenter .shareholder-order #tabs .rationList .list h4 span[data-v-48e63019]{display:inline-block;font-size:14px;font-weight:400;color:#000;background-color:#fff;border-radius:.3125rem;float:right}#shareholderCenter .shareholder-order #tabs .rationList .list ul[data-v-48e63019]:after{content:"";display:block;clear:both}#shareholderCenter .shareholder-order #tabs .rationList .list ul[data-v-48e63019]{width:100%;padding:.625rem 0}#shareholderCenter .shareholder-order #tabs .rationList .list ul li[data-v-48e63019]{width:33%;float:left;font-size:12px;color:#8c9295;line-height:1.375rem}#shareholderCenter .shareholder-order #tabs .rationList .list ul li span[data-v-48e63019]{color:#333;font-size:14px}#shareholderCenter .shareholder-order #tabs .rationList .list p[data-v-48e63019]{color:#aab2b9;text-align:left;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 1.25rem .9375rem;font-size:14px}#shareholderCenter .shareholder-order #tabs .rationList .list p span[data-v-48e63019]{color:#728ae3;float:right}#shareholderCenter .shareholder-order #tabs .rationList .recordList[data-v-48e63019]{padding:.9375rem;font-size:14px;line-height:1.125rem;color:#333;text-align:left;background-color:#fff;margin:.125rem}#shareholderCenter .shareholder-order #tabs .rationList .recordList span[data-v-48e63019]{font-size:14px;float:right}#shareholderCenter .shareholder-order #tabs .rationList[data-v-48e63019]:after{content:"";display:block;clear:both}',""]),e.exports=t},"18ce":function(e,t,a){var i=a("0415");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var o=a("499e").default;o("6b317f4c",i,!0,{sourceMap:!1,shadowMode:!1})},"18f5":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"shareholderCenter"}},[a("c-title",{attrs:{hide:!1,text:e.custom_name}}),a("div",{staticClass:"share_holder"},[a("div",{staticClass:"left"},[e._v(" 团队等级:"+e._s(e.team_level)+" "),a("br"),e.capping?a("span",[e._v("封顶金额:"+e._s(e.capping_money))]):e._e()]),a("div",{staticClass:"right"},[a("span",[e._v(e._s(e.$i18n.t("money"))+" "+e._s(e.amountTotal)+" ")]),a("br"),a("span",[e._v("已分红(元)")])])]),a("div",{staticClass:"shareholder-order"},[a("div",{attrs:{id:"tabs"}},[a("van-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("van-tab",{attrs:{name:"first"}},[a("span",{attrs:{slot:"title"},on:{click:function(t){return e.handleClick("0")}},slot:"title"},[e._v("分红记录")])])],1),a("div",[a("div",{directives:[{name:"show",rawName:"v-show",value:"first"==e.activeName,expression:"activeName=='first'"}]},[a("van-pull-refresh",{attrs:{"success-text":"刷新成功"},on:{refresh:e.loadTop},model:{value:e.isLoading,callback:function(t){e.isLoading=t},expression:"isLoading"}},[a("ul",{staticClass:"rationList"},e._l(e.first_content,(function(t,i){return a("li",{key:i,staticClass:"list"},[a("h4",[e._v(" 分红ID:"+e._s(t.id)+" "),a("span",[e._v(e._s(t.amount)),a("small",[e._v("元")])])]),a("p",[e._v(" "+e._s(t.created_at)+" ")])])})),0)])],1)])],1)])],1)},o=[],r=(a("e7e5"),a("d399")),n=(a("99af"),a("6968")),s=a("ac0d"),l="0",d=!1,h=!1,c={mixins:[s["a"]],data:function(){return{activeName:"first",first_content:[],second_content:[],amountTotal:"0.00",team_level:"",loading:!1,allLoaded:!1,goload:!0,isLoadMore:!0,page:1,total_page:0,capping_money:"",capping:"",custom_name:"",isLoading:!1}},mounted:function(){},activated:function(){this.initData(),this.getData(),this.setDataByTabIndex()},methods:{initData:function(){l="0",d=!1,h=!1,this.activeName="first",this.first_content=[],this.second_content=[],this.amountTotal="0.00",this.team_level="",this.page=1,this.total_page=0,this.goload=!0,this.loading=!0,this.allLoaded=!1,this.isLoadMore=!0,this.capping_money="",this.capping="",this.custom_name=""},loadTop:function(){this.initData(),this.getDividendList()},getData:function(){var e=this;$http.get("plugin.shareholder-dividend.api.shareholder.get-shareholder-statistic",{},"").then((function(t){1==t.result?(e.amountTotal=t.data.amountTotal,e.team_level=t.data.team_level,e.capping_money=t.data.capping_money,e.capping=t.data.capping,e.custom_name=t.data.set.custom_name||"股东分红",e.fun.setWXTitle(e.custom_name)):Object(r["a"])(t.msg)}),(function(e){Object(r["a"])(e.msg)}))},getDividendList:function(){var e=this;$http.get("plugin.shareholder-dividend.api.shareholder.get-shareholder-log",{page:this.page},"").then((function(t){1==t.result?(e.first_content=t.data.data,e.total_page=t.data.last_page,e.isLoading=!1):(e.isLoading=!1,Object(r["a"])(t.msg))}),(function(e){Object(r["a"])(e.msg)}))},getMoreData:function(){var e=this;if(this.page!=this.total_page)return this.page>=this.total_page?(e.loading=!0,void(e.allLoaded=!0)):(this.page=this.page+1,void $http.get("plugin.shareholder-dividend.api.shareholder.get-shareholder-log",{page:this.page},"加载中...").then((function(t){if(1!=t.result)return e.page=e.page-1,e.loading=!0,e.allLoaded=!0,void(e.isLoadMore=!1);var a=t.data;e.loading=!1,e.allLoaded=!1,e.first_content=e.first_content.concat(a.data)}),(function(e){})))},setDataByTabIndex:function(){"0"!=l||d?"1"!=l||h||(h=!0):(d=!0,this.getDividendList())},handleClick:function(e,t){l!=e&&(l=e,this.setDataByTabIndex())}},components:{cTitle:n["a"]}},g=c,f=g,p=(a("3e0a4"),a("2877")),u=Object(p["a"])(f,i,o,!1,null,"48e63019",null);t["default"]=u.exports},"3e0a4":function(e,t,a){"use strict";a("18ce")},ac0d:function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var i=document.documentElement,o=document.body,r={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var e=0;return i&&i.scrollTop?e=i.scrollTop:o&&(e=o.scrollTop),e},getClientHeight:function(){var e=0;return e=o.clientHeight&&i.clientHeight?Math.min(o.clientHeight,i.clientHeight):Math.max(o.clientHeight,i.clientHeight),e},getScrollHeight:function(){return Math.max(o.scrollHeight,i.scrollHeight)},handleScroll:function(){this.otherScroll();var e=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=e>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}}}]); |