(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/store/shopList"],{"0f34":function(e,t,n){},"126b":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return o}));var o={uniLoadMore:function(){return n.e("components/uni-load-more/uni-load-more").then(n.bind(null,"ef69"))}},i=function(){var e=this,t=e.$createElement;e._self._c},a=[]},"22c1":function(e,t,n){"use strict";n.r(t);var o=n("8eeb"),i=n.n(o);for(var a in o)"default"!==a&&function(e){n.d(t,e,(function(){return o[e]}))}(a);t["default"]=i.a},"295b":function(e,t,n){"use strict";var o=n("0f34"),i=n.n(o);i.a},"8eeb":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n("26cb"),i=n("051e");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(){n.e("uview-ui/components/u-empty/u-empty").then(function(){return resolve(n("547d"))}.bind(null,n)).catch(n.oe)},l={components:{empty:u},data:function(){return{page:1,limit:10,shopList:[],name:"",height:"",loadingType:"more",loaded:!1}},computed:r({},(0,o.mapState)(["loginInterceptor","baseURL","latitude","longitude"])),onLoad:function(e){e.id&&(this.id=e.id),this.getStoreList()},onShow:function(){},onReachBottom:function(){},onReady:function(){var t=this;e.getSystemInfo({success:function(n){var o=e.createSelectorQuery();o.select(".shop-list-wrap").boundingClientRect(),o.exec((function(e){t.height=n.windowHeight-e[0].top+"px"}))},fail:function(e){}})},methods:{navTo:function(t){e.navigateTo({url:t,fail:function(){e.switchTab({url:t})}})},search:function(){var e=this;e.shopList=[],e.loadingType="more",e.page=1,e.getStoreList()},makeCall:function(t){e.makePhoneCall({phoneNumber:t})},dh:function(e){wx.openLocation({latitude:1*e.latitude,longitude:1*e.longitude,name:e.name,address:e.detailed_address})},getStoreList:function(){var e=this;"noMore"!=e.loadingType&&"loading"!=e.loadingType&&(e.loadingType="loading",(0,i.getStoreList)({cate_id:e.id,name:e.name,latitude:e.latitude,longitude:e.longitude,page:e.page,limit:e.limit}).then((function(t){console.log(t),e.shopList=e.shopList.concat(t.data.list),e.page++,e.limit==t.data.list.length?e.loadingType="more":e.loadingType="noMore",e.loaded=!0})))},toGaodeMap:function(e,t,n){console.log("选择高德",e,t,n),window.location.href="https://uri.amap.com/marker?position=".concat(t,",").concat(e,"&name=").concat(n)}}};t.default=l}).call(this,n("543d")["default"])},"949a":function(e,t,n){"use strict";(function(e){n("856e");o(n("66fd"));var t=o(n("c9aa"));function o(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=n,e(t.default)}).call(this,n("543d")["createPage"])},c9aa:function(e,t,n){"use strict";n.r(t);var o=n("126b"),i=n("22c1");for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("295b");var r,c=n("f0c5"),u=Object(c["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],r);t["default"]=u.exports}},[["949a","common/runtime","common/vendor"]]]);