(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["user/page/extension"],{"0594":function(t,e,n){"use strict";n.r(e);var a=n("4ee8"),o=n.n(a);for(var r in a)"default"!==r&&function(t){n.d(e,t,(function(){return a[t]}))}(r);e["default"]=o.a},2239:function(t,e,n){"use strict";n.r(e);var a=n("ad32"),o=n("0594");for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);n("6360");var i,u=n("f0c5"),c=Object(u["a"])(o["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],i);e["default"]=c.exports},"4c3d":function(t,e,n){"use strict";(function(t){n("5935");a(n("66fd"));var e=a(n("2239"));function a(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=n,t(e.default)}).call(this,n("543d")["createPage"])},"4ee8":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(n("a34a")),o=n("2681");n("26cb");function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n,a,o,r,i){try{var u=t[r](i),c=u.value}catch(l){return void n(l)}u.done?e(c):Promise.resolve(c).then(a,o)}function u(t){return function(){var e=this,n=arguments;return new Promise((function(a,o){var r=t.apply(e,n);function u(t){i(r,a,o,u,c,"next",t)}function c(t){i(r,a,o,u,c,"throw",t)}u(void 0)}))}}var c=function(){n.e("components/uni-load-more/uni-load-more").then(function(){return resolve(n("20fd"))}.bind(null,n)).catch(n.oe)},l=function(){n.e("components/empty").then(function(){return resolve(n("de8d"))}.bind(null,n)).catch(n.oe)},d={components:{empty:l,uniLoadMore:c},onReady:function(){var e=this;t.createSelectorQuery().select(".content").fields({size:!0},(function(t){e.maxheight=t.height-Math.floor(t.width/750*470)-44})).exec()},data:function(){return{maxheight:"",tabCurrentIndex:0,navList:[{state:0,text:"一级推广",loadingType:"more",orderList:[],page:1,limit:10},{state:1,text:"二级推广",loadingType:"more",orderList:[],page:1,limit:10}],all:"",list:"",total:"",totalLevel:"",img:"http://kaifa.crmeb.net/uploads/attach/2019/08/20190807/723adbdd4e49a0f9394dfc700ab5dba3.png",userInfo:{}}},onLoad:function(t){},onShow:function(){this.loadData(),this.loadAll()},methods:{navto:function(e){t.navigateTo({url:e})},loadData:function(t){var e=this;return u(a.default.mark((function n(){var r,i,u;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(r=e.tabCurrentIndex,i=e.navList[r],u=i.state,"tabChange"!==t||!0!==i.loaded){n.next=5;break}return n.abrupt("return");case 5:if("loading"!==i.loadingType){n.next=7;break}return n.abrupt("return");case 7:if("noMore"!==i.loadingType){n.next=9;break}return n.abrupt("return");case 9:i.loadingType="loading",(0,o.getSpreadPeople)({page:i.page,limit:i.limit,keyword:"",grade:u}).then((function(t){var n=t.data;console.log(n),e.total=n.total,e.totalLevel=n.totalLevel,n.list.length>0&&(e.list=n.list,i.orderList=i.orderList.concat(n.list),i.page++),e.$nextTick((function(){i.limit!=n.list.length?i.loadingType="noMore":i.loadingType="more"})),e.$set(i,"loaded",!0)})).catch((function(t){console.log(t)}));case 11:case"end":return n.stop()}}),n)})))()},changeTab:function(t){this.tabCurrentIndex=t.target.current,this.loadData("tabChange")},tabClick:function(t){this.tabCurrentIndex=t},toBack:function(){t.switchTab({url:"/pages/user/user"})},loadAll:function(){var t=this;(0,o.getUserInfo)().then((function(e){t.userInfo=e.data,console.log(e,"6666666666666666666")}))}}};e.default=d}).call(this,n("543d")["default"])},6360:function(t,e,n){"use strict";var a=n("ae5f"),o=n.n(a);o.a},ad32:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return a}));var a={uniLoadMore:function(){return n.e("components/uni-load-more/uni-load-more").then(n.bind(null,"20fd"))}},o=function(){var t=this,e=t.$createElement;t._self._c},r=[]},ae5f:function(t,e,n){}},[["4c3d","common/runtime","common/vendor"]]]);