(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/share/team/team"],{"029b":function(t,e,n){"use strict";var o=n("de35"),a=n.n(o);a.a},"361d":function(t,e,n){"use strict";n.r(e);var o=n("ffcf"),a=n.n(o);for(var s in o)"default"!==s&&function(t){n.d(e,t,(function(){return o[t]}))}(s);e["default"]=a.a},"9e1a":function(t,e,n){"use strict";(function(t){n("2d0a");o(n("66fd"));var e=o(n("ccf7"));function o(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},ccf7:function(t,e,n){"use strict";n.r(e);var o=n("e450"),a=n("361d");for(var s in a)"default"!==s&&function(t){n.d(e,t,(function(){return a[t]}))}(s);n("029b");var i,r=n("f0c5"),c=Object(r["a"])(a["default"],o["b"],o["c"],!1,null,"0ecce33a",null,!1,o["a"],i);e["default"]=c.exports},de35:function(t,e,n){},e450:function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return o}));var a=function(){var t=this,e=t.$createElement;t._self._c},s=[]},ffcf:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n("2f62");function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var r=function(){n.e("components/basic-component/app-tab-nav/app-tab-nav").then(function(){return resolve(n("9b24"))}.bind(null,n)).catch(n.oe)},c={data:function(){return{theme:{color:"#ff4544"},tabList:[{id:1,name:"一级分销"}],loading:null,list:[],activeTab:1,id:null,page:2}},components:{"app-tab-nav":r},computed:s({},(0,o.mapState)({mall:function(t){return t.mallConfig.mall},custom_setting:function(t){return t.mallConfig.share_setting_custom},share_setting:function(t){return t.mallConfig.share_setting}})),methods:{open:function(t){this.id=t},tabStatus:function(e){this.list=[],this.page=2,this.activeTab=e.currentTarget.dataset.id,t.showLoading({title:"加载中..."}),this.getList()},getList:function(){var e=this;e.$request({url:e.$api.share.team,data:{status:e.activeTab}}).then((function(n){if(e.$hideLoading(),t.hideLoading(),0==n.code){if(e.list=n.data.list,e.first_count=n.data.first_count,e.second_count=n.data.second_count,e.third_count=n.data.third_count,e.custom_setting.words.one_share.name?(e.custom_setting.words.one_share.name.length>7&&(e.custom_setting.words.one_share.name=e.custom_setting.words.one_share.name.substring(0,5)+"..."),e.tabList[0].name=e.custom_setting.words.one_share.name+"("+e.first_count+")"):e.tabList[0].name="一级分销("+e.first_count+")",e.second_count>0){var o={id:2};if(e.custom_setting.words.second_share.name.length>7&&(e.custom_setting.words.second_share.name=e.custom_setting.words.second_share.name.substring(0,5)+"..."),o.name=e.custom_setting.words.second_share.name?e.custom_setting.words.second_share.name+"("+e.second_count+")":"二级分销("+e.second_count+")",e.tabList[1]=o,e.third_count>0){e.custom_setting.words.three_share.name.length>7&&(e.custom_setting.words.three_share.name=e.custom_setting.words.three_share.name.substring(0,5)+"...");var a={id:3};a.name=e.custom_setting.words.three_share.name?e.custom_setting.words.three_share.name+"("+e.third_count+")":"三级分销("+e.third_count+")",e.tabList[2]=a}}}else t.showToast({title:n.msg,icon:"none",duration:1e3})})).catch((function(n){e.$hideLoading(),t.hideLoading(),e.$event.on(e.$const.EVENT_USER_LOGIN).then((function(){e.getList()}))}))},getMore:function(){var e=this;t.showLoading({title:"加载中..."}),e.$request({url:e.$api.share.team,data:{status:e.activeTab,page:e.page}}).then((function(n){e.$hideLoading(),t.hideLoading(),0==n.code?n.data.list.length>0&&(e.loading=null,e.list=e.list.concat(n.data.list),e.page++):t.showToast({title:n.msg,icon:"none",duration:1e3})})).catch((function(n){e.$hideLoading(),t.hideLoading()}))},toGoods:function(e){t.navigateTo({url:"/pages/goods/goods?id="+e})}},onLoad:function(e){this.$commonLoad.onload(e);var n=this;t.setNavigationBarTitle({title:n.custom_setting.menus.team.name}),n.$showLoading({type:"global",text:"加载中..."}),n.getList()},onReachBottom:function(){this.getMore()}};e.default=c}).call(this,n("543d")["default"])}},[["9e1a","common/runtime","common/vendor"]]]);