(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/main"],[function(e,t,n){"use strict";(function(e,t){n(5);var o=f(n(4)),a=f(n(6)),u=f(n(12)),c=f(n(14)),r=f(n(15)),i=f(n(16)),s=f(n(17));function f(e){return e&&e.__esModule?e:{default:e}}function l(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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}wx.__webpack_require_UNI_MP_PLUGIN__=n,o.default.use(s.default),o.default.prototype.getLocation=function(){return new Promise((function(t,n){showLoading(),e.getLocation({type:"wgs84",success:function(e){hideLoading(),t(e)},fail:function(){hideLoading(),e.showModal({title:"请求授权当前位置",content:"我们需要获取地理位置信息，为您推荐附近的订单",success:function(n){n.confirm?e.openSetting().then((function(n){!0===n[1].authSetting["scope.userLocation"]?e.getLocation({type:"wgs84",success:function(e){t(e)}}):e.showToast({title:"您拒绝了授权当前位置"})})):n.cancel&&e.showToast({title:"您拒绝了授权当前位置"})}})}})}))},o.default.config.productionTip=!1,o.default.prototype.$Request=u.default,o.default.prototype.$queue=r.default,o.default.prototype.$Sysconf=u.default.config,o.default.prototype.$SysCache=c.default,o.default.mixin(i.default),a.default.mpType="app";var g=new o.default(d({},a.default));t(g).$mount()}).call(this,n(1)["default"],n(1)["createApp"])},,,,,,function(e,t,n){"use strict";n.r(t);var o=n(7);for(var a in o)"default"!==a&&function(e){n.d(t,e,(function(){return o[e]}))}(a);n(9);var u,c,r,i,s=n(11),f=Object(s["default"])(o["default"],u,c,!1,null,null,null,!1,r,i);f.options.__file="App.vue",t["default"]=f.exports},function(e,t,n){"use strict";n.r(t);var o=n(8),a=n.n(o);for(var u in o)"default"!==u&&function(e){n.d(t,e,(function(){return o[e]}))}(u);t["default"]=a.a},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={onLaunch:function(){var t=this;setInterval((function(n){var o=e.getStorageSync("userId"),a=e.getStorageSync("token");o&&a&&t.$Request.getT("/app/ordersChat/selectRiderAllUnreadCount").then((function(t){if(0===t.code){var n=t.data,o=t.data;e.setStorageSync("messageCount",o);var a=n+o;if(0==a)return void e.removeTabBarBadge({index:1});e.setTabBarBadge({index:1,text:a+""})}}))}),3e3)},onShow:function(){var t=this;console.log("App Show"),this.$Request.get("/app/common/type/341").then((function(e){0==e.code&&t.$queue.setData("XCXIsSelect",e.data.value)})),this.$Request.getT("/app/common/type/318").then((function(e){0==e.code&&e.data&&e.data.value&&t.$queue.setData("mapName",e.data.value)})),this.$Request.getT("/app/common/type/317").then((function(e){0==e.code&&e.data&&e.data.value&&t.$queue.setData("mapKey",e.data.value)})),this.$Request.getT("/app/common/type/331").then((function(t){0===t.code&&e.setStorageSync("tuiguang",t.data.value)})),this.$Request.getT("/app/common/type/332").then((function(t){0===t.code&&e.setStorageSync("tuiguangImg",t.data.value)})),this.userId=this.$queue.getData("userId"),this.userId&&this.$Request.getT("/app/userinfo/bannedFlag").then((function(t){0==t.code&&2==t.data&&e.showModal({title:"账号已被封禁",content:"请在【我的】【我的客服】申诉，申诉成功后重新登录",showCancel:!1,cancelText:"",confirmText:"我知道了",success:function(t){e.clearStorageSync()},fail:function(){},complete:function(){}})}))},onHide:function(){console.log("App Hide")}};t.default=n}).call(this,n(1)["default"])},function(e,t,n){"use strict";n.r(t);var o=n(10),a=n.n(o);for(var u in o)"default"!==u&&function(e){n.d(t,e,(function(){return o[e]}))}(u);t["default"]=a.a},function(e,t,n){}],[[0,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../.sourcemap/mp-weixin/common/main.js.map