(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/member/units"],{9821:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){}));var i=function(){var t=this.$createElement,e=(this._self._c,this.loadEnd?this.unitsList.length:null);this.$mp.data=Object.assign({},{$root:{g0:e}})},r=[]},bfdc:function(t,e,n){"use strict";n.r(e);var i=n("9821"),r=n("cb09");for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);n("fc16");var o=n("828b"),c=Object(o["a"])(r["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=c.exports},c191:function(t,e,n){},cb09:function(t,e,n){"use strict";n.r(e);var i=n("f9fa"),r=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=r.a},e589:function(t,e,n){"use strict";(function(t,e){var i=n("47a9");n("aa6c");i(n("3240"));var r=i(n("bfdc"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(r.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},f9fa:function(t,e,n){"use strict";(function(t){var i=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("af34")),a=i(n("7ca3")),o=n("8f59");function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}var s={components:{memberUnits:function(){n.e("pages/component/member/units").then(function(){return resolve(n("6580"))}.bind(null,n)).catch(n.oe)}},data:function(){return{loadEnd:!1,page:1,limit:20,hasMore:!1,unitsList:[]}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){(0,a.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,o.mapState)({shareImage:function(t){return t.app.shareImage},shareTitle:function(t){return t.app.shareTitle}})),onLoad:function(){var e=this;t.showLoading({title:"加载中"}),this.getMemberUnits((function(){t.hideLoading(),e.loadEnd=!0}))},onPullDownRefresh:function(){this.page=1,this.getMemberUnits((function(){t.stopPullDownRefresh()}))},onReachBottom:function(){this.hasMore&&(this.page++,this.getMemberUnits())},onShareAppMessage:function(){return{title:this.shareTitle,imageUrl:this.shareImage}},onShareTimeline:function(){return{title:this.shareTitle,imageUrl:this.shareImage}},methods:{getMemberUnits:function(e){var n=this;this.$util.request("member.units",{page:this.page,limit:this.limit}).then((function(i){if(e&&e(),1==i.code){var a=i.data.data;n.hasMore=n.page<i.data.total/n.limit,n.unitsList=1==n.page?a:[].concat((0,r.default)(n.unitsList),(0,r.default)(a))}else t.showToast({title:i.msg,icon:"none"})})).catch((function(t){console.error("获取会员单位列表 ",t)}))}}};e.default=s}).call(this,n("df3c")["default"])},fc16:function(t,e,n){"use strict";var i=n("c191"),r=n.n(i);r.a}},[["e589","common/runtime","common/vendor"]]]);