(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/main"],{"132e":function(t,e,n){"use strict";var o=n("8aa3"),r=n.n(o);r.a},"1afc":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n("26cb"),r=n("475d"),a=n("dac6");function u(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 i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(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={data:function(){return{appData:{}}},methods:i(i({},(0,o.mapMutations)("user",["setUserInfo","login","hasLogin","setDes","setStoreInfo","setLatlng","setLatitude","setLongitude","logout"])),{},{getaddress:function(){var e=this,n=this;t.getLocation({type:"gcj02",success:function(e){t.removeStorageSync("latlon");var o=Math.abs(e.latitude)+","+Math.abs(e.longitude);console.log("app页+++++++++++++++++++++"),n.setLatlng(o),n.setLatitude(Math.abs(e.latitude)),n.setLongitude(Math.abs(e.longitude)),t.setStorageSync("latlon",o),n.setMrStore(Math.abs(e.latitude),Math.abs(e.longitude))},fail:function(t){console.log("失败"),(0,r.openMap)().then((function(t){e.getaddress()}))}})},setMrStore:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,a.getStoreList)({latitude:e,longitude:n,page:1,limit:1}).then((function(e){var n=e.data;console.log(n,"店面列表"),n.list[0]&&(t.setDes(n.list[0].distance),t.setStoreInfo(n.list[0]))}))}}),onLaunch:function(e){var n=this;console.log("app 开始"),t.removeStorageSync("newStore");var o=t.getStorageSync("userInfo")||"";t.getStorageSync("store");o.uid?t.getStorage({key:"userInfo",success:function(t){n.setUserInfo(t.data),n.login(t.data)}}):n.logout(),this.getaddress()},onShow:function(){},onHide:function(){}};e.default=s}).call(this,n("543d")["default"])},"24a7":function(t,e,n){"use strict";n.r(e);var o=n("5764");for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);n("132e");var a,u,i,c,s=n("f0c5"),l=Object(s["a"])(o["default"],a,u,!1,null,null,null,!1,i,c);e["default"]=l.exports},5764:function(t,e,n){"use strict";n.r(e);var o=n("1afc"),r=n.n(o);for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=r.a},"8aa3":function(t,e,n){},b72e:function(t,e,n){"use strict";(function(t,e){n("5935");var o=i(n("66fd")),r=i(n("411b")),a=i(n("24a7")),u=i(n("298b"));function i(t){return t&&t.__esModule?t:{default:t}}function c(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 s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}wx.__webpack_require_UNI_MP_PLUGIN__=n,o.default.prototype.$util=u.default;var f=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1500,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none";!1!==Boolean(e)&&t.showToast({title:e,duration:n,mask:o,icon:r})},d=function(){var t=getCurrentPages(),e=t[t.length-2];return e.$vm};o.default.config.productionTip=!1,o.default.prototype.$fire=new o.default,o.default.prototype.$store=r.default,o.default.prototype.$api={msg:f,prePage:d},a.default.mpType="app";var p=new o.default(s({},a.default));e(p).$mount()}).call(this,n("543d")["default"],n("543d")["createApp"])}},[["b72e","common/runtime","common/vendor"]]]);