require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/user_distribution_level/index"],{"1c3d":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.$t("一级分佣比例")),i=t.$t("二级分佣比例"),o=t.__map(t.distributionLevel,(function(e,n){var i=t.__get_orig(e),o=t.$t(e.name);return{$orig:i,m0:o}})),l=t.$t("快速升级技巧"),a=t.task.length,r=t.__map(t.task,(function(e,n){var i=t.__get_orig(e),o=t.$t(e.name),l=e.finish?t.$t("已完成"):null,a=e.finish?null:t.$t("未完成"),r=Math.floor(e.new_number/e.number>1?100:e.new_number/e.number*100),s=e.finish?null:t.$t(e.task_type_title);return{$orig:i,m4:o,m5:l,m6:a,g1:r,m7:s}})),s=t.hostProduct.length;t._isMounted||(t.e0=function(e){t.growthValue=!0}),t.$mp.data=Object.assign({},{$root:{m1:n,m2:i,l0:o,m3:l,g0:a,l1:r,g2:s}})},o=[]},"481d":function(t,e,n){"use strict";(function(t,e){var i=n("4ea4");n("4789");i(n("66fd"));var o=i(n("d4d9"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(o.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},4930:function(t,e,n){"use strict";n.r(e);var i=n("5557"),o=n.n(i);for(var l in i)["default"].indexOf(l)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(l);e["default"]=o.a},5557:function(t,e,n){"use strict";(function(t){var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n("d1ea"),l=n("2a39"),a=n("86eb"),r=n("26cb"),s=i(n("19b6")),u={components:{recommend:function(){Promise.all([n.e("common/vendor"),n.e("components/recommend/index")]).then(function(){return resolve(n("7992"))}.bind(null,n)).catch(n.oe)}},mixins:[s.default],data:function(){return{reach_count:0,distributionLevel:[],swiperIndex:0,growthValue:!0,task:[],illustrate:"",level_id:0,hostProduct:[],grade:0,hotScroll:!1,hotPage:1,hotLimit:10,level_title:"",level_discount:"",levelInfo:{},userInfo:{},taskInfo:{},taskNum:0}},computed:(0,r.mapGetters)(["isLogin"]),watch:{distributionLevel:function(){var t=this;t.distributionLevel.length>0&&t.distributionLevel.forEach((function(e,n){!1===e.is_clear&&(t.activeIndex=n,t.grade=e.grade)}))},isLogin:{handler:function(t,e){t&&this.get_host_product()},deep:!0}},onLoad:function(){this.isLogin?this.agentLevelList():(0,a.toLogin)(),this.get_host_product()},onPageScroll:function(e){t.$emit("scroll")},methods:{agentLevelList:function(){var t=this;(0,o.agentLevelList)().then((function(e){var n=e.data,i=n.level_info,o=n.level_list,l=n.task,a=n.user;t.levelInfo=i,t.distributionLevel=o,t.userInfo=a,t.taskInfo=l,t.levelInfo.exp=parseFloat(t.levelInfo.exp),t.levelInfo.rate=Math.floor(t.levelInfo.exp/t.levelInfo.exp_num*100),t.levelInfo.rate>100&&(t.levelInfo.rate=100);var r=o.findIndex((function(t,e){return t.id===a.agent_level}));-1!==r&&(t.swiperIndex=-1===r?0:r),t.level_id=t.distributionLevel[-1===r?0:r].id||0,t.getTask()}))},get_host_product:function(){var t=this;t.hotScroll||(0,l.getProductHot)(t.hotPage,t.hotLimit).then((function(e){t.hotPage++,t.hotScroll=e.data.length