1 |
- 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<t.hotLimit,t.hostProduct=t.hostProduct.concat(e.data)}))},swiperChange:function(t){var e=t.detail.current;this.swiperIndex=e,this.level_id=this.distributionLevel[e].id||0,this.level_title=this.distributionLevel[e].name||"",this.level_discount=this.distributionLevel[e].discount||"",this.getTask()},growthValueClose:function(){this.growthValue=!0},opHelp:function(t){this.growthValue=!1,this.illustrate=this.task[t].desc},getTask:function(){var t=this;t.taskNum=0,(0,o.agentLevelTaskList)(t.level_id).then((function(e){t.task=e.data;for(var n=0;n<t.task.length;n++)t.task[n].finish&&(t.taskNum+=1)}))}},onReachBottom:function(){this.hotScroll||this.get_host_product()}};e.default=u}).call(this,n("543d")["default"])},"634a":function(t,e,n){},"80cb":function(t,e,n){"use strict";var i=n("634a"),o=n.n(i);o.a},d4d9:function(t,e,n){"use strict";n.r(e);var i=n("1c3d"),o=n("4930");for(var l in o)["default"].indexOf(l)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(l);n("80cb");var a=n("f0c5"),r=Object(a["a"])(o["default"],i["b"],i["c"],!1,null,"6ff6671d",null,!1,i["a"],void 0);e["default"]=r.exports}},[["481d","common/runtime","common/vendor"]]]);
|