(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/pages/brow-user/brow-user"],{311:function(e,t,n){"use strict";(function(e,t){var a=n(4);n(26);a(n(25));var r=a(n(312));e.__webpack_require_UNI_MP_PLUGIN__=n,t(r.default)}).call(this,n(1)["default"],n(2)["createPage"])},312:function(e,t,n){"use strict";n.r(t);var a=n(313),r=n(315);for(var s in r)["default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(s);n(317);var i,o=n(32),c=Object(o["default"])(r["default"],a["render"],a["staticRenderFns"],!1,null,null,null,!1,a["components"],i);c.options.__file="pagesA/pages/brow-user/brow-user.vue",t["default"]=c.exports},313:function(e,t,n){"use strict";n.r(t);var a=n(314);n.d(t,"render",(function(){return a["render"]})),n.d(t,"staticRenderFns",(function(){return a["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return a["recyclableRender"]})),n.d(t,"components",(function(){return a["components"]}))},314:function(e,t,n){"use strict";var a;n.r(t),n.d(t,"render",(function(){return r})),n.d(t,"staticRenderFns",(function(){return i})),n.d(t,"recyclableRender",(function(){return s})),n.d(t,"components",(function(){return a}));var r=function(){var e=this,t=e.$createElement,n=(e._self._c,e.__map(e.userList,(function(t,n){var a=e.__get_orig(t),r=t.user?e._f("getName")(t.user.nickname,10):null;return{$orig:a,f0:r}}))),a=e.userList.length;e.$mp.data=Object.assign({},{$root:{l0:n,g0:a}})},s=!1,i=[];r._withStripped=!0},315:function(e,t,n){"use strict";n.r(t);var a=n(316),r=n.n(a);for(var s in a)["default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(s);t["default"]=r.a},316:function(e,t,n){"use strict";(function(e){var a=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(42)),s=a(n(44)),i=n(71),o=function(){Promise.all([n.e("common/vendor"),n.e("pagesA/components/charts/area-chart")]).then(function(){return resolve(n(488))}.bind(null,n)).catch(n.oe)},c={data:function(){return{userData:"",userList:"",params:{cycle:"all",page_index:1,page_size:5},chartData:{},totalPage:0}},components:{areaChart:o},onShow:function(){this.getData(),this.getList()},onReachBottom:function(){this.getMoreList()},methods:{dateTab:function(e){this.params.cycle=e,this.params.page_index=1,this.getData(),this.getList()},skipUser:function(t){e.navigateTo({url:"../complete-info/complete-info?user_id="+t})},skipOrder:function(t){e.navigateTo({url:"../order-manage/order-manage?user_id=".concat(t.user_id,"&&nickname=").concat(t.user.nickname)})},getData:function(){var t=this;return(0,s.default)(r.default.mark((function n(){var a,s,o,c,u,l,d,f;return r.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,(0,i.getseeUser)({cycle:t.params.cycle});case 2:a=n.sent;try{if(s=a.code,o=a.data,200===s){for(d in t.userData=o,c=o.line,u=[],l=[],c)l.push(c[d]),"all"!=t.params.cycle&&(f=d.indexOf("-"),d=d.substring(f+1,d.length)),u.push(d);t.chartData={categories:u,series:[{name:"数量",data:l}]}}else e.showModal({content:o||"获取数据失败",showCancel:!1})}catch(r){e.showModal({content:r||"获取数据失败",showCancel:!1})}case 4:case"end":return n.stop()}}),n)})))()},getList:function(t){var n=this;return(0,s.default)(r.default.mark((function a(){var s,o,c;return r.default.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return e.showLoading({title:"加载中..."}),a.next=3,(0,i.getSeeUserList)(n.params);case 3:s=a.sent;try{o=s.code,c=s.data,200===o?(n.userList=t?n.userList.concat(c.list):c.list,n.totalPage=Math.ceil(c.total/n.params.page_size)):e.showModal({content:c||"获取数据失败",showCancel:!1}),e.hideLoading()}catch(r){e.showModal({content:r||"获取数据失败",showCancel:!1}),e.hideLoading()}case 5:case"end":return a.stop()}}),a)})))()},getMoreList:function(){if(this.params.page_index>=this.totalPage)return e.showToast({title:"没有更多啦~",icon:"none"}),!1;this.params.page_index++,this.getList(!0)}}};t.default=c}).call(this,n(2)["default"])},317:function(e,t,n){"use strict";n.r(t);var a=n(318),r=n.n(a);for(var s in a)["default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(s);t["default"]=r.a},318:function(e,t,n){}},[[311,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pagesA/pages/brow-user/brow-user.js.map