bztang-admin/addons/yun_shop/static/app/js/chunk-6b737b50.0e2014f0.js

1 line
33 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6b737b50"],{"5a1d":function(t,e,a){var i=a("bcd33");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("4945feb5",i,!0,{sourceMap:!1,shadowMode:!1})},"5ecb":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:"teamAgentCenter"}},[a("c-title",{attrs:{hide:!1,text:t.mailTeamDividendTitle}}),a("div",{staticClass:"share_holder"},[a("div",{staticClass:"header_box"},[a("div",{staticClass:"left"},[a("span",[t._v(t._s(t.level_name))])]),a("ul",{staticClass:"right"},[a("li",[t._v(t._s(t.mailDividend)+"比例:"+t._s(t.dividend_ratio)+"%")]),a("li",[t._v("下级"+t._s(t.mailDividend)+"比例:"+t._s(t.next_dividend_ratio)+"%")])])]),a("div",{staticClass:"code_box"},["1"==t.is_activation_code?a("router-link",{attrs:{to:t.fun.getUrl("newteamCode")}},[a("div",{staticClass:"list1 code"},[a("div",{staticClass:"ico extension"}),t._v(" 我的激活码 "),a("i",{staticClass:"fa fa-angle-right"})])]):t._e(),1!=t.is_customer?a("router-link",{attrs:{to:t.fun.getUrl("newTeamClient")}},[a("div",{staticClass:"list1 code"},[a("div",{staticClass:"ico extension"}),t._v(t._s(t.team_agent)+" "),a("span",[t._v("("+t._s(t.peopleCount)+"人)")]),a("i",{staticClass:"fa fa-angle-right"})])]):t._e(),a("router-link",{attrs:{to:t.fun.getUrl("newFranchiserRed")}},["1"===t.showRed?a("div",{staticClass:"list1 code"},[a("div",{staticClass:"ico extension"}),t._v("红包奖励 "),a("i",{staticClass:"fa fa-angle-right"})]):t._e()]),1!=t.is_team_data?a("router-link",{attrs:{to:t.fun.getUrl("newteamPerformance")}},[a("div",{staticClass:"list1 code"},[a("div",{staticClass:"ico extension"}),t._v(" 团队业绩(订单金额:"+t._s(Number(t.teamPerformance.team_order_price).toFixed(2)||0)+" "),a("br"),t._v(" 商品销量:"+t._s(Number(t.teamPerformance.team_goods_total).toFixed(2)||0)+") "),a("i",{staticClass:"fa fa-angle-right"})])]):t._e()],1),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))])])})),t._m(0)],2)]),a("div",{staticClass:"money"},[a("ul",{staticClass:"gongge"},[a("li",[a("i",{staticClass:"iconfont icon-weitixian"}),a("span",[t._v(t._s(t.teamDividendLang.wait_dividend||"未结算")+t._s(t.dividend_amount))]),a("b",{directives:[{name:"show",rawName:"v-show",value:"first"===t.activeName,expression:"activeName === 'first'"}]},[t._v(" "+t._s(t.dividend.unliquidated||0)+" "),a("em",[t._v("元")])]),a("b",{directives:[{name:"show",rawName:"v-show",value:"second"===t.activeName,expression:"activeName === 'second'"}]},[t._v(" "+t._s(t.flat_prize.unliquidated||0)+" "),a("em",[t._v("元")])]),a("b",{directives:[{name:"show",rawName:"v-show",value:"third"===t.activeName,expression:"activeName === 'third'"}]},[t._v(" "+t._s(t.award_gratitude.unliquidated||0)+" "),a("em",[t._v("元")])]),a("b",{directives:[{name:"show",rawName:"v-show",value:"four"===t.activeName,expression:"activeName === 'four'"}]},[t._v(" "+t._s(t.extra_award.unliquidated||0)+" "),a("em",[t._v("元")])])]),a("li",[a("i",{staticClass:"iconfont icon-yijiesuan"}),a("span",[t._v(t._s(t.teamDividendLang.settle_dividend||"已结算")+t._s(t.dividend_amount))]),a("b",{directives:[{name:"show",rawName:"v-show",value:"first"===t.activeName,expression:"activeName === 'first'"}]},[t._v(" "+t._s(t.dividend.liquidated||0)+" "),a("em",[t._v("元")])]),a("b",{directives:[{name:"show",rawName:"v-show",value:"second"===t.activeName,expression:"activeName === 'second'"}]},[t._v(" "+t._s(t.flat_prize.liquidated||0)+" "),a("em",[t._v("元")])]),a("b",{directives:[{name:"show",rawName:"v-show",value:"third"===t.activeName,expression:"activeName === 'third'"}]},[t._v(" "+t._s(t.award_gratitude.liquidated||0)+" "),a("em",[t._v("元")])]),a("b",{directives:[{name:"show",rawName:"v-show",value:"four"===t.activeName,expression:"activeName === 'four'"}]},[t._v(" "+t._s(t.extra_award.liquidated||0)+" "),a("em",[t._v("元")])])])])]),a("div",{staticClass:"content"},[a("van-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[t.bonus_active?a("van-tab",{attrs:{name:"first"}},[a("span",{attrs:{slot:"title"},on:{click:function(e){return t.handleClick("0")}},slot:"title"},[t._v(t._s(t.bonus_lable))])]):t._e(),t.leveling_active?a("van-tab",{attrs:{name:"second"}},[a("span",{attrs:{slot:"title"},on:{click:function(e){return t.handleClick("1")}},slot:"title"},[t._v(t._s(t.leveling_label))])]):t._e(),t.prize_active?a("van-tab",{attrs:{name:"third"}},[a("span",{attrs:{slot:"title"},on:{click:function(e){return t.handleClick("2")}},slot:"title"},[t._v(t._s(t.prize_label))])]):t._e(),t.extra_active?a("van-tab",{attrs:{name:"four"}},[a("span",{attrs:{slot:"title"},on:{click:function(e){return t.handleClick("3")}},slot:"title"},[t._v(t._s(t.extra_award_label))])]):t._e()],1),a("div",[t.bonus_active?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.create_month))]),t._l(e.has_many_dividend,(function(e,s){return a("div",{key:s,staticClass:"info"},[a("div",{staticClass:"info-div",on:{click:function(e){return t.openDetail(i,s)}}},[a("ul",{staticClass:"left"},[a("li",[t._v("订单号:"+t._s(e.order_sn))]),a("li",{staticClass:"time"},[t._v("时间:"+t._s(e.created_at))])]),a("ul",{staticClass:"right"},[a("li",[t._v(t._s(e.dividend_amount))]),a("li",{staticClass:"state"},[t._v(t._s(e.status_name))])])]),1==t.is_team_order_details||1==t.is_team_buyer?a("div",{staticClass:"order_detail",class:{opens:i==t.display1&&s==t.display2}},[1==t.is_team_buyer?a("div",{staticClass:"team_list"},[e.member?a("div",{staticClass:"img"},[a("img",{attrs:{src:e.member.avatar}})]):t._e(),e.member?a("div",{staticClass:"info1"},[t._v(t._s(e.member.nickname)+" "),a("br"),a("span",[t._v("微信号:"+t._s(e.member.yz_member&&e.member.yz_member.wechat?e.member.yz_member.wechat:"暂无微信号"))])]):t._e()]):t._e(),t._l(e.order_goods,(function(e,i){return a("div",{directives:[{name:"show",rawName:"v-show",value:1==t.is_team_order_details,expression:"is_team_order_details==1"}],key:i,staticClass:"team_goods",attrs:{id:"distribution-goods"}},[a("div",{staticClass:"img"},[a("img",{attrs:{src:e.thumb}})]),a("div",{staticClass:"inner"},[a("div",{staticClass:"name"},[t._v(t._s(e.title))])]),a("div",{staticClass:"price"},[a("b",[t._v(t._s(t.$i18n.t("money"))+t._s(e.goods_price/e.total)+" "),a("br"),t._v(" ×"+t._s(e.total))]),a("div",{staticClass:"Total"},[t._v(t._s(t.$i18n.t("money"))+t._s(e.goods_price))])])])}))],2):t._e()])}))],2)])})),0)]):t._e(),t.leveling_active?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.create_month))]),t._l(e.has_many_dividend,(function(e,s){return a("div",{key:s,staticClass:"info"},[a("div",{staticClass:"info-div",on:{click:function(e){return t.openDetail(i,s)}}},[a("ul",{staticClass:"left"},[a("li",[t._v("订单号:"+t._s(e.order_sn))]),a("li",{staticClass:"time"},[t._v("时间:"+t._s(e.created_at))])]),a("ul",{staticClass:"right"},[a("li",[t._v(t._s(e.dividend_amount))]),a("li",{staticClass:"state"},[t._v(t._s(e.status_name))])])]),1==t.is_team_order_details||1==t.is_team_buyer?a("div",{staticClass:"order_detail",class:{opens:i==t.display1&&s==t.display2}},[1==t.is_team_buyer?a("div",{staticClass:"team_list"},[e.member?a("div",{staticClass:"img"},[a("img",{attrs:{src:e.member.avatar}})]):t._e(),e.member?a("div",{staticClass:"info1"},[t._v(t._s(e.member.nickname)+" "),a("br"),a("span",[t._v("微信号:"+t._s(e.member.yz_member&&e.member.yz_member.wechat?e.member.yz_member.wechat:"暂无微信号"))])]):t._e()]):t._e(),t._l(e.order_goods,(function(e,i){return a("div",{directives:[{name:"show",rawName:"v-show",value:1==t.is_team_order_details,expression:"is_team_order_details==1"}],key:i,staticClass:"team_goods",attrs:{id:"distribution-goods"}},[a("div",{staticClass:"img"},[a("img",{attrs:{src:e.thumb}})]),a("div",{staticClass:"inner"},[a("div",{staticClass:"name"},[t._v(t._s(e.title))])]),a("div",{staticClass:"price"},[a("b",[t._v(t._s(t.$i18n.t("money"))+t._s(e.goods_price/e.total)+" "),a("br"),t._v(" ×"+t._s(e.total))]),a("div",{staticClass:"Total"},[t._v(t._s(t.$i18n.t("money"))+t._s(e.goods_price))])])])}))],2):t._e()])}))],2)])})),0)]):t._e(),t.prize_active?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.create_month))]),t._l(e.has_many_dividend,(function(e,s){return a("div",{key:s,staticClass:"info"},[a("div",{staticClass:"info-div",on:{click:function(e){return t.openDetail(i,s)}}},[a("ul",{staticClass:"left"},[a("li",[t._v("订单号:"+t._s(e.order_sn))]),a("li",{staticClass:"time"},[t._v("时间:"+t._s(e.created_at))])]),a("ul",{staticClass:"right"},[a("li",[t._v(t._s(e.dividend_amount))]),a("li",{staticClass:"state"},[t._v(t._s(e.status_name))])])]),1==t.is_team_order_details||1==t.is_team_buyer?a("div",{staticClass:"order_detail",class:{opens:i==t.display1&&s==t.display2}},[1==t.is_team_buyer?a("div",{staticClass:"team_list"},[e.member?a("div",{staticClass:"img"},[a("img",{attrs:{src:e.member.avatar}})]):t._e(),e.member?a("div",{staticClass:"info1"},[t._v(t._s(e.member.nickname)+" "),a("br"),a("span",[t._v("微信号:"+t._s(e.member.yz_member&&e.member.yz_member.wechat?e.member.yz_member.wechat:"暂无微信号"))])]):t._e()]):t._e(),t._l(e.order_goods,(function(e,i){return a("div",{directives:[{name:"show",rawName:"v-show",value:1==t.is_team_order_details,expression:"is_team_order_details==1"}],key:i,staticClass:"team_goods",attrs:{id:"distribution-goods"}},[a("div",{staticClass:"img"},[a("img",{attrs:{src:e.thumb}})]),a("div",{staticClass:"inner"},[a("div",{staticClass:"name"},[t._v(t._s(e.title))])]),a("div",{staticClass:"price"},[a("b",[t._v(t._s(t.$i18n.t("money"))+t._s(e.goods_price/e.total)+" "),a("br"),t._v(" ×"+t._s(e.total))]),a("div",{staticClass:"Total"},[t._v(t._s(t.$i18n.t("money"))+t._s(e.goods_price))])])])}))],2):t._e()])}))],2)])})),0)]):t._e(),t.extra_active?a("div",{directives:[{name:"show",rawName:"v-show",value:"four"==t.activeName,expression:"activeName=='four'"}]},[a("ul",{staticClass:"rationList"},t._l(t.four_content,(function(e,i){return a("li",{key:i},[a("div",{staticClass:"detail"},[a("span",{staticClass:"month"},[t._v(t._s(e.create_month))]),t._l(e.has_many_dividend,(function(i,s){return a("div",{key:s,staticClass:"info"},[t._l(e.has_many_dividend,(function(e,i){return a("div",{key:i,staticClass:"info"},[a("ul",{staticClass:"left"},[a("li",[t._v("订单号:"+t._s(e.order_sn))]),a("li",{staticClass:"time"},[t._v("时间:"+t._s(e.created_at))])]),a("ul",{staticClass:"right"},[a("li",[t._v(t._s(e.dividend_amount))]),a("li",{staticClass:"state"},[t._v(t._s(e.status_name))])])])})),1==t.is_team_order_details||1==t.is_team_buyer?a("div",{staticClass:"order_detail",class:{opens:t.index1==t.display1&&t.index2==t.display2}},[1==t.is_team_buyer?a("div",{staticClass:"team_list"},[i.member?a("div",{staticClass:"img"},[a("img",{attrs:{src:i.member.avatar}})]):t._e(),i.member?a("div",{staticClass:"info1"},[t._v(t._s(i.member.nickname)+" "),a("br"),a("span",[t._v("微信号:"+t._s(i.member.yz_member&&i.member.yz_member.wechat?i.member.yz_member.wechat:"暂无微信号"))])]):t._e()]):t._e(),t._l(i.order_goods,(function(e,i){return a("div",{directives:[{name:"show",rawName:"v-show",value:1==t.is_team_order_details,expression:"is_team_order_details==1"}],key:i,staticClass:"team_goods",attrs:{id:"distribution-goods"}},[a("div",{staticClass:"img"},[a("img",{attrs:{src:e.thumb}})]),a("div",{staticClass:"inner"},[a("div",{staticClass:"name"},[t._v(t._s(e.title))])]),a("div",{staticClass:"price"},[a("b",[t._v(t._s(t.$i18n.t("money"))+t._s(e.goods_price/e.total)+" "),a("br"),t._v(" ×"+t._s(e.total))]),a("div",{staticClass:"Total"},[t._v(t._s(t.$i18n.t("money"))+t._s(e.goods_price))])])])}))],2):t._e()],2)}))],2)])})),0)]):t._e(),a("ul",{staticClass:"rationList"},t._l(t.third_content,(function(e,i){return a("li",{key:i},[a("div",{staticClass:"detail"},[a("div",{staticClass:"info"},[a("div",{staticClass:"left"},[a("h4",[t._v(" 下级 "),a("b",[t._v(t._s(e.subordinate_name))]),t._v(" "+t._s(e.level_name)+" ")]),a("span",{staticClass:"created"},[t._v(t._s(e.created_at))])]),a("div",{staticClass:"right"},[a("b",{staticClass:"created"},[t._v("+"+t._s(e.reward_amount))])])])])])})),0)])],1)],1)},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",{staticClass:"line"},[a("div",{staticClass:"careat"})])}],n=(a("e7e5"),a("d399")),d=(a("b64b"),a("b0c0"),a("14d9"),a("99af"),a("6968")),r=a("ac0d"),o="0",l={mixins:[r["a"]],data:function(){return{team_agent:"",display1:"-1",display2:"-1",is_team_buyer:0,is_team_order_details:0,mailLanguage:"",mailTeamDividendTitle:"",mailDividend:"",is_activation_code:"0",level_name:"",dividend_ratio:"",next_dividend_ratio:"",ratioDatas:[],activeName:"first",first_content:[],second_content:[],third_content:[],four_content:[],bonus_active:!0,leveling_active:!0,prize_active:!0,extra_active:!0,record_index:"",record_key:"",record_extra:"",tab_name:"提成",bonus_lable:"",leveling_label:"",prize_label:"",extra_label:"",bonus_save:[],leveling_save:[],prize_save:[],extra_save:[],peopleCount:0,teamPerformance:{},showRed:0,dividend_amount:"",dividend:{},flat_prize:{},award_gratitude:{},extra_award:{},loading:!1,allLoaded:!1,goload:!0,isLoadMore:!0,page:1,total_page:0,dividend_type:"0",is_customer:!1,is_team_data:!1,extra_award_label:""}},activated:function(){var t=this;setTimeout((function(){t.team_agent=JSON.parse(window.localStorage.getItem("mailLanguage")).team_dividend&&JSON.parse(window.localStorage.getItem("mailLanguage")).team_dividend.my_agent?JSON.parse(window.localStorage.getItem("mailLanguage")).team_dividend.my_agent:"我的客户"}),2e3),this.getBasic(),this.initMailLanguage(),this.initData(),this.setDataByTabIndex()},computed:{teamDividendLang:function(){return this.$store.state.shopLanguage.team_dividend?this.$store.state.shopLanguage.team_dividend:{wait_dividend:"未结算",settle_dividend:"已结算",extra_award:"额外奖励"}}},methods:{getTeamDividend:function(){},getPeople:function(t){this.peopleCount=t},getShowRed:function(t){this.showRed=t},getTeamPerformance:function(t){this.teamPerformance=t},initMailLanguage:function(){this.mailLanguage=this.fun.initMailLanguage(),this.fun.setWXTitle(this.fun.setMailLanguage("经销商管理中心",this.mailLanguage.team_dividend.team_agent_centre)),this.mailTeamDividendTitle=this.fun.setMailLanguage("经销商管理中心",this.mailLanguage.team_dividend.team_agent_centre),this.mailDividend=this.fun.setMailLanguage("提成",this.mailLanguage.team_dividend.dividend),this.dividend_amount=this.fun.setMailLanguage("佣金",this.mailLanguage.team_dividend.dividend_amount),this.leveling_label=this.fun.setMailLanguage("平级奖",this.mailLanguage.team_fjyx.flat_prize),this.extra_award_label=this.fun.setMailLanguage("额外奖励",this.mailLanguage.team_fjyx.extra_award)},isGratitude:function(t){var e=document.getElementsByClassName("mint-tab-item"),a=this;a.bonus_lable=a.fun.setMailLanguage("提成",a.mailLanguage.team_dividend.dividend),a.prize_label=a.fun.setMailLanguage("感恩奖",a.mailLanguage.team_dividend.award_gratitude),a.extra_label="额外分红",a.record_index=t.is_flat_prize,a.record_key=t.is_award_gratitude,a.record_extra=t.is_extra_award,1==t.is_flat_prize&&1==t.is_award_gratitude&&1==t.is_extra_award?(a.leveling_active=!0,a.prize_active=!0,a.extra_active=!0,e.length>0&&(e[0].style.width="25%",e[1].style.width="25%",e[2].style.width="25%",e[3].style.width="25%")):1==t.is_flat_prize&&1==t.is_award_gratitude&&0==t.is_extra_award?(a.leveling_active=!0,a.prize_active=!0,a.extra_active=!1,e.length>0&&(e[0].style.width="33.33%",e[1].style.width="33.33%",e[2].style.width="33.33%")):0==t.is_flat_prize&&1==t.is_award_gratitude&&1==t.is_extra_award?(a.extra_active=!0,a.prize_active=!0,a.leveling_active=!1,e.length>0&&(e[0].style.width="33.33%",e[1].style.width="33.33%",e[2].style.width="33.33%")):1==t.is_flat_prize&&0==t.is_award_gratitude&&1==t.is_extra_award?(a.extra_active=!0,a.leveling_active=!0,a.prize_active=!1,e.length>0&&(e[0].style.width="33.33%",e[1].style.width="33.33%",e[2].style.width="33.33%")):0==t.is_flat_prize&&1==t.is_award_gratitude&&0==t.is_extra_award?(a.leveling_active=!1,a.prize_active=!0,a.extra_active=!1,e.length>0&&(e[0].style.width="50%",e[1].style.width="50%")):1==t.is_flat_prize&&0==t.is_award_gratitude&&0==t.is_extra_award?(a.leveling_active=!0,a.prize_active=!1,a.extra_active=!1,e.length>0&&(e[0].style.width="50%",e[1].style.width="50%")):0==t.is_flat_prize&&0==t.is_award_gratitude&&1==t.is_extra_award?(a.leveling_active=!1,a.prize_active=!1,a.extra_active=!0,e.length>0&&(e[0].style.width="50%",e[1].style.width="50%")):0==t.is_flat_prize&&0==t.is_award_gratitude&&0==t.is_extra_award&&(a.leveling_active=!1,a.prize_active=!1,a.extra_active=!1,e.length>0&&(e[0].style.width="100%"))},initData:function(){this.display1="-1",this.display2="-1",this.is_team_buyer=0,this.is_team_order_details=0,this.dividend={},this.flat_prize={},this.award_gratitude={},this.extra_award={},this.is_activation_code="0",this.level_name="",this.dividend_ratio="",this.next_dividend_ratio="",this.showRed=0,this.ratioDatas=[],o="0",this.activeName="first",this.first_content=[],this.second_content=[],this.third_content=[],this.four_content=[],this.teamPerformance={},this.dividend_type="0",this.is_customer=!1,this.is_team_data=!1},initInfo:function(t){this.is_activation_code=t.is_activation_code,this.level_name=t.level_name,this.dividend_ratio=t.dividend_ratio,this.next_dividend_ratio=t.next_dividend_ratio},infoData:function(t){var e=this,a={dividend_type:t};$http.get("plugin.team-fjyx.api.team-dividend.get-dividend-statistic",a,"").then((function(a){if(e.ratioDatas=[],1==a.result){var i={};i.money=a.data.today,i.data="今日",i.name="data",e.ratioDatas.push(i);var s={};s.money=a.data.yesterday,s.data="昨日",s.name="data",e.ratioDatas.push(s);var d={};d.money=a.data.this_week,d.data="本周",d.name="data",e.ratioDatas.push(d);var r={};r.money=a.data.this_month,r.data="本月累计"+e.tab_name,r.name="mounth",e.ratioDatas.push(r),0==t?(e.dividend={unliquidated:a.data.unliquidated,liquidated:a.data.liquidated},e.bonus_save=[],e.bonus_save.push(i),e.bonus_save.push(s),e.bonus_save.push(d),e.bonus_save.push(r)):1==t?(e.flat_prize={unliquidated:a.data.unliquidated,liquidated:a.data.liquidated},e.leveling_save=[],e.leveling_save.push(i),e.leveling_save.push(s),e.leveling_save.push(d),e.leveling_save.push(r)):2==t?(e.award_gratitude={unliquidated:a.data.unliquidated,liquidated:a.data.liquidated},e.prize_save=[],e.prize_save.push(i),e.prize_save.push(s),e.prize_save.push(d),e.prize_save.push(r)):3==t&&(e.extra_award={unliquidated:a.data.unliquidated,liquidated:a.data.liquidated},e.extra_save=[],e.extra_save.push(i),e.extra_save.push(s),e.extra_save.push(d),e.extra_save.push(r))}else Object(n["a"])(a.msg)}),(function(t){Object(n["a"])(t.msg)}))},getData:function(){var t=this,e={dividend_type:this.dividend_type,page:this.page};$http.get("plugin.team-fjyx.api.team-dividend.get-dividend-list",e,"获取中").then((function(e){if(1==e.result){switch(t.dividend_type){case"0":t.first_content=e.data.data;break;case"1":t.second_content=e.data.data;break;case"2":t.third_content=e.data.data;break;case"3":t.four_content=e.data.data;break;default:break}t.total_page=e.data.lastpage,t.is_team_buyer=parseInt(e.data.is_team_buyer),t.is_team_order_details=parseInt(e.data.is_team_order_details)}else Object(n["a"])(e.msg)}),(function(t){Object(n["a"])(t.msg)}))},setDataByTabIndex:function(){this.initPageData(),"0"==o?(this.dividend_type="0",this.getData(),this.tab_name=this.fun.setMailLanguage("提成",this.mailLanguage.team_dividend.dividend),this.infoData("0")):"1"==o?(this.dividend_type="1",this.getData(),this.tab_name=this.fun.setMailLanguage("平级奖",this.mailLanguage.team_dividend.flat_prize),this.infoData("1")):"2"==o?(this.dividend_type="2",this.getData(),this.tab_name=this.fun.setMailLanguage("感恩奖",this.mailLanguage.team_dividend.award_gratitude),this.infoData("2")):"3"==o&&(this.dividend_type="3",this.getData(),this.tab_name="额外分红",this.infoData("3"))},handleClick:function(t,e){o!=t&&(o=t,this.display1="-1",this.display2="-1",this.setDataByTabIndex())},initPageData:function(){this.loading=!1,this.allLoaded=!1,this.goload=!0,this.isLoadMore=!0,this.page=1,this.total_page=0},getMoreData:function(){var t=this;if(this.page!=this.total_page){if(this.page>=this.total_page)return this.loading=!0,void(this.allLoaded=!0);this.page=this.page+1;var e={dividend_type:this.dividend_type,page:this.page};$http.get("plugin.team-fjyx.api.team-dividend.get-dividend-list",e,"加载中...").then((function(e){if(1!=e.result)return t.page=t.page-1,t.loading=!0,t.allLoaded=!0,void(t.isLoadMore=!1);switch(t.loading=!1,t.allLoaded=!1,t.dividend_type){case"0":t.first_content=t.first_content.concat(e.data.data);break;case"1":t.second_content=t.second_content.concat(e.data.data);break;case"2":t.third_content=t.third_content.concat(e.data.data);break;case"3":t.four_content=t.four_content.concat(e.data.data);break;default:break}})).catch((function(t){}))}},getBasic:function(){var t=this;$http.get("plugin.team-fjyx.api.index",{},"获取中").then((function(e){1===e.result?(e.data.is_not_agent&&t.$dialog.alert({message:"你不是".concat(e.msg?e.msg:"经销商")}),t.is_customer=e.data.is_customer,t.is_team_data=e.data.is_team_data,t.getPeople(e.data.child_count),t.getShowRed(e.data.redpack_enable),t.initInfo({level_name:e.data.level_name,is_activation_code:e.data.is_activation_code,dividend_ratio:e.data.dividend_ratio,next_dividend_ratio:e.data.next_dividend_ratio}),t.getTeamPerformance({team_goods_total:parseFloat(e.data.team_goods_total),team_order_price:parseFloat(e.data.team_order_price)}),t.isGratitude({is_award_gratitude:e.data.is_award_gratitude,is_extra_award:e.data.is_extra_award,is_flat_prize:e.data.is_flat_prize})):Object(n["a"])(e.msg)}))},openDetail:function(t,e){if(this.display1==t&&this.display2==e)return this.display1="-1",void(this.display2="-1");this.display1=t,this.display2=e}},components:{cTitle:d["a"]}},_=l,c=_,m=(a("c96c"),a("2877")),v=Object(m["a"])(c,i,s,!1,null,"53026145",null);e["default"]=v.exports},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return n}));var i=document.documentElement,s=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:s&&(t=s.scrollTop),t},getClientHeight:function(){var t=0;return t=s.clientHeight&&i.clientHeight?Math.min(s.clientHeight,i.clientHeight):Math.max(s.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(s.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(){}}}},bcd33:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"*[data-v-53026145]{-webkit-box-sizing:border-box;box-sizing:border-box}.money[data-v-53026145]{margin-top:.5rem}.gongge[data-v-53026145]{width:100%;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;background:#fff;-webkit-column-count:3;-moz-column-count:3;column-count:3;padding-bottom:.625rem;padding-top:.625rem}.gongge[data-v-53026145],.gongge li[data-v-53026145]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.gongge li[data-v-53026145]{width:50%;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;text-align:center;font-size:12px}.gongge li i[data-v-53026145]{-webkit-box-flex:0;-webkit-flex:0 0 1.75rem;-ms-flex:0 0 1.75rem;flex:0 0 1.75rem;font-size:26px;color:#999;display:inline-block;margin-bottom:.375rem;width:100%}.gongge li span[data-v-53026145]{-webkit-box-flex:0;-webkit-flex:0 0 1.4rem;-ms-flex:0 0 1.4rem;flex:0 0 1.4rem;color:#333;font-size:12px}.gongge li b[data-v-53026145]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f15353;font-size:16px}.today_bonus[data-v-53026145]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-top:10px;width:100%;height:5.125rem;background:#fff;padding:1rem 0;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;border-bottom:.0625rem solid #e2e2e2}.today_bonus li.line[data-v-53026145]{position:absolute;width:.0625rem;height:3.25rem;background:#ddd;top:1rem;right:34%}.today_bonus li.line .careat[data-v-53026145]{width:.375rem;height:.375rem;border:.0625rem solid #ebebeb;border-left:0;border-bottom:0;-webkit-transform:rotate(45deg);transform:rotate(45deg);background:#fff;position:absolute;top:1.4375rem;right:-.1875rem}.today_bonus li[data-v-53026145]{text-align:center;float:left}.today_bonus li span[data-v-53026145]{font-size:17px;line-height:1.625rem;display:inline-block;margin-bottom:.625rem}.today_bonus li b[data-v-53026145]{font-size:11px;color:#333}#teamAgentCenter .share_holder .header_box[data-v-53026145]{padding:1rem .75rem;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;font-size:14px}#teamAgentCenter .share_holder .header_box .left[data-v-53026145]{line-height:3rem}#teamAgentCenter .share_holder .header_box .right[data-v-53026145]{text-align:right}#teamAgentCenter .share_holder .header_box .right li[data-v-53026145]{line-height:1.5rem}#teamAgentCenter .share_holder .today_bonus[data-v-53026145]{margin-top:.625rem;width:100%;height:5.125rem;background:#fff;padding:1rem 0;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;border-bottom:.0625rem solid #e2e2e2}#teamAgentCenter .share_holder .today_bonus li.line[data-v-53026145]{position:absolute;width:.0625rem;height:3.25rem;background:#ddd;top:1rem;right:34%}#teamAgentCenter .share_holder .today_bonus li.line .careat[data-v-53026145]{width:.375rem;height:.375rem;border:.0625rem solid #ebebeb;border-left:0;border-bottom:0;-webkit-transform:rotate(45deg);transform:rotate(45deg);background:#fff;position:absolute;top:1.4375rem;right:-.1875rem}#teamAgentCenter .share_holder .today_bonus li[data-v-53026145]{text-align:center;float:left}#teamAgentCenter .share_holder .today_bonus li span[data-v-53026145]{font-size:17px;line-height:1.625rem;display:inline-block;margin-bottom:.625rem}#teamAgentCenter .share_holder .today_bonus li b[data-v-53026145]{font-size:11px;color:#333}#teamAgentCenter .share_holder .today_bonus li.data[data-v-53026145]{width:22%}#teamAgentCenter .share_holder .today_bonus li.data span[data-v-53026145]{color:#ffa800}#teamAgentCenter .share_holder .today_bonus li[data-v-53026145]:first-child,#teamAgentCenter .share_holder .today_bonus li[data-v-53026145]:nth-child(2){border-right:.0625rem solid #e2e2e2}#teamAgentCenter .share_holder .today_bonus li.mounth[data-v-53026145]{width:34%}#teamAgentCenter .share_holder .today_bonus li.mounth span[data-v-53026145]{color:#fc6a70}#teamAgentCenter .code_box[data-v-53026145]{background:#fff;padding-left:.875rem}#teamAgentCenter .code[data-v-53026145]{background:#fff;padding-right:.875rem;font-size:15px;line-height:2.75rem;color:#333;text-align:left;-webkit-box-sizing:border-box;box-sizing:border-box;border-bottom:.0625rem solid #ebebeb}#teamAgentCenter .code i[data-v-53026145]{float:right;line-height:2.75rem;display:inline-block;font-size:24px;color:#c9c9c9;text-align:center;background-size:1.25rem}#teamAgentCenter .content[data-v-53026145]{margin-top:10px}#teamAgentCenter .content .ratioNav[data-v-53026145]{padding:0;margin:0;height:2.375rem;width:100%;background:#fff;border-bottom:.0625rem solid #cdcdcd;border-top:.0625rem solid #cdcdcd}#teamAgentCenter .content .ratioNav li[data-v-53026145]{float:left;width:33%;text-align:center;line-height:2.1875rem;font-size:14px;color:#666}#teamAgentCenter .content .rationList[data-v-53026145]{padding:0;margin:0}#teamAgentCenter .content .rationList li span.month[data-v-53026145]{display:block;text-align:left;line-height:2.25rem;padding:0 .75rem;background:#f0f0f0;font-size:16px}#teamAgentCenter .content .rationList li .info[data-v-53026145]{border-bottom:.0625rem solid #eee;overflow:hidden;padding:.625rem .75rem;background:#fff;font-size:14px}#teamAgentCenter .content .rationList li .info .info-div[data-v-53026145]{width:100%;float:left}#teamAgentCenter .content .rationList li .info .left[data-v-53026145]{width:70%;float:left;text-align:left;-webkit-box-sizing:border-box;box-sizing:border-box}#teamAgentCenter .content .rationList li .info .left .time[data-v-53026145]{font-size:12px;color:#8c8c8c}#teamAgentCenter .content .rationList li .info .left li[data-v-53026145]{line-height:1.5rem}#teamAgentCenter .content .rationList li .info .left span[data-v-53026145]{font-size:14px;font-weight:400;color:#333}#teamAgentCenter .content .rationList li .info .left p[data-v-53026145]{font-size:12px;color:#999}#teamAgentCenter .content .rationList li .info .left span.created[data-v-53026145]{font-size:12px}#teamAgentCenter .content .rationList li .info .left h4[data-v-53026145]{font-weight:400}#teamAgentCenter .content .rationList li .info .left h4 b[data-v-53026145]{font-weight:400;color:#f15353}#teamAgentCenter .content .rationList li .info .right[data-v-53026145]{float:left;width:30%;color:#20b86a;text-align:right}#teamAgentCenter .content .rationList li .info .right .state[data-v-53026145]{font-size:12px;color:#8c8c8c}#teamAgentCenter .content .rationList li .info .right li[data-v-53026145]{line-height:1.5rem}#teamAgentCenter .content .rationList li .info .right p[data-v-53026145]{margin:0;padding:0;font-size:12px;color:#888}#teamAgentCenter .content .rationList li .info .right b[data-v-53026145]{font-weight:400}#teamAgentCenter .content .rationList li .info .right b.created[data-v-53026145]{line-height:2.1875rem}.order_detail.opens[data-v-53026145]{display:block}.order_detail[data-v-53026145]{display:none;overflow:hidden;width:100%}.order_detail .team_list[data-v-53026145]{background-color:#fff;padding:.625rem 0;overflow:hidden;border-top:.0625rem solid #e2e2e2}.order_detail .team_list .img[data-v-53026145]{width:14%;float:left;text-align:left;height:0;padding-bottom:14%;position:relative}.order_detail .team_list .img img[data-v-53026145]{width:100%;height:100%;position:absolute}.order_detail .team_list .info1[data-v-53026145]{height:2.5rem;width:80%;float:left;font-size:14px;color:#222;line-height:1.429rem;text-align:left;padding:0 .625rem}.order_detail .team_list .info1 span[data-v-53026145]{color:#666}#distribution-goods[data-v-53026145]{background-color:#fff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-webkit-align-items:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap;padding-top:10px;border-top:.0625rem solid #e2e2e2;margin-bottom:.375rem}#distribution-goods .img[data-v-53026145]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}#distribution-goods .img img[data-v-53026145]{width:100%}#distribution-goods .inner[data-v-53026145]{-webkit-box-flex:5;-webkit-flex:5;-ms-flex:5;flex:5;padding:0 .625rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start}#distribution-goods .name[data-v-53026145]{-webkit-box-flex:5;-webkit-flex:5;-ms-flex:5;flex:5;text-align:justify}#distribution-goods .price[data-v-53026145]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;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-align:end;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end}#distribution-goods .price b[data-v-53026145]{-webkit-box-flex:3;-webkit-flex:3;-ms-flex:3;flex:3;text-align:right;color:#666;font-size:12px;font-weight:400}#distribution-goods .price .evaluate-yet[data-v-53026145]{margin:0;color:#888;float:right;line-height:1.6rem}",""]),t.exports=e},c96c:function(t,e,a){"use strict";a("5a1d")}}]);