You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
370 KiB

3 years ago
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/vendor"],{"0338":function(e,n,t){"use strict";function i(e,n){var t=this.$parent;while(t)if(t.$options.name!==e)t=t.$parent;else{var i=function(){var e={};if(Array.isArray(n))n.map((function(n){e[n]=t[n]?t[n]:""}));else for(var i in n)Array.isArray(n[i])?n[i].length?e[i]=n[i]:e[i]=t[i]:n[i].constructor===Object?Object.keys(n[i]).length?e[i]=n[i]:e[i]=t[i]:e[i]=n[i]||!1===n[i]?n[i]:t[i];return{v:e}}();if("object"===typeof i)return i.v}return{}}Object.defineProperty(n,"__esModule",{value:!0}),n.default=i},"0415":function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=c(t("66fd")),o=c(t("2f62")),d=c(t("39ce")),a=t("aa63");c(t("ff85"));function c(e){return e&&e.__esModule?e:{default:e}}i.default.use(o.default);var r=!1,s="login_status",u=new o.default.Store({state:{isAuthorizationPage:!1,isAuthorization:!1,token:d.default.get(s)||null,userInfo:d.default.get("userInfo"),$deviceType:null,location:{latitude:"",longitude:""},storeItems:d.default.get("storeItems")||null,goName:d.default.get("goName")||""},mutations:{login:function(e,n,t){e.token=n,d.default.set(s,n,t)},logout:function(e){console.log("清除数据"),e.token=null,e.userInfo=null,d.default.clearAll()},backgroundColor:function(e,n){e.color=n},updateUserInfo:function(e,n){e.userInfo=n,n?d.default.set("userInfo",n):d.default.set("userInfo",null)},updateAuthorizationPage:function(e,n){e.isAuthorizationPage=n},updateAuthorization:function(e,n){e.isAuthorization=n},updateDevicetype:function(e,n){e.$deviceType=n},setLocation:function(e,n){e.location=n},get_store:function(e,n){e.storeItems=n,d.default.set("storeItems",n)},get_to:function(e,n){e.goName=n,d.default.set("goName",n)}},actions:{getLocation:function(n,t){n.state;var i=n.commit;e.getLocation({type:"gcj02",success:function(e){console.log(e),i("setLocation",{longitude:e.longitude,latitude:e.latitude})}})},userInfo:function(n,t){var i=n.state,o=n.commit;return null===i.userInfo||t?new Promise((function(e){(0,a.getUserInfo)().then((function(n){o("updateUserInfo",n.data),e(n.data)}))})).catch((function(){e.showToast({title:"获取信息失败!",icon:"none",duration:2e3})})):Promise.resolve(i.userInfo)},getUser:function(n){var t=n.state,i=n.commit;return t.token?new Promise((function(e){(0,a.getUserInfo)().then((function(n){console.log(n),i("updateUserInfo",n.data),e(n.data)}))})).catch((function(n){console.log(n),e.showToast({title:"获取信息失败!",icon:"none",duration:2e3})})):Promise.reject("未获取到token")},changeLogin:function(e,n,t){e.state;var i=e.commit;i("login",n,t)},setUserInfo:function(e,n){e.state;var t=e.commit;t("updateUserInfo",n)},changeAuthorizationPage:function(e,n){e.state;var t=e.commit;t("updateAuthorizationPage",n)},changeAuthorization:function(e,n){e.state;var t=e.commit;t("updateAuthorization",n)}},getters:{isAuthorizationPage:function(e){return e.isAuthorizationPage},isAuthorization:function(e){return e.isAuthorization},token:function(e){return e.token},isLogin:function(e){return!!e.token},userInfo:function(e){return e.userInfo||{}},location:function(e){return e.location},storeItems:function(e){return e.storeItems},goName:function(e){return e.goName},$deviceType:function(e){return e.$deviceType}},strict:r}),m=u;n.default=m}).call(this,t("543d")["default"])},"0784":function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=o(t("a34a"));function o(e){return e&&e.__esModule?e:{default:e}}function d(e,n,t,i,o,d,a){try{var c=e[d](a),r=c.value}catch(s){return void t(s)}c.done?n(r):Promise.resolve(r).then(i,o)}function a(e){return function(){var n=this,t=arguments;return new Promise((function(i,o){var a=e.apply(n,t);function c(e){d(a,i,o,c,r,"next",e)}function r(e){d(a,i,o,c,r,"throw",e)}c(void 0)}))}}function c(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function r(e,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writ
/*!
* vuex v3.4.0
* (c) 2020 Evan You
* @license MIT
*/
function i(e){var n=Number(e.version.split(".")[0]);if(n>=2)e.mixin({beforeCreate:i});else{var t=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,t.call(this,e)}}function i(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}t.d(n,"Store",(function(){return g})),t.d(n,"createNamespacedHelpers",(function(){return I})),t.d(n,"install",(function(){return T})),t.d(n,"mapActions",(function(){return D})),t.d(n,"mapGetters",(function(){return M})),t.d(n,"mapMutations",(function(){return E})),t.d(n,"mapState",(function(){return C}));var o="undefined"!==typeof window?window:"undefined"!==typeof e?e:{},d=o.__VUE_DEVTOOLS_GLOBAL_HOOK__;function a(e){d&&(e._devtoolHook=d,d.emit("vuex:init",e),d.on("vuex:travel-to-state",(function(n){e.replaceState(n)})),e.subscribe((function(e,n){d.emit("vuex:mutation",e,n)}),{prepend:!0}),e.subscribeAction((function(e,n){d.emit("vuex:action",e,n)}),{prepend:!0}))}function c(e,n){Object.keys(e).forEach((function(t){return n(e[t],t)}))}function r(e){return null!==e&&"object"===typeof e}function s(e){return e&&"function"===typeof e.then}function u(e,n){return function(){return e(n)}}var m=function(e,n){this.runtime=n,this._children=Object.create(null),this._rawModule=e;var t=e.state;this.state=("function"===typeof t?t():t)||{}},l={namespaced:{configurable:!0}};l.namespaced.get=function(){return!!this._rawModule.namespaced},m.prototype.addChild=function(e,n){this._children[e]=n},m.prototype.removeChild=function(e){delete this._children[e]},m.prototype.getChild=function(e){return this._children[e]},m.prototype.hasChild=function(e){return e in this._children},m.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},m.prototype.forEachChild=function(e){c(this._children,e)},m.prototype.forEachGetter=function(e){this._rawModule.getters&&c(this._rawModule.getters,e)},m.prototype.forEachAction=function(e){this._rawModule.actions&&c(this._rawModule.actions,e)},m.prototype.forEachMutation=function(e){this._rawModule.mutations&&c(this._rawModule.mutations,e)},Object.defineProperties(m.prototype,l);var f=function(e){this.register([],e,!1)};function h(e,n,t){if(n.update(t),t.modules)for(var i in t.modules){if(!n.getChild(i))return void 0;h(e.concat(i),n.getChild(i),t.modules[i])}}f.prototype.get=function(e){return e.reduce((function(e,n){return e.getChild(n)}),this.root)},f.prototype.getNamespace=function(e){var n=this.root;return e.reduce((function(e,t){return n=n.getChild(t),e+(n.namespaced?t+"/":"")}),"")},f.prototype.update=function(e){h([],this.root,e)},f.prototype.register=function(e,n,t){var i=this;void 0===t&&(t=!0);var o=new m(n,t);if(0===e.length)this.root=o;else{var d=this.get(e.slice(0,-1));d.addChild(e[e.length-1],o)}n.modules&&c(n.modules,(function(n,o){i.register(e.concat(o),n,t)}))},f.prototype.unregister=function(e){var n=this.get(e.slice(0,-1)),t=e[e.length-1];n.getChild(t).runtime&&n.removeChild(t)},f.prototype.isRegistered=function(e){var n=this.get(e.slice(0,-1)),t=e[e.length-1];return n.hasChild(t)};var p;var g=function(e){var n=this;void 0===e&&(e={}),!p&&"undefined"!==typeof window&&window.Vue&&T(window.Vue);var t=e.plugins;void 0===t&&(t=[]);var i=e.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new f(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new p,this._makeLocalGettersCache=Object.create(null);var o=this,d=this,c=d.dispatch,r=d.commit;this.dispatch=function(e,n){return c.call(o,e,n)},this.commit=function(e,n,t){return r.call(o,e,n,t)},this.strict=i;var s=this._modules.root.state;w(this,s,[],this._modules.root),b(this,s),t.forEach((function(e){return e(n)}));var u=void 0!==e.devtools?e.devtool
/*!
* Vue.js v2.6.11
* (c) 2014-2021 Evan You
* Released under the MIT License.
*/
var t=Object.freeze({});function i(e){return void 0===e||null===e}function o(e){return void 0!==e&&null!==e}function d(e){return!0===e}function a(e){return!1===e}function c(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function r(e){return null!==e&&"object"===typeof e}var s=Object.prototype.toString;function u(e){return"[object Object]"===s.call(e)}function m(e){return"[object RegExp]"===s.call(e)}function l(e){var n=parseFloat(String(e));return n>=0&&Math.floor(n)===n&&isFinite(e)}function f(e){return o(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function h(e){return null==e?"":Array.isArray(e)||u(e)&&e.toString===s?JSON.stringify(e,null,2):String(e)}function p(e){var n=parseFloat(e);return isNaN(n)?e:n}function g(e,n){for(var t=Object.create(null),i=e.split(","),o=0;o<i.length;o++)t[i[o]]=!0;return n?function(e){return t[e.toLowerCase()]}:function(e){return t[e]}}g("slot,component",!0);var v=g("key,ref,slot,slot-scope,is");function y(e,n){if(e.length){var t=e.indexOf(n);if(t>-1)return e.splice(t,1)}}var _=Object.prototype.hasOwnProperty;function b(e,n){return _.call(e,n)}function w(e){var n=Object.create(null);return function(t){var i=n[t];return i||(n[t]=e(t))}}var x=/-(\w)/g,O=w((function(e){return e.replace(x,(function(e,n){return n?n.toUpperCase():""}))})),k=w((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),$=/\B([A-Z])/g,S=w((function(e){return e.replace($,"-$1").toLowerCase()}));function A(e,n){function t(t){var i=arguments.length;return i?i>1?e.apply(n,arguments):e.call(n,t):e.call(n)}return t._length=e.length,t}function P(e,n){return e.bind(n)}var j=Function.prototype.bind?P:A;function T(e,n){n=n||0;var t=e.length-n,i=new Array(t);while(t--)i[t]=e[t+n];return i}function C(e,n){for(var t in n)e[t]=n[t];return e}function E(e){for(var n={},t=0;t<e.length;t++)e[t]&&C(n,e[t]);return n}function M(e,n,t){}var D=function(e,n,t){return!1},I=function(e){return e};function L(e,n){if(e===n)return!0;var t=r(e),i=r(n);if(!t||!i)return!t&&!i&&String(e)===String(n);try{var o=Array.isArray(e),d=Array.isArray(n);if(o&&d)return e.length===n.length&&e.every((function(e,t){return L(e,n[t])}));if(e instanceof Date&&n instanceof Date)return e.getTime()===n.getTime();if(o||d)return!1;var a=Object.keys(e),c=Object.keys(n);return a.length===c.length&&a.every((function(t){return L(e[t],n[t])}))}catch(s){return!1}}function R(e,n){for(var t=0;t<e.length;t++)if(L(e[t],n))return t;return-1}function N(e){var n=!1;return function(){n||(n=!0,e.apply(this,arguments))}}var U=["component","directive","filter"],F=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],z={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:D,isReservedAttr:D,isUnknownElement:D,getTagNamespace:M,parsePlatformTagName:I,mustUseProp:D,async:!0,_lifecycleHooks:F},H=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function q(e){var n=(e+"").charCodeAt(0);return 36===n||95===n}function V(e,n,t,i){Object.defineProperty(e,n,{value:t,enumerable:!!i,writable:!0,configurable:!0})}var B=new RegExp("[^"+H.source+".$_\\d]");function G(e){if(!B.test(e)){var n=e.split(".");return function(e){for(var t=0;t<n.length;t++){if(!e)return;e=e[n[t]]}return e}}}var W,Y="__proto__"in{},J="undefined"!==typeof window,Z="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,K=Z&&WXEnvironment.platform.toLowerCase(),X=J&&window.navigator.userAgent.toLowerCase(),Q=X&&/msie|trident/.test(X),ee=(X&&X.indexOf("msie 9.0"),X&&X.indexOf("edge/")>0),ne=(X&&X.indexOf("android"),X&&/iphone|ipad|ipod|ios/.test(X)||"ios"===K),te=(X&&/chrome\/\d+/.test(X),X&&/phantomjs/.test(X),X&&X.match(/firefox\/(\d+)/),{}.watch);if(J)try{var ie={};Object.defineProperty(ie,"passive",{get:fun