(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/order/choisestore"],{1794:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n("dac6"),i=n("26cb");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 s=function(){n.e("components/empty").then(function(){return resolve(n("de8d"))}.bind(null,n)).catch(n.oe)},l=function(){n.e("components/uni-load-more/uni-load-more").then(function(){return resolve(n("20fd"))}.bind(null,n)).catch(n.oe)},u={components:{empty:s,uniLoadMore:l},data:function(){return{list:[],page:1,limit:10,loadingType:"more",loaded:!1,height:"",type:0,store_id:0}},onLoad:function(e){this.type=e.type,2==this.type&&(this.store_id=e.id,t.setNavigationBarTitle({title:"选择自提点"})),this.loadDate()},onReady:function(){var e=this;t.getSystemInfo({success:function(n){var o=t.createSelectorQuery();o.select(".scroll-wrapper").boundingClientRect(),o.exec((function(t){console.log(t,"ddddddddddddd"),e.height=n.windowHeight-t[0].top+"px",console.log("打印页面的剩余高度",e.height)}))},fail:function(t){}})},computed:a({},(0,i.mapState)("user",["userInfo","checkedStore","des","latlng","latitude","longitude"])),filters:{distance:function(t){var e="";return t?1*t>1e3?(1*t/1e3).toFixed(1)+"km":(1*t).toFixed(0)+"m":e}},methods:a(a({},(0,i.mapMutations)("user",["setUserInfo","setOrderInfo","setStoreInfo","setPointInfo","setDes"])),{},{loadDate:function(){var t=this;"loading"!==this.loadingType&&(this.loadingType="loading",1==this.type?(0,o.getStoreList)({page:this.page,limit:this.limit,latitude:this.latitude,longitude:this.longitude}).then((function(e){var n=e.data;console.log(n.list,"店面列表");var o=n.list.map((function(t){return t}));t.list=t.list.concat(o),t.page++,t.limit==n.list.length?t.loadingType="more":t.loadingType="noMore",t.$set(t,"loaded",!0)})).catch((function(t){console.log(t)})):(0,o.getPointList)({page:this.page,limit:this.limit,latitude:this.latitude,longitude:this.longitude},this.store_id).then((function(e){var n=e.data;console.log(n.list,"自提点列表");var o=n.list.map((function(t){return t}));t.list=t.list.concat(o),t.page++,t.limit==n.list.length?t.loadingType="more":t.loadingType="noMore",t.$set(t,"loaded",!0)})).catch((function(t){console.log(t)})))},sele:function(e){this.getCurrentPages;var n=getCurrentPages(),o=n[n.length-2];1==this.type?(this.setStoreInfo(e),this.setDes(e.distance),this.setPointInfo(""),t.navigateBack({success:function(){console.log(o.$vm),o.$vm.refrech()}})):2==this.type&&(this.setPointInfo(e),t.navigateBack({}))},tocall:function(e){t.makePhoneCall({phoneNumber:e})},todh:function(t){console.log(t),wx.openLocation({latitude:1*t.latitude,longitude:1*t.longitude,name:t.name,address:t.detailed_address})}})};e.default=u}).call(this,n("543d")["default"])},"58da":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,"20fd"))}},i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.__map(t.list,(function(e,n){var o=t.__get_orig(e),i=t._f("distance")(e.distance);return{$orig:o,f0:i}})));t.$mp.data=Object.assign({},{$root:{l0:n}})},r=[]},7165:function(t,e,n){},"79ba":function(t,e,n){"use strict";(function(t){n("5935");o(n("66fd"));var e=o(n("8dfb"));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"])},"7a44":function(t,e,n){"use strict";var o=n("7165"),i=n.n(o);i.a},"8dfb":function(t,e,n){"use strict";n.r(e);var o=n("58da"),i=n("94fc");for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);n("7a44");var a,c=n("f0c5"),s=Object(c["a"])(i["default"],o["b"],o["c"],!1,null,"1440700a",null,!1,o["a"],a);e["default"]=s.exports},"94fc":function(t,e,n){"use strict";n.r(e);var o=n("1794"),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}},[["79ba","common/runtime","common/vendor"]]]);