1 line
6.2 KiB
JavaScript
1 line
6.2 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6a428acb"],{"2d6a":function(t,e,a){"use strict";a("535d")},"535d":function(t,e,a){var i=a("7cb4");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=a("499e").default;o("53b3c862",i,!0,{sourceMap:!1,shadowMode:!1})},"7cb4":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"#stockholder_bonus .header[data-v-6872b5b0]{width:100%;padding-top:1.625rem;padding-bottom:1.625rem;padding-left:1.625rem;background-color:#ee2e2b;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#stockholder_bonus .header .left[data-v-6872b5b0]{width:2.875rem;height:2.875rem;border-radius:50%;margin-right:.75rem}#stockholder_bonus .header .left img[data-v-6872b5b0]{width:100%;height:100%;border-radius:50%}#stockholder_bonus .header .right[data-v-6872b5b0]{color:#fff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;text-align:left}#stockholder_bonus .header .right .top[data-v-6872b5b0]{font-size:16px}#stockholder_bonus .header .right .top[data-v-6872b5b0],#stockholder_bonus .header .right .top .button[data-v-6872b5b0]{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}#stockholder_bonus .header .right .top .button[data-v-6872b5b0]{padding:0 .5rem;height:1.25rem;background-color:hsla(0,0%,100%,.2);border-radius:.625rem;font-size:12px;margin-left:.375rem;color:#fff;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}#stockholder_bonus .header .right .bottom[data-v-6872b5b0]{font-size:12px}#stockholder_bonus .content .title[data-v-6872b5b0]{font-size:16px;color:#000;background-color:#fff;padding-top:.875rem;padding-left:1rem;text-align:left}#stockholder_bonus .content .list-wrap .list[data-v-6872b5b0]{padding:1rem;background-color:#fff;margin-bottom:.375rem}#stockholder_bonus .content .list-wrap .list .top[data-v-6872b5b0]{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}#stockholder_bonus .content .list-wrap .list .top .cash[data-v-6872b5b0]{color:#ff2c29}#stockholder_bonus .content .list-wrap .list .bottom[data-v-6872b5b0]{margin-top:1rem;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}",""]),t.exports=e},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return n}));var i=document.documentElement,o=document.body,n={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:o&&(t=o.scrollTop),t},getClientHeight:function(){var t=0;return t=o.clientHeight&&i.clientHeight?Math.min(o.clientHeight,i.clientHeight):Math.max(o.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(o.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(){}}}},c0e5: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:"stockholder_bonus"}},[a("c-title",{attrs:{hide:!1,text:t.info.weighted_name||""}}),t.info?a("div",{staticClass:"header"},[a("div",{staticClass:"left"},[a("img",{attrs:{src:t.info.avatar}})]),a("div",{staticClass:"right"},[a("div",{staticClass:"top"},[a("span",[t._v(t._s(t.info.nickname))]),a("span",{staticClass:"button"},[t._v(t._s(t.info.level_name))])]),a("div",{staticClass:"bottom"},[a("span",[t._v("累计金额:"+t._s(t.$i18n.t("money"))+t._s(t.info.money))])])])]):t._e(),a("div",{staticClass:"content"},[a("div",{staticClass:"title"},[t._v(" 分红记录 ")]),a("div",{staticClass:"list-wrap"},t._l(t.datas,(function(e,i){return a("div",{key:i,staticClass:"list"},[a("div",{staticClass:"top"},[a("span",[t._v("分红ID:"+t._s(e.id))]),a("span",{staticClass:"cash"},[t._v(t._s(e.personal_money)+"元")])]),a("div",{staticClass:"bottom"},[a("span",[t._v(t._s(e.created_at))]),a("span",[t._v("业绩比例:"+t._s(e.proportion)+"%")])])])})),0)])],1)},o=[],n=(a("99af"),a("6968")),s=a("ac0d"),l={mixins:[s["a"]],data:function(){return{info:{},datas:[],page:1,isLoadMore:!0,total_page:0}},activated:function(){this.getMember(),this.getData()},methods:{getMember:function(){var t=this,e={art:"index"};$http.post("plugin.weighted_dividend.api.index.weightedData",e,"加载中...").then((function(e){1==e.result&&(t.info=e.data.index,t.fun.setWXTitle(t.info.weighted_name))}),(function(t){}))},getData:function(){var t=this,e={art:"getData"};$http.post("plugin.weighted_dividend.api.index.weightedData",e,"加载中...").then((function(e){1==e.result&&(t.total_page=e.data.getData.data.last_page,t.total_page||(t.total_page=0),t.datas=e.data.getData.data.data)}),(function(t){}))},getMoreData:function(){this.isLoadMore=!1;var t=this;if(!(t.page>=t.total_page)){t.page+=1;var e={art:"getData",page:this.page};$http.post("plugin.weighted_dividend.api.index.weightedData",e,"加载中...").then((function(e){if(t.isLoadMore=!0,1!=e.result)return t.page=t.page-1,void(t.isLoadMore=!1);var a=e.data.getData.data.data;t.datas=t.datas.concat(a)})).catch((function(t){}))}}},components:{cTitle:n["a"]}},r=l,d=r,c=(a("2d6a"),a("2877")),b=Object(c["a"])(d,i,o,!1,null,"6872b5b0",null);e["default"]=b.exports}}]); |