(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(e,t,n){e.exports=n("56d7")},1:function(e,t){},4360:function(e,t,n){"use strict";var a=n("8bbf"),o=n.n(a),s=n("5880"),i=n.n(s);const r={};var l=r;const c={},d={},u={};var m={namespaced:!0,state:c,mutations:d,actions:u},p=(n("a18c"),{state:{userInfo:null,token:null},getters:{userInfo:e=>{if(null==e.userInfo){let t=sessionStorage.getItem("user");if(null!=t)e.userInfo=t;else{let t=localStorage.getItem("user");null!=t&&(e.userInfo=JSON.parse(t))}}return e.userInfo},token:e=>{if(null==e.token){let t=sessionStorage.getItem("token");if(null!=t)return e.token=t,t;{let t=localStorage.getItem("token");return e.token=t,t}}return e.token}},mutations:{setToken(e,t,n=!0){e.token=t,n?localStorage.setItem("token",t):sessionStorage.setItem("token",t)},setUserInfo(e,t,n=!0){console.log(t,"Userinfo"),e.userInfo=t,e.token=t.token.token,n?localStorage.setItem("user",JSON.stringify(t)):sessionStorage.setItem("user",JSON.stringify(t)),console.log(t,"state"),this.commit("setToken",t.token.token,n)},logout(e){e.userInfo=null,e.token=null,console.log("Logout"),localStorage.removeItem("token"),localStorage.removeItem("user"),sessionStorage.removeItem("token"),sessionStorage.removeItem("user")},SET_TOKEN:(e,t)=>{e.token=t}},actions:{setUserInfo({commit:e},t){return new Promise(n=>{e("setToken",t.token.token),e("setUserInfo",t),n()})},FedLogOut({commit:e}){return new Promise(t=>{e("setToken",""),t()})}}}),h=n("8d49"),f={state:{cards:null,init_status:!1,orderCards:null,orderNowCards:!1},getters:{cards:e=>{if(null==e.cards){let t=sessionStorage.getItem("cards");if(null!=t)e.cards=JSON.parse(t);else{let t=localStorage.getItem("cards");null!=t&&(e.cards=JSON.parse(t))}}return e.cards},orderCards:e=>{if(null==e.cards){let t=sessionStorage.getItem("orderCards");if(null!=t)e.cards=JSON.parse(t);else{let t=localStorage.getItem("orderCards");null!=t&&(e.cards=JSON.parse(t))}}return e.orderCards},orderNowCards:e=>{if(null==e.orderNowCards){let t=sessionStorage.getItem("orderNowCards");if(null!=t)e.orderNowCards=JSON.parse(t);else{let t=localStorage.getItem("orderNowCards");null!=t&&(e.orderNowCards=JSON.parse(t))}}return e.orderNowCards},count:e=>(console.log(e.cards,"mead"),null==e.cards?0:e.cards.length)},mutations:{addCard(e,t,n=!0){let a=e.cards,o=!1;a.map((e,n)=>{e.id==t.id&&(a[n]=t,o=!0)}),o||a.push(t),e.cards=a,n?localStorage.setItem("cards",JSON.stringify(e.cards)):sessionStorage.setItem("cards",JSON.stringify(e.cards))},saveOrderCards(e,t,n=!0){e.orderCards=t,n?localStorage.setItem("orderCards",JSON.stringify(e.cards)):sessionStorage.setItem("orderCards",JSON.stringify(e.cards))},saveNowOrderCards(e,t,n=!0){e.orderNowCards=t,n?localStorage.setItem("orderNowCards",JSON.stringify(e.orderNowCards)):sessionStorage.setItem("orderNowCards",JSON.stringify(e.orderNowCards))},remoteCard(e,t,n=!0){let a=e.cards;a.splice(t,1),e.cards=a,n?localStorage.setItem("cards",JSON.stringify(e.cards)):sessionStorage.setItem("cards",JSON.stringify(e.cards))},init(e,t=!1,n=!0){!t&&e.init_status||Object(h["d"])().then(t=>{e.cards=t.data,n?localStorage.setItem("cards",JSON.stringify(e.cards)):sessionStorage.setItem("cards",JSON.stringify(e.cards)),e.init_status=!1})}},actions:{}},g=n("e04f"),b=n.n(g);n("eea1");const k="Login_Status",v="Login_Wechat_Code",S="login_pid",A="share_id";function w(e,t,n){return b.a.set(e,t,n),t}function H(e,t){return b.a.get(e)||t}var I={state:{loginStatus:Number(H(k,0)),loginCode:null,pid:0,good:0},getters:{loginStatus:e=>(e.loginStatus=Number(H(k,0)),e.loginStatus),loginCode:e=>(e.loginCode=H(v,null),e.loginCode),loginPid:e=>(e.pid=Number(H(S,0)),e.pid),shareId:e=>(e.good=Number(H(A,0)),e.good)},mutations:{setLoginStatus(e,t){e.loginStatus=t},setShareId(e,t){w(A,t),e.good=t},setLoginCode(e,t){w(v,t),e.loginCode=t},setLoginPid(e,t){w(S,t),e.pid=t}},actions:{setLoginStatus({commit:e},t){e("setLoginStatus",w(k,t,{expires:7}))},setLoginCode({commit:e},t){e("setLoginCode",w(v,t))},setLoginPid({commit:e},t){e("setLoginPid",w(S,t))},setShareId({commit:e},t){e("setShareId",w(A,t))}}};o.a.use(i.a);const C=new i.a.Store({modules:{app:m,user:p,card:f,status:I},getters:l});t["a"]=C},"56d7":function(e,t,n){"use strict";n.r(t);var a={};n.r(a),n.d(a,"formatDate",(function(){return Ae})),n.d(a,"hidePhone",(function(){return He}));n("af35");var o=n("86ce"),s=(n("5c24"),n("d4e4")),i=(n("7bb0"),n("d863")),r=(n("8368"),n("97f4")),l=(n("463a"),n("1996")),c=(n("dcc4"),n("eefa")),d=(n("76b2"),n("3991")),u=(n("b251"),n("c218")),m=(n("018f"),n("c7e1")),p=(n("d87d"),n("5afd")),h=(n("2333"),n("9ff3")),f=(n("77f0"),n("1dca")),g=(n("0f0b"),n("ba3a")),b=(n("1e24"),n("fa21")),k=(n("d365"),n("9ef9")),v=(n("08a1"),n("a57d")),S=(n("aead"),n("b6b9")),A=(n("8cf6"),n("8bdc")),w=(n("60c4"),n("2a74")),H=(n("120d"),n("94fc")),I=(n("3bea"),n("c1be")),C=(n("f04e"),n("3772")),y=(n("0485"),n("d4b5")),N=(n("745e"),n("d625")),_=(n("5174"),n("fdfd")),O=(n("12c1"),n("aad1")),x=(n("c750"),n("6167")),L=(n("997c"),n("9e62")),P=(n("c166"),n("e20d")),J=(n("b2a3"),n("0e08")),$=(n("e039"),n("f425")),j=(n("4c23"),n("3f6d")),E=(n("b8dc"),n("783d")),q=(n("be9f"),n("4e60")),U=(n("ef2a"),n("6d4f")),D=(n("d46f"),n("b797")),R=(n("cc30"),n("348d")),T=(n("db63"),n("1ee8")),M=(n("41fe"),n("d992")),B=(n("281b"),n("a40c")),Y=(n("ea43"),n("5b2f")),F=(n("4924"),n("27d3")),W=(n("510b"),n("5372")),G=(n("1a85"),n("3617")),V=(n("ecd8"),n("2c7b")),z=(n("3f70"),n("0e28")),K=(n("ce6a"),n("2b39")),Q=(n("13de"),n("f3c5")),X=n("8bbf"),Z=n.n(X),ee=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"app"}},[t("keep-alive",{attrs:{include:e.arr}},[t("router-view")],1)],1)},te=[],ne={name:"App",data(){return{arr:["Index","List"]}},watch:{$route:function(e,t){if(t.meta.keepAlive)this.arr.includes(t.name)||this.arr.push(t.name);else{var n=t.name;if(this.arr.includes(n)){var a=this.arr.findIndex((function(e){return e===n}));this.arr.splice(a,1)}}if(e)switch(e.name){case"Index":case"List":this.arr.includes(e.name)||this.arr.push(e.name);break;default:break}console.log(`从${t.name}去${e.name},缓存页面有: ${this.arr}`)}}},ae=ne,oe=n("e607"),se=Object(oe["a"])(ae,ee,te,!1,null,null,null),ie=se.exports,re=n("a18c"),le=n("4360"),ce=(n("9536"),n("0123"),n("e2d6")),de=(n("ef47"),n("9bf9"));Z.a.use(r["a"]),Z.a.use(z["a"]),Z.a.use(j["a"]),Z.a.use(B["a"]).use(M["a"]),Z.a.use(de["a"]),Z.a.use(i["a"]),Z.a.use(D["a"]).use(R["a"]),Z.a.use(ce["a"]);n("9e47");function ue(e){return decodeURIComponent((new RegExp("[?|&]"+e+"=([^&;]+?)(&|#|;|$)").exec(location.href)||[,""])[1].replace(/\+/g,"%20"))||null}var me={getUrlKey:ue},pe=(n("418e"),n("44ce"),n("34d3")),he=n.n(pe);const fe=["snsapi_base","snsapi_userinfo"];class ge{constructor(){this.appid="wx64edccf0a6405738",this.redirect_uri=null,this.scope=fe[0],this._code=null,this._redirect_uri=null}install(e,t){const n=this;this.setAppId(t.appid),e.mixin({created:function(){this.$wechatAuth=n}})}static makeState(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)}setAppId(e){this.appid=e}set redirect_uri(e){this._redirect_uri=encodeURIComponent(e)}get redirect_uri(){return this._redirect_uri}get state(){return localStorage.getItem("wechat_auth:state")}set state(e){localStorage.setItem("wechat_auth:state",e)}get authUrl(){if(null===this.appid)throw"appid must not be null";if(null===this.redirect_uri)throw"redirect uri must not be null";return this.state=ge.makeState(),`https://open.weixin.qq.com/connect/oauth2/authorize?appid=${this.appid}&redirect_uri=${this.redirect_uri}&response_type=code&scope=${this.scope}&state=${this.state}#wechat_redirect`}returnFromWechat(e){console.log("mead===>1");const t=he.a.parse(e.split("?")[1]);if(null===this.state)throw"You did't set state";if(t.state!==this.state)throw this.state=null,"Wrong state: "+t.state;this.state=null,this._code=t.code}get code(){if(null===this._code)throw"Not get the code from wechat server!";const e=this._code;return this._code=null,e}}const be=new ge;var ke=be;Z.a.use(ke,{appid:"wx64edccf0a6405738"});let ve="production";function Se(){const e=window.location.href,t=he.a.parse(e.split("?")[1]);let n=e;if(t.code&&t.state){delete t.code,delete t.state;const a=he.a.stringify(t);n=a.length?`${e.split("?")[0]}?${a}`:""+e.split("?")[0]}return n}function Ae(e,t){if(void 0===e)return;const n=new Date(e);/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(n.getFullYear()+"").substr(4-RegExp.$1.length)));const a={"M+":n.getMonth()+1,"d+":n.getDate(),"h+":n.getHours(),"m+":n.getMinutes(),"s+":n.getSeconds()};for(const o in a)if(new RegExp(`(${o})`).test(t)){const e=a[o]+"";t=t.replace(RegExp.$1,1===RegExp.$1.length?e:we(e))}return t}function we(e){return("00"+e).substr(e.length)}function He(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}"production"==ve&&re["a"].beforeEach(async(e,t,n)=>{let a=e.query.pid||0,o=e.query.is_share||0;console.log(t,"from"),console.log(e,"to"),a&&await le["a"].dispatch("setLoginPid",a),o&&await le["a"].dispatch("setShareId",e.query.id||0);const s=le["a"].getters.loginStatus;switch(console.log(s,"loginStatus"),s){case 0:ke.redirect_uri=Se(),await le["a"].dispatch("setLoginStatus",1),window.location.href=ke.authUrl;break;case 1:try{console.log(e.fullPath,"to.fullPath"),ke.returnFromWechat(e.fullPath),console.log(ke,"MEAD"),await le["a"].dispatch("setLoginCode",ke.code),await le["a"].dispatch("setLoginStatus",2),n()}catch(i){await le["a"].dispatch("setLoginStatus",0),window.location.reload()}break;case 2:n();break;default:break}}),re["a"].beforeEach(async(e,t,n)=>{const a=le["a"].getters.token;if(e.matched.some(e=>e.meta.requireAuth||e.meta.homePages))n();else if(a)if(console.log("123456789456"),0===Object.keys(t.query).length)n();else{let a=t.query.redirect;e.path===a?n():n({path:a})}else console.log("123456"),"/login"===e.path?n():n({path:"/login",query:{redirect:e.fullPath}})}),re["a"].afterEach(()=>{}),Object.keys(a).forEach(e=>Z.a.filter(e,a[e])),Z.a.prototype.$formatDate=Z.a.filter("formatDate"),Z.a.prototype.$hidePhone=Z.a.filter("hidePhone"),Z.a.use(r["a"]).use(l["a"]).use(c["a"]).use(d["a"]).use(u["a"]).use(m["a"]).use(p["a"]).use(h["a"]).use(f["a"]).use(g["a"]).use(b["a"]).use(k["a"]).use(v["a"]).use(S["a"]).use(A["a"]).use(w["a"]).use(H["a"]).use(I["a"]).use(C["a"]).use(y["a"]).use(N["a"]).use(_["a"]).use(O["a"]).use(x["a"]).use(L["a"]).use(P["a"]).use(J["a"]).use($["a"]).use(j["a"]).use(E["a"]).use(q["a"]).use(U["a"]).use(D["a"]).use(R["a"]).use(T["a"]).use(M["a"]).use(B["a"]).use(Y["a"]).use(F["a"]).use(W["a"]).use(G["a"]).use(V["a"]).use(z["a"]).use(K["a"]).use(Q["a"]),Z.a.config.productionTip=!1,Z.a.prototype.$utils=me,Z.a.use(u["a"]),Z.a.use(i["a"]),Z.a.use(s["a"]),Z.a.use(o["a"]),new Z.a({el:"#app",router:re["a"],store:le["a"],render:e=>e(ie)})},5880:function(e,t){e.exports=Vuex},6389:function(e,t){e.exports=VueRouter},"8bbf":function(e,t){e.exports=Vue},"8d49":function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return c}));var a=n("34d3"),o=n.n(a),s=n("b775");function i(e){return Object(s["a"])({url:"personal/shopcar",method:"post",data:o.a.stringify(e),hideloading:!0})}function r(e){return Object(s["a"])({url:"personal/nowBuy",method:"post",data:o.a.stringify(e),hideloading:!0})}function l(e){return Object(s["a"])({url:"personal/shopcar_add",method:"post",data:o.a.stringify(e),hideloading:!0})}function c(e){let t={ids:e};return Object(s["a"])({url:"personal/shopcar_del",method:"post",data:o.a.stringify(t),hideloading:!0})}},9536:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409eff",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"5.6rem"}},a18c:function(e,t,n){"use strict";var a=n("8bbf"),o=n.n(a),s=n("6389"),i=n.n(s);const r=()=>n.e("Home").then(n.bind(null,"dd7b")),l=()=>n.e("Home").then(n.bind(null,"7abe")),c=()=>n.e("Home").then(n.bind(null,"e943")),d=()=>n.e("Home").then(n.bind(null,"a192")),u=()=>n.e("Home").then(n.bind(null,"6005")),m=()=>n.e("Home").then(n.bind(null,"8822")),p=()=>n.e("Home").then(n.bind(null,"4227")),h=()=>n.e("Home").then(n.bind(null,"4399")),f=()=>n.e("Home").then(n.bind(null,"428e")),g=()=>n.e("Home").then(n.bind(null,"a85a")),b=()=>n.e("Home").then(n.bind(null,"b43d")),k=()=>n.e("Home").then(n.bind(null,"faa1")),v=()=>n.e("Home").then(n.bind(null,"f9ef")),S=()=>n.e("Home").then(n.bind(null,"c1c6")),A=()=>n.e("Home").then(n.bind(null,"8cff")),w=()=>n.e("Home").then(n.bind(null,"b522")),H=()=>n.e("Home").then(n.bind(null,"9a6a")),I=()=>n.e("Home").then(n.bind(null,"7c64")),C=()=>n.e("Home").then(n.bind(null,"faab")),y=()=>n.e("Home").then(n.bind(null,"3b8a")),N=()=>n.e("Home").then(n.bind(null,"d79c")),_=()=>n.e("Home").then(n.bind(null,"8248")),O=()=>n.e("Home").then(n.bind(null,"0bad")),x=()=>n.e("Home").then(n.bind(null,"e669")),L=()=>n.e("Home").then(n.bind(null,"e4b7")),P=()=>n.e("Home").then(n.bind(null,"b9de")),J=()=>n.e("Home").then(n.bind(null,"18ac")),$=()=>n.e("Home").then(n.bind(null,"052d")),j=()=>n.e("Home").then(n.bind(null,"653b")),E=()=>n.e("Home").then(n.bind(null,"6d2b")),q=()=>n.e("Home").then(n.bind(null,"efdc")),U=()=>n.e("Home").then(n.bind(null,"cab6")),D=()=>n.e("Home").then(n.bind(null,"50ac")),R=()=>n.e("Home").then(n.bind(null,"c3fc")),T=()=>n.e("Home").then(n.bind(null,"e3c1")),M=()=>n.e("Home").then(n.bind(null,"800c")),B=()=>n.e("Home").then(n.bind(null,"9336")),Y=()=>n.e("Home").then(n.bind(null,"cb856")),F=()=>n.e("Home").then(n.bind(null,"808f")),W=()=>n.e("Home").then(n.bind(null,"fde5")),G=()=>n.e("Home").then(n.bind(null,"ac11")),V=()=>n.e("Home").then(n.bind(null,"5aa2")),z=()=>n.e("Home").then(n.bind(null,"1437")),K=()=>n.e("Home").then(n.bind(null,"4440")),Q=()=>n.e("Home").then(n.bind(null,"f912")),X=()=>n.e("Home").then(n.bind(null,"6649")),Z=()=>n.e("Home").then(n.bind(null,"6f92")),ee=()=>n.e("Home").then(n.bind(null,"8248")),te=()=>n.e("Home").then(n.bind(null,"3f82")),ne=()=>n.e("Home").then(n.bind(null,"00d0")),ae=()=>n.e("Home").then(n.bind(null,"63b6")),oe=()=>n.e("Home").then(n.bind(null,"892c")),se=()=>n.e("Home").then(n.bind(null,"7b75")),ie=()=>n.e("Home").then(n.bind(null,"eb98"));o.a.use(i.a);const re=new i.a({mode:"history",base:"",routes:[{path:"/oil",name:"oil",component:se,meta:{title:"加油",keepAlive:!1}},{path:"/oilList",name:"oilList",component:ie,meta:{title:"充值记录",keepAlive:!1}},{path:"/retrunGoodLogistics",name:"retrunGoodLogistics",component:oe,meta:{title:"退货",keepAlive:!1}},{path:"/mobile",name:"mobile",component:W,meta:{title:"修改手机号",keepAlive:!1}},{path:"/manage",name:"manage",component:R,meta:{title:"管理奖",keepAlive:!1}},{path:"/shouCang",name:"shouCang",component:A,meta:{title:"我的收藏",keepAlive:!1}},{path:"/pSuccess",name:"pSuccess",component:N,meta:{title:"支付结果",keepAlive:!1}},{path:"/orderShouYiDetail",name:"orderShouYiDetail",component:b,meta:{title:"支付结果",keepAlive:!1}},{path:"/vip",name:"vip",component:G,meta:{title:"vip",keepAlive:!1}},{path:"/afterSalesList",name:"afterSalesList",component:ae,meta:{title:"售后",keepAlive:!1}},{path:"/goods",name:"goods",component:S,meta:{title:"商品列表",keepAlive:!1}},{path:"/tixian",name:"tixian",component:z,meta:{title:"提现",keepAlive:!1}},{path:"/afterSales",name:"afterSales",component:ne,meta:{title:"申请售后",keepAlive:!1}},{path:"/appraise",name:"appraise",component:te,meta:{title:"待评价",keepAlive:!1}},{path:"/returnGood",name:"returnGood",component:ee,meta:{title:"申请售后",keepAlive:!1}},{path:"/logistics",name:"logistics",component:Z,meta:{title:"物流",keepAlive:!1}},{path:"/search",name:"search",component:c,meta:{title:"搜索",keepAlive:!1}},{path:"/xieyi",name:"xieyi",component:B,meta:{title:"协议",keepAlive:!1,requireAuth:!0}},{path:"/verification",name:"verification",component:K,meta:{title:"核销订单",keepAlive:!1}},{path:"/recommend",name:"recommend",component:Y,meta:{title:"推荐人",keepAlive:!1}},{path:"/shouYi",name:"shouYi",component:M,meta:{title:"编辑银行卡",keepAlive:!1}},{path:"/directPush",name:"directPush",component:T,meta:{title:"编辑银行卡",keepAlive:!1}},{path:"/EditBank",name:"EditBank",component:X,meta:{title:"编辑发票",keepAlive:!1}},{path:"/bank",name:"bank",component:Q,meta:{title:"银行卡",keepAlive:!1}},{path:"/refund",name:"refund",component:V,meta:{title:"保证金",keepAlive:!1}},{path:"/code",name:"code",component:F,meta:{title:"体现明细",keepAlive:!1}},{path:"/reflect",name:"reflect",component:U,meta:{title:"体现明细",keepAlive:!1}},{path:"/jifen",name:"Jifen",component:D,meta:{title:"积分明细",keepAlive:!1}},{path:"/customer",name:"customer",component:q,meta:{title:"我的客户",keepAlive:!1}},{path:"/gPInfo",name:"gPInfo",component:E,meta:{title:"合伙人详情",keepAlive:!1}},{path:"/progress",name:"progress",component:j,meta:{title:"申请结果",keepAlive:!1}},{path:"/step23",name:"step23",component:$,meta:{title:"上传照片",keepAlive:!1}},{path:"/step1",name:"step1",component:L,meta:{title:"申请城市合伙人",keepAlive:!1}},{path:"/step10",name:"step10",component:J,meta:{title:"升级代理商",keepAlive:!1}},{path:"/step11",name:"step11",component:P,meta:{title:"申请代理商",keepAlive:!1}},{path:"/partner",name:"partner",component:x,meta:{title:"申请合伙人",keepAlive:!1}},{path:"/shops",name:"shops",component:O,meta:{title:"门店",keepAlive:!1}},{path:"/refundOrder",name:"refundOrder",component:_,meta:{title:"申请售后",keepAlive:!1}},{path:"/success",name:"success",component:y,meta:{title:"订单结果",keepAlive:!1}},{path:"/new",name:"new",component:C,meta:{title:"新闻详情",keepAlive:!1}},{path:"/news",name:"news",component:I,meta:{title:"新闻公告",keepAlive:!1}},{path:"/userinfo",name:"userinfo",component:p,meta:{title:"个人信息",keepAlive:!1}},{path:"/orderDetail",name:"orderDetail",component:g,meta:{title:"订单详情",keepAlive:!1}},{path:"/orders",name:"orders",component:f,meta:{title:"订单列表",keepAlive:!1}},{path:"/editInvoice",name:"editInvoice",component:H,meta:{title:"编辑发票",keepAlive:!1}},{path:"/invoice",name:"invoice",component:w,meta:{title:"发票",keepAlive:!1}},{path:"/good",name:"good",component:v,meta:{title:"商品详情",keepAlive:!1}},{path:"/address",name:"address",component:k,meta:{title:"收货地址",keepAlive:!1}},{path:"/order",name:"order",component:h,meta:{title:"订单",keepAlive:!1}},{path:"/",component:l,meta:{title:"首页",keepAlive:!1}},{path:"/login",name:"login",component:r,meta:{title:"登录",requireAuth:!0}},{path:"/home",name:"home",component:l,meta:{title:"首页",keepAlive:!1}},{path:"/category",name:"category",component:d,meta:{title:"分类",keepAlive:!1}},{path:"/shopping",name:"shopping",component:u,meta:{title:"购物车",keepAlive:!1}},{path:"/me",name:"me",component:m,meta:{title:"购物车",keepAlive:!1}}]});t["a"]=re},b775:function(e,t,n){"use strict";n("7bb0");var a=n("d863"),o=n("cebe"),s=n.n(o),i=n("4360"),r=n("f121");const l=s.a.create({baseURL:r["baseApi"],withCredentials:!0,timeout:5e3});l.interceptors.request.use(e=>(e.hideloading||a["a"].loading({forbidClick:!0}),i["a"].getters.token&&(e.headers["Authorization"]="Bearer "+i["a"].getters.token),e),e=>(console.log(e),Promise.reject(e))),l.interceptors.response.use(e=>{a["a"].clear();const t=e.data;if(t.code&&2e3!==t.code){switch(t.code){case 5003:case 5002:case 5001:case 9e3:i["a"].dispatch("FedLogOut"),i["a"].dispatch("setLoginCode",null),i["a"].dispatch("setLoginStatus",0),location.reload();break;default:9e3!=t.code&&Object(a["a"])(t.msg)}return Promise.reject(t||"error")}return Promise.resolve(t)},e=>(a["a"].clear(),console.log("err"+e),Promise.reject(e))),t["a"]=l},cebe:function(e,t){e.exports=axios},f121:function(e,t,n){const a=n("f1e0");e.exports=a},f1e0:function(e,t){e.exports={title:"jiean",baseUrl:"http://h5.jiean91.cn/",baseApi:"http://admin.jiean91.cn/api"}}},[[0,"runtime","chunk-libs"]]]);