(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/vendor"],{"0338":function(e,n,t){"use strict";functioni(e,n){vart=this.$parent;while(t)if(t.$options.name!==e)t=t.$parent;else{vari=function(){vare={};if(Array.isArray(n))n.map((function(n){e[n]=t[n]?t[n]:""}));elsefor(variinn)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"===typeofi)returni.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=void0;vari=r(t("66fd")),o=r(t("2f62")),d=r(t("39ce")),a=t("aa63");r(t("ff85"));functionr(e){returne&&e.__esModule?e:{default:e}}i.default.use(o.default);varc=!1,s="login_status",u=newo.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;vari=n.commit;e.getLocation({type:"gcj02",success:function(e){console.log(e),i("setLocation",{longitude:e.longitude,latitude:e.latitude})}})},userInfo:function(n,t){vari=n.state,o=n.commit;returnnull===i.userInfo||t?newPromise((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){vart=n.state,i=n.commit;returnt.token?newPromise((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;vari=e.commit;i("login",n,t)},setUserInfo:function(e,n){e.state;vart=e.commit;t("updateUserInfo",n)},changeAuthorizationPage:function(e,n){e.state;vart=e.commit;t("updateAuthorizationPage",n)},changeAuthorization:function(e,n){e.state;vart=e.commit;t("updateAuthorization",n)}},getters:{isAuthorizationPage:function(e){returne.isAuthorizationPage},isAuthorization:function(e){returne.isAuthorization},token:function(e){returne.token},isLogin:function(e){return!!e.token},userInfo:function(e){returne.userInfo||{}},location:function(e){returne.location},storeItems:function(e){returne.storeItems},goName:function(e){returne.goName},$deviceType:function(e){returne.$deviceType}},strict:c}),l=u;n.default=l}).call(this,t("543d")["default"])},"0784":function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void0;vari=o(t("a34a"));functiono(e){returne&&e.__esModule?e:{default:e}}functiond(e,n,t,i,o,d,a){try{varr=e[d](a),c=r.value}catch(s){returnvoidt(s)}r.done?n(c):Promise.resolve(c).then(i,o)}functiona(e){returnfunction(){varn=this,t=arguments;returnnewPromise((function(i,o){vara=e.apply(n,t);functionr(e){d(a,i,o,r,c,"next",e)}functionc(e){d(a,i,o,r,c,"throw",e)}r(void0)}))}}functionr(e,n){if(!(einstanceofn))thrownewTypeError("Cannot call a class as a function")}functionc(e,n){for(vart=0;t<n.length;t++){vari=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"ini&&(i.writ