(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesTools/institution/index"],{"589f":function(t,e,n){},"97cd":function(t,e,n){"use strict";(function(t){var i=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("af34")),a=i(n("7ca3")),r=n("8f59");function s(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 u={data:function(){return{loadEnd:!1,institutionList:[],page:1,limit:20,hasMore:!1}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){(0,a.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,r.mapState)({shareImage:function(t){return t.app.shareImage},shareTitle:function(t){return t.app.shareTitle}})),onLoad:function(){var e=this;t.showLoading({title:"加载中"}),this.getInstitutionList((function(){t.hideLoading(),e.loadEnd=!0}))},onPullDownRefresh:function(){this.page=1,this.getInstitutionList((function(){t.stopPullDownRefresh()}))},onReachBottom:function(){this.hasMore&&(this.page++,this.getInstitutionList())},onShareAppMessage:function(){return{title:this.shareTitle,imageUrl:this.shareImage}},onShareTimeline:function(){return{title:this.shareTitle,imageUrl:this.shareImage}},methods:{getInstitutionList:function(e){var n=this;this.$util.request("institution.list",{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.institutionList=1==n.page?a:[].concat((0,o.default)(n.institutionList),(0,o.default)(a))}else t.showToast({title:i.msg,icon:"none"})})).catch((function(t){e&&e(),console.error("获取机构列表",t)}))},toDetails:function(t){this.$util.toPage({mode:1,path:"/pagesTools/institution/details?id="+t})}}};e.default=u}).call(this,n("df3c")["default"])},b0b2:function(t,e,n){"use strict";var i=n("589f"),o=n.n(i);o.a},bc6b:function(t,e,n){"use strict";n.r(e);var i=n("d360"),o=n("bd84");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("b0b2");var r=n("828b"),s=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=s.exports},bd84:function(t,e,n){"use strict";n.r(e);var i=n("97cd"),o=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"]=o.a},d360:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var i=function(){var t=this.$createElement,e=(this._self._c,this.loadEnd?this.institutionList.length:null);this.$mp.data=Object.assign({},{$root:{g0:e}})},o=[]},e21a:function(t,e,n){"use strict";(function(t,e){var i=n("47a9");n("aa6c");i(n("3240"));var o=i(n("bc6b"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])}},[["e21a","common/runtime","common/vendor"]]]);