(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/main"],{0:function(t,e,n){"use strict";(function(t,e){var o=n(3),r=o(n(10));n(25);var a=o(n(24)),i=o(n(26)),u=o(n(29)),c=o(n(40));function s(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 l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){(0,r.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}wx.__webpack_require_UNI_MP_PLUGIN__=n,a.default.prototype.$util=c.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};a.default.config.productionTip=!1,a.default.prototype.$fire=new a.default,a.default.prototype.$store=i.default,a.default.prototype.$api={msg:f,prePage:d},u.default.mpType="app";var p=new a.default(l({},u.default));e(p).$mount()}).call(this,n(1)["default"],n(1)["createApp"])},29:function(t,e,n){"use strict";n.r(e);var o=n(30);for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);n(37);var a,i,u,c,s=n(39),l=Object(s["default"])(o["default"],a,i,!1,null,null,null,!1,u,c);l.options.__file="App.vue",e["default"]=l.exports},30:function(t,e,n){"use strict";n.r(e);var o=n(31),r=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=r.a},31:function(t,e,n){"use strict";(function(t){var o=n(3);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n(10)),a=n(27),i=n(32),u=n(33);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){(0,r.default)(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}var l={data:function(){return{appData:{}}},methods:s(s({},(0,a.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,i.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,u.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=l}).call(this,n(1)["default"])},37:function(t,e,n){"use strict";n.r(e);var o=n(38),r=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=r.a},38:function(t,e,n){}},[[0,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../.sourcemap/mp-weixin/common/main.js.map