bztang-admin/addons/yun_shop/static/app/js/chunk-8cc9b270.f699845f.js

1 line
11 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8cc9b270"],{"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("已分红(元)")])])]),e.dividend_amount_plugin?a("div",{staticClass:"dividend"},[e._v("分红剩余额度:"+e._s(e.hold_amount||0))]):e._e(),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("分红记录")])]),e.dividend_amount_plugin?a("van-tab",{attrs:{name:"second"}},[a("span",{attrs:{slot:"title"},on:{click:function(t){return e.handleClick("1")}},slot:"title"},[e._v("分红额度明细")])]):e._e()],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),a("div",{directives:[{name:"show",rawName:"v-show",value:"second"==e.activeName,expression:"activeName=='second'"}],staticClass:"second"},e._l(e.limit_detail,(function(t,i){return a("div",{key:t.id,staticClass:"second-box"},[a("div",{staticClass:"bewteen",staticStyle:{margin:"0 0.8125rem 0.125rem 1.125rem"}},[a("span",[e._v(e._s(t.source_name))]),a("span",[e._v(e._s(t.amount))])]),a("div",{staticClass:"bewteen",staticStyle:{margin:"0 0.8125rem 0.125rem 1.125rem","font-size":"0.75rem",color:"#BBBBBB"}},[a("span",[e._v(e._s(t.created_at))]),a("span",[e._v(e._s(t.order_sn?t.order_sn:""))])]),i+1!==e.limit_detail.length?a("div",{staticClass:"line"}):e._e()])})),0),a("div",{directives:[{name:"show",rawName:"v-show",value:"second"==e.activeName,expression:"activeName=='second'"}],staticStyle:{height:"0.9375rem"}})])],1)])],1)},o=[],r=(a("e7e5"),a("d399")),n=(a("99af"),a("6968")),s=a("ac0d"),d="0",l={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,hold_amount:0,dividend_amount_plugin:!1,limit_detail:[]}},mounted:function(){},activated:function(){this.initData(),this.getData(),this.setDataByTabIndex()},methods:{initData:function(){d="0",!1,!1,this.activeName="first",this.first_content=[],this.second_content=[],this.limit_detail=[],this.amountTotl="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.dividend_amount_plugin=t.data.dividend_amount_plugin,e.fun.setWXTitle(e.custom_name),1==t.data.dividend_amount_plugin&&e.getShareLimit()):Object(r["a"])(t.msg)}),(function(e){Object(r["a"])(e.msg)}))},getShareLimit:function(){var e=this;$http.get("plugin.dividend-amount.frontend.modules.amount.controllers.records.index",{page:this.page},"").then((function(t){if(t.result){var a=t.data;e.hold_amount=a.hold_amount;var i=a.page_list.data;1==e.page?e.limit_detail=i:e.limit_detail=e.limit_detail.concat(i),e.total_page=a.page_list.last_page}else e.$toast(t.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("second"!=this.activeName?$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){})):this.getShareLimit()))},setDataByTabIndex:function(){"0"==d?this.getDividendList():"1"==d&&this.getShareLimit()},handleClick:function(e,t){d=e,this.page=1,this.setDataByTabIndex()}},components:{cTitle:n["a"]}},h=l,c=h,g=(a("284c"),a("2877")),m=Object(g["a"])(c,i,o,!1,null,"136e339c",null);t["default"]=m.exports},"24df":function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,'p[data-v-136e339c]{margin:0;padding:0}#shareholderCenter .second-box[data-v-136e339c]{background:#fff;padding-bottom:.7813rem}#shareholderCenter .bewteen[data-v-136e339c]{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;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#shareholderCenter .line[data-v-136e339c]{margin:.6875rem .375rem 0;background:#bbb;height:1px;opacity:.4}#shareholderCenter .second[data-v-136e339c]{margin:.6875rem;background:#fff;border-radius:.625rem;overflow:hidden;padding-top:1.25rem}#shareholderCenter .dividend[data-v-136e339c]{margin-bottom:.5rem;background:#fff;padding:.9375rem 1.0625rem;text-align:left}#shareholderCenter .m_header[data-v-136e339c]{width:100%;height:2.8125rem;line-height:2.8125rem;font-size:15px;font-weight:700;background:#fff}#shareholderCenter .m_header span[data-v-136e339c]{display:inline-block;width:1rem;height:1.5rem;float:left;margin-left:.625rem;font-size:30px}#shareholderCenter .share_holder[data-v-136e339c]{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-136e339c]{width:55%;text-align:right;color:#fff;-webkit-box-sizing:border-box;box-sizing:border-box}#shareholderCenter .share_holder .right span[data-v-136e339c]{line-height:1.5rem}#shareholderCenter .share_holder .right span[data-v-136e339c]:first-child{font-weight:700;font-size:20px}#shareholderCenter .share_holder .left[data-v-136e339c]{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-136e339c]{width:100%;height:4.0625rem;background-color:#fff;margin-bottom:.625rem}#shareholderCenter .share_info div[data-v-136e339c]{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-136e339c]{color:#e84f40;font-size:16px;font-weight:700}#shareholderCenter .shareholder-order #tabs .rationList .list[data-v-136e339c]{margin:.1875rem 0;background-color:#fff}#shareholderCenter .shareholder-order #tabs .rationList .list h4[data-v-136e339c]{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-136e339c]{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-136e339c]:after{content:"";display:block;clear:both}#shareholderCenter .shareholder-order #tabs .rationList .list ul[data-v-136e339c]{width:100%;padding:.625rem 0}#shareholderCenter .shareholder-order #tabs .rationList .list ul li[data-v-136e339c]{width:33%;float:left;font-size:12px;color:#8c9295;line-height:1.375rem}#shareholderCenter .shareholder-order #tabs .rationList .list ul li span[data-v-136e339c]{color:#333;font-size:14px}#shareholderCenter .shareholder-order #tabs .rationList .list p[data-v-136e339c]{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-136e339c]{color:#728ae3;float:right}#shareholderCenter .shareholder-order #tabs .rationList .recordList[data-v-136e339c]{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-136e339c]{font-size:14px;float:right}#shareholderCenter .shareholder-order #tabs .rationList[data-v-136e339c]:after{content:"";display:block;clear:both}',""]),e.exports=t},"284c":function(e,t,a){"use strict";a("2fd3")},"2fd3":function(e,t,a){var i=a("24df");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var o=a("499e").default;o("d237a42a",i,!0,{sourceMap:!1,shadowMode:!1})},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(){}}}}}]);