(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/pages/brow-user/brow-user"],{"0220":function(t,e,n){},2220:function(t,e,n){"use strict";n.r(e);var a=n("dcce"),r=n("48b9");for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);n("7167");var i,s=n("f0c5"),c=Object(s["a"])(r["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],i);e["default"]=c.exports},"48b9":function(t,e,n){"use strict";n.r(e);var a=n("d98b"),r=n.n(a);for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=r.a},7167:function(t,e,n){"use strict";var a=n("0220"),r=n.n(a);r.a},9886:function(t,e,n){"use strict";(function(t){n("fdf4");a(n("66fd"));var e=a(n("2220"));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"])},d98b:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=o(n("a34a")),r=n("057a");function o(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n,a,r,o,i){try{var s=t[o](i),c=s.value}catch(u){return void n(u)}s.done?e(c):Promise.resolve(c).then(a,r)}function s(t){return function(){var e=this,n=arguments;return new Promise((function(a,r){var o=t.apply(e,n);function s(t){i(o,a,r,s,c,"next",t)}function c(t){i(o,a,r,s,c,"throw",t)}s(void 0)}))}}var c=function(){Promise.all([n.e("common/vendor"),n.e("pagesA/components/charts/area-chart")]).then(function(){return resolve(n("d926"))}.bind(null,n)).catch(n.oe)},u={data:function(){return{userData:"",userList:"",params:{cycle:"all",page_index:1,page_size:5},chartData:{},totalPage:0}},components:{areaChart:c},onShow:function(){this.getData(),this.getList()},onReachBottom:function(){this.getMoreList()},methods:{dateTab:function(t){this.params.cycle=t,this.params.page_index=1,this.getData(),this.getList()},skipUser:function(e){t.navigateTo({url:"../complete-info/complete-info?user_id="+e})},skipOrder:function(e){t.navigateTo({url:"../order-manage/order-manage?user_id=".concat(e.user_id,"&&nickname=").concat(e.user.nickname)})},getData:function(){var e=this;return s(a.default.mark((function n(){var o,i,s,c,u,l,f,d;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,(0,r.getseeUser)({cycle:e.params.cycle});case 2:o=n.sent;try{if(i=o.code,s=o.data,200===i){for(f in e.userData=s,c=s.line,u=[],l=[],c)l.push(c[f]),"all"!=e.params.cycle&&(d=f.indexOf("-"),f=f.substring(d+1,f.length)),u.push(f);e.chartData={categories:u,series:[{name:"数量",data:l}]}}else t.showModal({content:s||"获取数据失败",showCancel:!1})}catch(a){t.showModal({content:a||"获取数据失败",showCancel:!1})}case 4:case"end":return n.stop()}}),n)})))()},getList:function(e){var n=this;return s(a.default.mark((function o(){var i,s,c;return a.default.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.showLoading({title:"加载中..."}),a.next=3,(0,r.getSeeUserList)(n.params);case 3:i=a.sent;try{s=i.code,c=i.data,200===s?(n.userList=e?n.userList.concat(c.list):c.list,n.totalPage=Math.ceil(c.total/n.params.page_size)):t.showModal({content:c||"获取数据失败",showCancel:!1}),t.hideLoading()}catch(o){t.showModal({content:o||"获取数据失败",showCancel:!1}),t.hideLoading()}case 5:case"end":return a.stop()}}),o)})))()},getMoreList:function(){if(this.params.page_index>=this.totalPage)return t.showToast({title:"没有更多啦~",icon:"none"}),!1;this.params.page_index++,this.getList(!0)}}};e.default=u}).call(this,n("543d")["default"])},dcce:function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var r=function(){var t=this,e=t.$createElement,n=(t._self._c,t.__map(t.userList,(function(e,n){var a=t.__get_orig(e),r=e.user?t._f("getName")(e.user.nickname,10):null;return{$orig:a,f0:r}})));t.$mp.data=Object.assign({},{$root:{l0:n}})},o=[]}},[["9886","common/runtime","common/vendor"]]]);