require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["plugin/pabonus/shareholder"],{7909:function(t,e,n){"use strict";n.r(e);var o=n("d0a2"),r=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=r.a},"7c13":function(t,e,n){"use strict";n.r(e);var o=n("b03d"),r=n("7909");for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);n("f89e");var u=n("828b"),i=Object(u["a"])(r["default"],o["b"],o["c"],!1,null,"b3556964",null,!1,o["a"],void 0);e["default"]=i.exports},b03d:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}));var o={uAvatar:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-avatar/u-avatar")]).then(n.bind(null,"1350"))},uEmpty:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-empty/u-empty")]).then(n.bind(null,"f174"))},uLoadmore:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-loadmore/u-loadmore")]).then(n.bind(null,"4c80"))}},r=function(){var t=this.$createElement,e=(this._self._c,this.shareholders.length),n=this.shareholders.length;this.$mp.data=Object.assign({},{$root:{g0:e,g1:n}})},a=[]},be82:function(t,e,n){"use strict";(function(t,e){var o=n("47a9");n("4c1a");o(n("3240"));var r=o(n("7c13"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(r.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},d0a2:function(t,e,n){"use strict";var o=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n("af34")),a={data:function(){return{projectList:[],currentProjectId:"",shareholders:[],page:1,status:"loadmore"}},computed:{currentProjectName:function(){var t=this,e=this.projectList.find((function(e){return e.id==t.currentProjectId}));return e?e.name:""}},onLoad:function(t){this.currentProjectId=t.id,this.getAllProject(),this.fetchShareholders()},onReachBottom:function(){this.fetchShareholders()},methods:{getAllProject:function(){var t=this;this.$util.get("pabonus/goods/all").then((function(e){t.projectList=[{id:"",name:"全部项目"}].concat((0,r.default)(e.data.list))}))},onProjectChange:function(t){this.page=1;var e=Number(t.detail.value),n=this.projectList[e];this.currentProjectId=n?n.id:"",this.fetchShareholders()},fetchShareholders:function(){var t=this;"loading"!=this.status&&(this.status="loading",this.$util.get("pabonus/user/getList",{page:this.page,pid:this.currentProjectId}).then((function(e){t.status="loadmore",1==t.page&&(t.shareholders=[]),1==e.code&&(t.shareholders=[].concat((0,r.default)(t.shareholders),(0,r.default)(e.data.list)),t.page++),e.data.list.length<10&&(t.status="nomore")})).catch((function(e){1==t.page&&(t.shareholders=[]),t.status="loadmore"})))}}};e.default=a},ee29:function(t,e,n){},f89e:function(t,e,n){"use strict";var o=n("ee29"),r=n.n(o);r.a}},[["be82","common/runtime","common/vendor"]]]);