<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-64e1de01"],{2742:function(t,a,e){"use strict";e.r(a);var n=(e("456d"),e("ac6a"),e("be94")),o=e("2f62"),r=e("9ca8"),_=(e("ef97"),e("007d"),e("627c"),{name:"AgencyRebate",components:{vChart:r.a},data:function(){return{orgOptions:{},loading:0,bonusData:{},ratio:{}}},computed:Object(n.a)({},Object(o.c)("user",["userInfo"]),Object(o.c)("site",["unitObj"])),methods:Object(n.a)({},Object(o.b)("user",["queryUserInfo"]),{getBonusByUserId:function(){var t=this;this.loading=1,this.$get("/v/userActivity/getBonusByUserId",{userId:this.userInfo.userId}).then(function(a){t.bonusData=a}).finally(function(){t.loading=0})},getBonusTrendOfSevenDay:function(){var t=this;this.$get("/v/userActivity/getBonusTrendOfSevenDay",{userId:this.userInfo.userId}).then(function(a){var e=[],n=[];a&amp;&amp;Object.keys(a).forEach(function(t,o){e[o]=t,n[o]=(a[t]/100).toFixed(2)}),t.graph(e,n)})},getSettingByUserId:function(){var t=this;this.$get("/v/userActivity/getSettingByUserId",{userId:this.userInfo.userId}).then(function(a){t.ratio=a})},receiveBonus:function(){var t=this;this.$post("/v/userActivity/receiveBonus",{userId:this.userInfo.userId,platform:100}).then(function(a){t.$message.success("领取成功！"),t.getBonusByUserId()}).catch(function(a){t.$message({message:a&amp;&amp;a.message,type:"error"})})},graph:function(t,a){var e=this;this.orgOptions={title:{left:"center",top:"bottom",text:"近7天佣金趋势(日期/金额)",textStyle:{fontWeight:"normal",color:"#666666",fontSize:16}},tooltip:{trigger:"item",formatter:function(t){return e.unitObj.symbal+t.value},axisPointer:{animation:!1},backgroundColor:"#ffffff",borderWidth:1,borderColor:"#F2F2F2",textStyle:{color:"#FAAB2C"}},xAxis:{type:"category",data:t},yAxis:{type:"value",splitLine:{lineStyle:{type:"dashed"}},axisLabel:{formatter:function(t){return Math.abs(t)&gt;1e4?t/1e4+"(万)":Math.abs(t)&gt;1e8?t/1e8+"(亿)":t}}},series:[{data:a,type:"line",areaStyle:{color:"#E9FCFE"},smooth:!0,lineStyle:{color:"#5E9BFF"}}]}}}),mounted:function(){var t=this;this.queryUserInfo().then(function(){t.graph(),t.getBonusByUserId(),t.getBonusTrendOfSevenDay(),t.getSettingByUserId()})}}),s=(e("577e"),e("2877")),i=Object(s.a)(_,function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"agencyRebate"},[e("div",{staticClass:"ar__total_data"},[e("div",{staticClass:"ar__total_data__first clearfix"},[e("div",{staticClass:"fl ar__total_data__left"},[e("span",{staticClass:"ar__total_data__title"},[t._v("可领取金额")]),e("br"),e("span",{staticClass:"red"},[t._v(t._s(((t.bonusData.unreceivedBonus||0)/100).toFixed(2)))]),e("span",{staticClass:"ar__get_rebate",class:{ar__get_rebate_forbidden:+t.bonusData.unreceivedBonus&lt;=0},on:{click:function(a){+t.bonusData.unreceivedBonus&gt;0&amp;&amp;t.receiveBonus()}}},[t._v("领取")])]),e("div",{staticClass:"fl ar__total_data__right"},[e("table",[t._m(0),e("tr",[e("td",{staticClass:"ar__table-money"},[t._v(t._s(((t.bonusData.totalBonus||0)/100).toFixed(2)))]),e("td",{staticClass:"ar__table-money"},[t._v(t._s(((t.bonusData.weekBonus||0)/100).toFixed(2)))])])])])]),e("div",{staticClass:"ar__total_data__second"},[e("table",[e("tr",[e("td",[e("span",[t._v("今日团队佣金")]),e("span",{staticClass:"blue ar__data-num"},[t._v(t._s(((t.bonusData.toDayBonus||0)/100).toFixed(2)))])]),e("td",[e("span",[t._v("今日自营佣金")]),e("span",{staticClass:"ar__data-num"},[t._v(t._s(((t.bonusData.toDaySubSelfBonus||0)/100).toFixed(2)))])]),e("td",[e("span",[t._v("今日代理佣金")]),e("span",{staticClass:"ar__data-num"},[t._v(t._s(((t.bonusData.toDayProxyBonus||0)/100).toFixed(2)))])])])])]),e("p",{staticClass:"ar__total_data__hint"},[t._v("\n      您现在的业绩所达到的返佣比例为"+t._s(t.ratio.userPer)+"，\n      "),t.ratio.userNextPer?e("span",[t._v("当总业绩达到"+t._s(t.ratio.userNextAmount)+"时达到下一返佣等级"+t._s(t.ratio.userNextPer))]):e("span",[t._v("您已经达到最高返佣等级。")])])]),e("vChart",{ref:"chart1",staticStyle:{width:"100%",margin:"0 auto 80px"},attrs:{options:t.orgOptions,"auto-resize":!0}})],1)},[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("tr",[e("td",{staticClass:"ar__table-title"},[t._v("总计获得佣金")]),e("td",{staticClass:"ar__table-title"},[t._v("本周获得佣金")])])}],!1,null,null,null);i.options.__file="AgencyRebate.vue",a.default=i.exports},"577e":function(t,a,e){"use strict";var n=e("ac53");e.n(n).a},a71f:function(t,a,e){(t.exports=e("2350")(!1)).push([t.i,"\n.agencyRebate .fl{float:left\n}\n.agencyRebate .fr{float:right\n}\n.agencyRebate .ar__total_data{margin:20px 20px 50px;padding:30px 10px 10px;border:1px solid #ddd;border-radius:4px;color:#666\n}\n.agencyRebate .ar__total_data .ar__total_data__first{-webkit-box-sizing:border-box;box-sizing:border-box;border-bottom:1px solid #ddd;padding-bottom:30px\n}\n.agencyRebate .ar__total_data .ar__total_data__second{-webkit-box-sizing:border-box;box-sizing:border-box;margin-bottom:10px;padding-top:10px\n}\n.agencyRebate .ar__total_data .ar__total_data__second table{margin:30px 0;width:100%\n}\n.agencyRebate .ar__total_data .ar__total_data__second table td{padding-left:20px\n}\n.agencyRebate .ar__total_data .ar__total_data__second table .ar__data-num{margin-left:16px;font-size:20px;font-weight:400\n}\n.agencyRebate .ar__total_data .ar__total_data__second table .blue{color:#2572ff\n}\n.agencyRebate .ar__total_data .ar__total_data__left{padding-left:20px;border-right:1px solid #ddd;width:36%;height:60px\n}\n.agencyRebate .ar__total_data .ar__total_data__left .ar__total_data__title{display:inline-block;margin-bottom:15px;font-size:20px;color:#333\n}\n.agencyRebate .ar__total_data .ar__total_data__left .red{font-size:26px\n}\n.agencyRebate .ar__total_data .ar__total_data__right{width:58%;margin-left:20px\n}\n.agencyRebate .ar__total_data .ar__total_data__right table{width:100%;text-align:center;line-height:30px\n}\n.agencyRebate .ar__total_data .ar__total_data__right .ar__table-title{font-size:16px\n}\n.agencyRebate .ar__total_data .ar__total_data__right .ar__table-money{font-size:20px;font-weight:400;color:#333\n}\n.agencyRebate .ar__total_data .ar__get_rebate{float:right;margin:-20px 30px 0 0;padding:3px 18px;display:inline-block;border-radius:4px;height:24px;line-height:24px;cursor:pointer;background:#ffbe21;color:#fff\n}\n.agencyRebate .ar__total_data .ar__get_rebate:active{background:#ffd571\n}\n.agencyRebate .ar__total_data .ar__get_rebate_forbidden{background:#ddd;cursor:not-allowed\n}\n.agencyRebate .ar__total_data .ar__get_rebate_forbidden:active{background:#ddd\n}\n.agencyRebate .ar__total_data .red{color:red\n}\n.agencyRebate .ar__total_data .ar__total_data__hint{padding-left:20px;line-height:20px;font-size:12px;color:#c74547\n}",""])},ac53:function(t,a,e){var n=e("a71f");"string"==typeof n&amp;&amp;(n=[[t.i,n,""]]),n.locals&amp;&amp;(t.exports=n.locals),(0,e("499e").default)("33b4a461",n,!0,{sourceMap:!1,shadowMode:!1})}}]);</pre></body></html>