(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/extension"],{307:function(e,n,t){"use strict";(function(e,n){var o=t(4);t(26);o(t(25));var r=o(t(308));e.__webpack_require_UNI_MP_PLUGIN__=t,n(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},308:function(e,n,t){"use strict";t.r(n);var o=t(309),r=t(311);for(var a in r)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(a);t(313);var i,u=t(35),c=Object(u["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],i);c.options.__file="pages/user/extension.vue",n["default"]=c.exports},309:function(e,n,t){"use strict";t.r(n);var o=t(310);t.d(n,"render",(function(){return o["render"]})),t.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(n,"components",(function(){return o["components"]}))},310:function(e,n,t){"use strict";var o;t.r(n),t.d(n,"render",(function(){return r})),t.d(n,"staticRenderFns",(function(){return i})),t.d(n,"recyclableRender",(function(){return a})),t.d(n,"components",(function(){return o}));try{o={uniLoadMore:function(){return t.e("components/uni-load-more/uni-load-more").then(t.bind(null,374))}}}catch(u){if(-1===u.message.indexOf("Cannot find module")||-1===u.message.indexOf(".vue"))throw u;console.error(u.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范，文档：https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范，需手动引入，并在 components 中注册该组件")}var r=function(){var e=this,n=e.$createElement,t=(e._self._c,e.__map(e.navList,(function(n,t){var o=e.__get_orig(n),r=!0===n.loaded&&0===n.orderList.length;return{$orig:o,g0:r}})));e.$mp.data=Object.assign({},{$root:{l0:t}})},a=!1,i=[];r._withStripped=!0},311:function(e,n,t){"use strict";t.r(n);var o=t(312),r=t.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=r.a},312:function(e,n,t){"use strict";(function(e){var o=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(t(42)),a=o(t(44)),i=t(49),u=(t(28),function(){t.e("components/uni-load-more/uni-load-more").then(function(){return resolve(t(374))}.bind(null,t)).catch(t.oe)}),c=function(){t.e("components/empty").then(function(){return resolve(t(381))}.bind(null,t)).catch(t.oe)},l={components:{empty:c,uniLoadMore:u},onReady:function(n){var t=this;e.getSystemInfo({success:function(n){var o=e.createSelectorQuery();o.select(".swiper-box").boundingClientRect(),o.exec((function(e){t.maxheight=n.windowHeight-e[0].top+"px",console.log("打印页面的剩余高度",t.maxheight)}))},fail:function(e){}})},data:function(){return{maxheight:"",tabCurrentIndex:0,navList:[{state:0,text:"一级推广",loadingType:"more",orderList:[],page:1,limit:10}],all:"",list:"",total:"",totalLevel:"",userInfo:{}}},onLoad:function(e){},onShow:function(){this.loadData(),this.loadAll()},methods:{navto:function(n){e.navigateTo({url:n})},loadData:function(e){var n=this;return(0,a.default)(r.default.mark((function t(){var o,a;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(o=n.tabCurrentIndex,a=n.navList[o],a.state,"tabChange"!==e||!0!==a.loaded){t.next=5;break}return t.abrupt("return");case 5:if("loading"!==a.loadingType){t.next=7;break}return t.abrupt("return");case 7:if("noMore"!==a.loadingType){t.next=9;break}return t.abrupt("return");case 9:a.loadingType="loading",(0,i.getSpreadPeople)({page:a.page,limit:a.limit}).then((function(e){var t=e.data;console.log(t),n.total=t.total,n.totalLevel=t.totalLevel,t.list.length>0&&(n.list=t.list,a.orderList=a.orderList.concat(t.list),a.page++),n.$nextTick((function(){a.limit!=t.list.length?a.loadingType="noMore":a.loadingType="more"})),n.$set(a,"loaded",!0)})).catch((function(e){console.log(e)}));case 11:case"end":return t.stop()}}),t)})))()},changeTab:function(e){this.tabCurrentIndex=e.target.current,this.loadData("tabChange")},tabClick:function(e){this.tabCurrentIndex=e},toBack:function(){e.switchTab({url:"/pages/user/my"})},loadAll:function(){var e=this;(0,i.getUserInfo)().then((function(n){e.userInfo=n.data,console.log(n,"6666666666666666666")}))}}};n.default=l}).call(this,t(2)["default"])},313:function(e,n,t){"use strict";t.r(n);var o=t(314),r=t.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=r.a},314:function(e,n,t){}},[[307,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/user/extension.js.map