(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/shop/shopList"],{5249:function(t,e,n){"use strict";n.r(e);var o=n("54f3"),i=n("8604");for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);n("a147");var a,c=n("f0c5"),u=Object(c["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],a);e["default"]=u.exports},"54f3":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(){return o}));var o={uniLoadMore:function(){return n.e("components/uni-load-more/uni-load-more").then(n.bind(null,"6c4c"))}},i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.__map(t.shopList,(function(e,n){var o=t.__get_orig(e),i=t.__map(e.coupon,(function(e,n){var o=t.__get_orig(e),i=(10*e.price/(1*e.ot_price)).toFixed(1);return{$orig:o,g0:i}}));return{$orig:o,l0:i}})));t.$mp.data=Object.assign({},{$root:{l1:n}})},r=[]},6280:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n("26cb"),i=n("b0c9");function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=function(){n.e("uview-ui/components/u-empty/u-empty").then(function(){return resolve(n("6957"))}.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:a({},(0,o.mapState)(["loginInterceptor","baseURL","latitude","longitude"])),onLoad:function(t){t.id&&(this.id=t.id),this.getStoreList()},onShow:function(){},onReachBottom:function(){},onReady:function(){var e=this;t.getSystemInfo({success:function(n){var o=t.createSelectorQuery();o.select(".shop-list-wrap").boundingClientRect(),o.exec((function(t){e.height=n.windowHeight-t[0].top+"px"}))},fail:function(t){}})},methods:{navTo:function(e){t.navigateTo({url:e,fail:function(){t.switchTab({url:e})}})},search:function(){var t=this;t.shopList=[],t.loadingType="more",t.page=1,t.getStoreList()},makeCall:function(e){t.makePhoneCall({phoneNumber:e})},dh:function(t){wx.openLocation({latitude:1*t.latitude,longitude:1*t.longitude,name:t.name,address:t.detailed_address})},getStoreList:function(){var t=this;"noMore"!=t.loadingType&&"loading"!=t.loadingType&&(t.loadingType="loading",(0,i.getStoreList)({cate_id:t.id,name:t.name,latitude:t.latitude,longitude:t.longitude,page:t.page,limit:t.limit}).then((function(e){console.log(e),t.shopList=t.shopList.concat(e.data.list),t.page++,t.limit==e.data.list.length?t.loadingType="more":t.loadingType="noMore",t.loaded=!0})))},toGaodeMap:function(t,e,n){console.log("选择高德",t,e,n),window.location.href="https://uri.amap.com/marker?position=".concat(e,",").concat(t,"&name=").concat(n)}}};e.default=l}).call(this,n("543d")["default"])},6620:function(t,e,n){},8604:function(t,e,n){"use strict";n.r(e);var o=n("6280"),i=n.n(o);for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e["default"]=i.a},a147:function(t,e,n){"use strict";var o=n("6620"),i=n.n(o);i.a},a771:function(t,e,n){"use strict";(function(t){n("4c14");o(n("66fd"));var e=o(n("5249"));function o(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=n,t(e.default)}).call(this,n("543d")["createPage"])}},[["a771","common/runtime","common/vendor"]]]);