(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_distribution_level-index"],{"0b87":function(t,e,i){"use strict";i.r(e);var n=i("ebf7"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"0fba":function(t,e,i){"use strict";var n=i("1e8a"),a=i.n(n);a.a},"10aa":function(t,e,i){"use strict";var n=i("312f"),a=i.n(n);a.a},"1e8a":function(t,e,i){var n=i("bead");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("7a775c27",n,!0,{sourceMap:!1,shadowMode:!1})},"2a39":function(t,e,i){"use strict";i("7a82");var n=i("ee27").default;Object.defineProperty(e,"__esModule",{value:!0}),e.collectAdd=function(t,e){return a.default.post("collect/add",{id:t,product:void 0===e?"product":e})},e.collectAll=function(t,e){return a.default.post("collect/all",{id:t,category:void 0===e?"product":e})},e.collectDel=function(t,e){return a.default.post("collect/del",{id:t,category:void 0===e?"product":e})},e.create=function(t){return a.default.post("agent/apply/".concat(t.id),t)},e.deleteVisitList=function(t){return a.default.delete("user/visit",t)},e.getAgentAgreement=function(t){return a.default.get("agent/get_agent_agreement",{},{noAuth:!0})},e.getAttr=function(t,e){return a.default.get("v2/get_attr/"+t+"/"+e)},e.getCategoryList=function(){return a.default.get("category",{},{noAuth:!0})},e.getCodeApi=function(){return a.default.get("verify_code",{},{noAuth:!0})},e.getCollectUserList=function(t){return a.default.get("collect/user",t)},e.getGoodsDetails=function(){return a.default.get("agent/apply/info",{},{noAuth:!0})},e.getGroomList=function(t,e){return a.default.get("groom/list/"+t,e,{noAuth:!0})},e.getHomeProducts=function(t){return a.default.get("home/products",t,{noAuth:!0})},e.getPresellProductDetail=function(t){return a.default.get("advance/detail/"+t)},e.getProductCode=function(t){return a.default.get("product/code/"+t,{},{noAuth:!0})},e.getProductDetail=function(t){return a.default.get("product/detail/"+t,{},{noAuth:!0})},e.getProductHot=function(t,e){return a.default.get("product/hot",{page:void 0===t?1:t,limit:void 0===e?4:e},{noAuth:!0})},e.getProductslist=function(t){return a.default.get("products",t,{noAuth:!0})},e.getReplyConfig=function(t){return a.default.get("reply/config/"+t)},e.getReplyList=function(t,e){return a.default.get("reply/list/"+t,e)},e.getSearchKeyword=function(){return a.default.get("search/keyword",{},{noAuth:!0})},e.getVisitList=function(t){return a.default.get("user/visit_list",t)},e.postCartAdd=function(t){return a.default.post("cart/add",t)},e.postCartNum=function(t){return a.default.post("v2/set_cart_num",t)},e.registerVerify=function(t){return a.default.post("register/verify",t,{noAuth:!0})},e.storeDiscountsList=function(t){return a.default.get("store_discounts/list/"+t,{},{noAuth:!0})},e.storeListApi=function(t){return a.default.get("store_list",t)};var a=n(i("fb81"))},"312f":function(t,e,i){var n=i("de4e");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("ed9ca9b6",n,!0,{sourceMap:!1,shadowMode:!1})},4930:function(t,e,i){"use strict";i.r(e);var n=i("527e"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"527e":function(t,e,i){"use strict";i("7a82");var n=i("ee27").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("d3b7"),i("159b"),i("acd8"),i("c740"),i("99af");var a=i("d1ea"),o=i("2a39"),s=i("86eb"),r=i("26cb"),c=n(i("7992")),l=n(i("19b6")),d={components:{recommend:c.default},mixins:[l.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,i){!1===e.is_clear&&(t.activeIndex=i,t.grade=e.grade)}))},isLogin:{handler:function(t,e){t&&this.get_host_product()},deep:!0}},onLoad:function(){this.isLogin?this.agentLevelList():(0,s.toLogin)(),this.get_host_product()},onPageScroll:function(t){uni.$emit("scroll")},methods:{agentLevelList:function(){var t=this;(0,a.agentLevelList)().then((function(e){var i=e.data,n=i.level_info,a=i.level_list,o=i.task,s=i.user;t.levelInfo=n,t.distributionLevel=a,t.userInfo=s,t.taskInfo=o,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=a.findIndex((function(t,e){return t.id===s.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,o.getProductHot)(t.hotPage,t.hotLimit).then((function(e){t.hotPage++,t.hotScroll=e.data.length(t.levelInfo.grade||0)}},[t._v(t._s(t.$t(e.name)))])],1)],1),e.grade>(t.levelInfo.grade||0)?n("v-uni-view",{staticClass:"state"},[n("v-uni-image",{staticClass:"lock",attrs:{src:i("c337"),mode:""}})],1):t._e()],1),[n("v-uni-view",{staticClass:"level-grow-wrap"},[n("v-uni-view",{staticClass:"level-info",class:{"lock-sty":e.grade>(t.levelInfo.grade||0)}},[n("v-uni-view",{staticClass:"level-info-title"},[t._v(t._s(t.$t("一级分佣比例")))]),n("v-uni-view",{staticClass:"num"},[t._v(t._s(e.one_brokerage_percent)),n("v-uni-text",{staticClass:"percent"},[t._v("%")])],1)],1),n("v-uni-view",{staticClass:"level-info",class:{"lock-sty":e.grade>(t.levelInfo.grade||0)}},[n("v-uni-view",{staticClass:"level-info-title"},[t._v(t._s(t.$t("二级分佣比例")))]),n("v-uni-view",{staticClass:"num"},[t._v(t._s(e.two_brokerage_percent)),n("v-uni-text",{staticClass:"percent"},[t._v("%")])],1)],1)],1)]],2)],1)]}))],2)],1),n("v-uni-view",{staticClass:"skill-section"},[n("v-uni-view",{staticClass:"section-hd acea-row row-between-wrapper"},[n("v-uni-view",{staticClass:"title"},[n("v-uni-view",{staticClass:"line-left"}),n("v-uni-text",[t._v(t._s(t.$t("快速升级技巧")))])],1),n("v-uni-view",{staticClass:"task"},[n("v-uni-text",{staticClass:"task-num"},[t._v(t._s(t.taskNum))]),n("v-uni-text",[t._v("/"+t._s(t.task.length))])],1)],1),n("v-uni-view",{staticClass:"section-bd acea-row"},t._l(t.task,(function(e,i){return n("v-uni-view",{key:e.id,staticClass:"item acea-row row-middle"},[n("v-uni-view",{staticClass:"text"},[n("v-uni-view",{staticClass:"title"},[n("v-uni-view",{staticClass:"name line2"},[t._v(t._s(t.$t(e.name))),n("v-uni-text",{staticClass:"iconfont icon-wenti",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.opHelp(i)}}})],1),n("v-uni-text",{staticClass:"mark"},[t._v(t._s(e.finish?t.$t("已完成"):t.$t("未完成")))])],1),n("v-uni-view",{staticClass:"process"},[n("v-uni-view",{staticClass:"fill",style:{width:Math.floor(e.new_number/e.number>1?100:e.new_number/e.number*100)+"%"}})],1),n("v-uni-view",{staticClass:"info-box"},[n("v-uni-view",{staticClass:"info"},[t._v(t._s(e.finish?"":t.$t(e.task_type_title)))]),n("v-uni-view",{staticClass:"link",attrs:{"hover-class":"none"}},[n("v-uni-text",{staticClass:"new-number"},[t._v(t._s(e.new_number))]),t._v("/"+t._s(e.number))],1)],1)],1)],1)})),1)],1),t.hostProduct.length?n("recommend",{attrs:{hostProduct:t.hostProduct}}):t._e(),n("v-uni-view",{staticClass:"growthValue",class:0==t.growthValue?"on":""},[n("v-uni-text",{staticClass:"iconfont icon-guanbi3",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.growthValue=!0}}}),n("v-uni-view",{staticClass:"conter"},[t._v(t._s(t.illustrate))])],1),n("v-uni-view",{staticClass:"mask",attrs:{hidden:t.growthValue},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.growthValueClose.apply(void 0,arguments)}}})],1)],1)},a=[]}}]);