(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/member/search/result"],{"25ea":function(t,e,n){},"2bae9":function(t,e,n){"use strict";n.r(e);var i=n("9960"),a=n("a278");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("a4c6");var c=n("828b"),u=Object(c["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=u.exports},"7f10":function(t,e,n){"use strict";(function(t,e){var i=n("47a9");n("aa6c");i(n("3240"));var a=i(n("2bae9"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(a.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},9960:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var i=function(){var t=this.$createElement,e=(this._self._c,this.loadEnd?this.dataList.length:null);this.$mp.data=Object.assign({},{$root:{g0:e}})},a=[]},a278:function(t,e,n){"use strict";n.r(e);var i=n("c0a8"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},a4c6:function(t,e,n){"use strict";var i=n("25ea"),a=n.n(i);a.a},c0a8:function(t,e,n){"use strict";(function(t){var i=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("af34")),o={components:{memberItem:function(){Promise.all([n.e("common/vendor"),n.e("pages/component/member/index")]).then(function(){return resolve(n("624e"))}.bind(null,n)).catch(n.oe)}},data:function(){return{loadEnd:!1,keyword:"",page:1,limit:20,hasMore:!1,dataList:[],isLocation:!1}},onLoad:function(e){var n=this;this.keyword=decodeURIComponent(e.keyword),t.showLoading({title:"加载中"}),this.getAuthSetting((function(){t.hideLoading(),n.loadEnd=!0}))},onReachBottom:function(){this.hasMore&&(this.page++,this.getList())},methods:{getAuthSetting:function(e){var n=this;t.getSetting({success:function(t){t.authSetting&&t.authSetting.hasOwnProperty("scope.userLocation")&&t.authSetting["scope.userLocation"]?(n.isLocation=!0,n.getList(e)):(n.isLocation=!1,n.getList(e))},fail:function(){n.isLocation=!1,n.getList(e)}})},getList:function(e){var n=this;this.getLocation((function(i){var o={page:n.page,limit:n.limit,keywords:n.keyword};i&&i.latitude&&i.longitude&&(o.latitude=i.latitude,o.longitude=i.longitude),n.$util.request("member.list",o).then((function(i){if(e&&e(),1==i.code){var o=i.data.data;n.hasMore=n.page<i.data.total/n.limit,n.dataList=1==n.page?o:[].concat((0,a.default)(n.dataList),(0,a.default)(o))}else t.showToast({title:i.msg,icon:"none"})})).catch((function(t){console.error("获取会员列表 ",t)}))}))},getLocation:function(e){var n=this;this.isLocation?t.getLocation({type:"wgs84",geocode:!0,success:function(t){e({latitude:t.latitude,longitude:t.longitude})},fail:function(){n.isLocation=!1,e()}}):e()}}};e.default=o}).call(this,n("df3c")["default"])}},[["7f10","common/runtime","common/vendor"]]]);