1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(e,t,n){e.exports=n("56d7")},4360:function(e,t,n){"use strict";var a=n("8bbf"),o=n.n(a),r=n("5880"),i=n.n(r),u={},s=u,c={},l={},d={},m={namespaced:!0,state:c,mutations:l,actions:d},p=(n("a18c"),{state:{userInfo:null,token:null},getters:{userInfo:function(e){if(null==e.userInfo){var t=sessionStorage.getItem("user");if(null!=t)e.userInfo=t;else{var n=localStorage.getItem("user");null!=n&&(e.userInfo=JSON.parse(n))}}return e.userInfo},token:function(e){if(null==e.token){var t=sessionStorage.getItem("token");if(null!=t)return e.token=t,t;var n=localStorage.getItem("token");return e.token=n,n}return e.token}},mutations:{setToken:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];e.token=t,n?localStorage.setItem("token",t):sessionStorage.setItem("token",t)},setUserInfo:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];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:function(e){e.userInfo=null,e.token=null,console.log("Logout"),localStorage.removeItem("token"),localStorage.removeItem("user"),sessionStorage.removeItem("token"),sessionStorage.removeItem("user")},SET_TOKEN:function(e,t){e.token=t}},actions:{setUserInfo:function(e,t){var n=e.commit;return new Promise((function(e){n("setToken",t.token.token),n("setUserInfo",t),e()}))},FedLogOut:function(e){var t=e.commit;return new Promise((function(e){t("setToken",""),e()}))}}}),f=n("8d49"),h={state:{cards:null,init_status:!1,orderCards:null,orderNowCards:!1},getters:{cards:function(e){if(null==e.cards){var t=sessionStorage.getItem("cards");if(null!=t)e.cards=JSON.parse(t);else{var n=localStorage.getItem("cards");null!=n&&(e.cards=JSON.parse(n))}}return e.cards},orderCards:function(e){if(null==e.cards){var t=sessionStorage.getItem("orderCards");if(null!=t)e.cards=JSON.parse(t);else{var n=localStorage.getItem("orderCards");null!=n&&(e.cards=JSON.parse(n))}}return e.orderCards},orderNowCards:function(e){if(null==e.orderNowCards){var t=sessionStorage.getItem("orderNowCards");if(null!=t)e.orderNowCards=JSON.parse(t);else{var n=localStorage.getItem("orderNowCards");null!=n&&(e.orderNowCards=JSON.parse(n))}}return e.orderNowCards},count:function(e){return console.log(e.cards,"mead"),null==e.cards?0:e.cards.length}},mutations:{addCard:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=e.cards,o=!1;a.map((function(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:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];e.orderCards=t,n?localStorage.setItem("orderCards",JSON.stringify(e.cards)):sessionStorage.setItem("orderCards",JSON.stringify(e.cards))},saveNowOrderCards:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];e.orderNowCards=t,n?localStorage.setItem("orderNowCards",JSON.stringify(e.orderNowCards)):sessionStorage.setItem("orderNowCards",JSON.stringify(e.orderNowCards))},remoteCard:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],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:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];!t&&e.init_status||Object(f["d"])().then((function(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("a78e"),b=n.n(g),v=(n("335a"),"Login_Status"),k="Login_Wechat_Code",S="login_pid",w="share_id";function A(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(v,0)),loginCode:null,pid:0,good:0},getters:{loginStatus:function(e){return e.loginStatus=Number(H(v,0)),e.loginStatus},loginCode:function(e){return e.loginCode=H(k,null),e.loginCode},loginPid:function(e){return e.pid=Number(H(S,0)),e.pid},shareId:function(e){return e.good=Number(H(w,0)),e.good}},mutations:{setLoginStatus:function(e,t){e.loginStatus=t},setShareId:function(e,t){A(w,t),e.good=t},setLoginCode:function(e,t){A(k,t),e.loginCode=t},setLoginPid:function(e,t){A(S,t),e.pid=t}},actions:{setLoginStatus:function(e,t){var n=e.commit;n("setLoginStatus",A(v,t,{expires:7}))},setLoginCode:function(e,t){var n=e.commit;n("setLoginCode",A(k,t))},setLoginPid:function(e,t){var n=e.commit;n("setLoginPid",A(S,t))},setShareId:function(e,t){var n=e.commit;n("setShareId",A(w,t))}}};o.a.use(i.a);var y=new i.a.Store({modules:{app:m,user:p,card:h,status:I},getters:s});t["a"]=y},"56d7":function(e,t,n){"use strict";n.r(t);var a={};n.r(a),n.d(a,"formatDate",(function(){return Ne})),n.d(a,"hidePhone",(function(){return _e}));n("9a83");var o=n("f564"),r=(n("e17f"),n("2241")),i=(n("e7e5"),n("d399")),u=(n("66b9"),n("b650")),s=(n("1075"),n("f600")),c=(n("e415"),n("2b5e")),l=(n("2cbd"),n("ab2c")),d=(n("66cf"),n("343b")),m=(n("1f87"),n("510b")),p=(n("77f8"),n("dc0f")),f=(n("5fe4"),n("8ad4")),h=(n("e930"),n("8f80")),g=(n("a44c"),n("e27c")),b=(n("4ddd"),n("9f14")),v=(n("869a"),n("6869")),k=(n("acb7"),n("67bb")),S=(n("f06a"),n("20fb")),w=(n("91d5"),n("f0ca")),A=(n("3c32"),n("417e")),H=(n("be39"),n("efa0")),I=(n("9cb7"),n("66fd")),y=(n("afd4"),n("ca19")),x=(n("61ae"),n("d314")),C=(n("09d3"),n("2d6d")),N=(n("4142"),n("39d1")),O=(n("ef6f"),n("82a8")),_=(n("93ac"),n("bb33")),L=(n("591c"),n("7713")),P=(n("bda7"),n("5e46")),J=(n("da3c"),n("0b33")),j=(n("5f1a"),n("a3e2")),E=(n("2994"),n("2bdd")),$=(n("480b"),n("a37c")),q=(n("3df5"),n("2830")),T=(n("0ec5"),n("21ab")),U=(n("7844"),n("5596")),D=(n("4b0a"),n("2bb1")),R=(n("5852"),n("d961")),M=(n("a52c"),n("2ed4")),B=(n("537a"),n("ac28")),F=(n("5246"),n("6b41")),Y=(n("38d5"),n("772a")),W=(n("be7f"),n("565f")),G=(n("4056"),n("44bf")),V=(n("c3a6"),n("ad06")),z=(n("c194"),n("7744")),K=(n("0653"),n("34e9")),Q=(n("f1dc"),n("6e47")),X=n("8bbf"),Z=n.n(X),ee=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("keep-alive",{attrs:{include:e.arr}},[n("router-view")],1)],1)},te=[],ne={name:"App",data:function(){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("从".concat(t.name,"去").concat(e.name,",缓存页面有: ").concat(this.arr))}}},ae=ne,oe=n("2877"),re=Object(oe["a"])(ae,ee,te,!1,null,null,null),ie=re.exports,ue=n("a18c"),se=n("4360"),ce=(n("9536"),n("ac1e"),n("543e")),le=(n("8a58"),n("e41f"));Z.a.use(u["a"]),Z.a.use(z["a"]),Z.a.use(E["a"]),Z.a.use(B["a"]).use(M["a"]),Z.a.use(le["a"]),Z.a.use(i["a"]),Z.a.use(U["a"]).use(D["a"]),Z.a.use(ce["a"]);n("833e");function de(e){return decodeURIComponent((new RegExp("[?|&]"+e+"=([^&;]+?)(&|#|;|$)").exec(location.href)||[,""])[1].replace(/\+/g,"%20"))||null}var me={getUrlKey:de},pe=(n("e792"),n("499a"),n("a34a")),fe=n.n(pe),he=n("4328"),ge=n.n(he);function be(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ve(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function ke(e,t,n){return t&&ve(e.prototype,t),n&&ve(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Se=["snsapi_base","snsapi_userinfo"],we=function(){function e(){be(this,e),this.appid="wx64edccf0a6405738",this.redirect_uri=null,this.scope=Se[0],this._code=null,this._redirect_uri=null}return ke(e,[{key:"install",value:function(e,t){var n=this;this.setAppId(t.appid),e.mixin({created:function(){this.$wechatAuth=n}})}},{key:"setAppId",value:function(e){this.appid=e}},{key:"redirect_uri",get:function(){return this._redirect_uri},set:function(e){this._redirect_uri=encodeURIComponent(e)}},{key:"state",get:function(){return localStorage.getItem("wechat_auth:state")},set:function(e){localStorage.setItem("wechat_auth:state",e)}},{key:"authUrl",get:function(){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=e.makeState(),"https://open.weixin.qq.com/connect/oauth2/authorize?appid=".concat(this.appid,"&redirect_uri=").concat(this.redirect_uri,"&response_type=code&scope=").concat(this.scope,"&state=").concat(this.state,"#wechat_redirect")}},{key:"returnFromWechat",value:function(e){console.log("mead===>1");var t=ge.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: ".concat(t.state);this.state=null,this._code=t.code}},{key:"code",get:function(){if(null===this._code)throw"Not get the code from wechat server!";var e=this._code;return this._code=null,e}}],[{key:"makeState",value:function(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)}}]),e}(),Ae=new we,He=Ae;function Ie(e,t,n,a,o,r,i){try{var u=e[r](i),s=u.value}catch(c){return void n(c)}u.done?t(s):Promise.resolve(s).then(a,o)}function ye(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var r=e.apply(t,n);function i(e){Ie(r,a,o,i,u,"next",e)}function u(e){Ie(r,a,o,i,u,"throw",e)}i(void 0)}))}}Z.a.use(He,{appid:"wx64edccf0a6405738"});var xe="production";function Ce(){var e=window.location.href,t=ge.a.parse(e.split("?")[1]),n=e;if(t.code&&t.state){delete t.code,delete t.state;var a=ge.a.stringify(t);n=a.length?"".concat(e.split("?")[0],"?").concat(a):"".concat(e.split("?")[0])}return n}function Ne(e,t){if(void 0!==e){var n=new Date(e);/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(n.getFullYear()+"").substr(4-RegExp.$1.length)));var a={"M+":n.getMonth()+1,"d+":n.getDate(),"h+":n.getHours(),"m+":n.getMinutes(),"s+":n.getSeconds()};for(var o in a)if(new RegExp("(".concat(o,")")).test(t)){var r=a[o]+"";t=t.replace(RegExp.$1,1===RegExp.$1.length?r:Oe(r))}return t}}function Oe(e){return("00"+e).substr(e.length)}function _e(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}"production"==xe&&ue["a"].beforeEach(function(){var e=ye(fe.a.mark((function e(t,n,a){var o,r,i;return fe.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(o=t.query.pid||0,r=t.query.is_share||0,console.log(n,"from"),console.log(t,"to"),!o){e.next=7;break}return e.next=7,se["a"].dispatch("setLoginPid",o);case 7:if(!r){e.next=10;break}return e.next=10,se["a"].dispatch("setShareId",t.query.id||0);case 10:i=se["a"].getters.loginStatus,console.log(i,"loginStatus"),e.t0=i,e.next=0===e.t0?15:1===e.t0?20:2===e.t0?37:39;break;case 15:return He.redirect_uri=Ce(),e.next=18,se["a"].dispatch("setLoginStatus",1);case 18:return window.location.href=He.authUrl,e.abrupt("break",40);case 20:return e.prev=20,console.log(t.fullPath,"to.fullPath"),He.returnFromWechat(t.fullPath),console.log(He,"MEAD"),e.next=26,se["a"].dispatch("setLoginCode",He.code);case 26:return e.next=28,se["a"].dispatch("setLoginStatus",2);case 28:a(),e.next=36;break;case 31:return e.prev=31,e.t1=e["catch"](20),e.next=35,se["a"].dispatch("setLoginStatus",0);case 35:window.location.reload();case 36:return e.abrupt("break",40);case 37:return a(),e.abrupt("break",40);case 39:return e.abrupt("break",40);case 40:case"end":return e.stop()}}),e,null,[[20,31]])})));return function(t,n,a){return e.apply(this,arguments)}}()),ue["a"].beforeEach(function(){var e=ye(fe.a.mark((function e(t,n,a){var o,r;return fe.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o=se["a"].getters.token,t.matched.some((function(e){return e.meta.requireAuth||e.meta.homePages}))?a():o?(console.log("123456789456"),0===Object.keys(n.query).length?a():(r=n.query.redirect,t.path===r?a():a({path:r}))):(console.log("123456"),"/login"===t.path?a():a({path:"/login",query:{redirect:t.fullPath}})),e.abrupt("return");case 3:case"end":return e.stop()}}),e)})));return function(t,n,a){return e.apply(this,arguments)}}()),ue["a"].afterEach((function(){})),Object.keys(a).forEach((function(e){return 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(u["a"]).use(s["a"]).use(c["a"]).use(l["a"]).use(d["a"]).use(m["a"]).use(p["a"]).use(f["a"]).use(h["a"]).use(g["a"]).use(b["a"]).use(v["a"]).use(k["a"]).use(S["a"]).use(w["a"]).use(A["a"]).use(H["a"]).use(I["a"]).use(y["a"]).use(x["a"]).use(C["a"]).use(N["a"]).use(O["a"]).use(_["a"]).use(L["a"]).use(P["a"]).use(J["a"]).use(j["a"]).use(E["a"]).use($["a"]).use(q["a"]).use(T["a"]).use(U["a"]).use(D["a"]).use(R["a"]).use(M["a"]).use(B["a"]).use(F["a"]).use(Y["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(d["a"]),Z.a.use(i["a"]),Z.a.use(r["a"]),Z.a.use(o["a"]),new Z.a({el:"#app",router:ue["a"],store:se["a"],render:function(e){return 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 u})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c}));var a=n("4328"),o=n.n(a),r=n("b775");function i(e){return Object(r["a"])({url:"personal/shopcar",method:"post",data:o.a.stringify(e),hideloading:!0})}function u(e){return Object(r["a"])({url:"personal/nowBuy",method:"post",data:o.a.stringify(e),hideloading:!0})}function s(e){return Object(r["a"])({url:"personal/shopcar_add",method:"post",data:o.a.stringify(e),hideloading:!0})}function c(e){var t={ids:e};return Object(r["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),r=n("6389"),i=n.n(r),u=function(){return n.e("Home").then(n.bind(null,"dd7b"))},s=function(){return n.e("Home").then(n.bind(null,"7abe"))},c=function(){return n.e("Home").then(n.bind(null,"e943"))},l=function(){return n.e("Home").then(n.bind(null,"a192"))},d=function(){return n.e("Home").then(n.bind(null,"6005"))},m=function(){return n.e("Home").then(n.bind(null,"8822"))},p=function(){return n.e("Home").then(n.bind(null,"4227"))},f=function(){return n.e("Home").then(n.bind(null,"4399"))},h=function(){return n.e("Home").then(n.bind(null,"428e"))},g=function(){return n.e("Home").then(n.bind(null,"a85a"))},b=function(){return n.e("Home").then(n.bind(null,"b43d"))},v=function(){return n.e("Home").then(n.bind(null,"faa1"))},k=function(){return n.e("Home").then(n.bind(null,"f9ef"))},S=function(){return n.e("Home").then(n.bind(null,"c1c6"))},w=function(){return n.e("Home").then(n.bind(null,"8cff"))},A=function(){return n.e("Home").then(n.bind(null,"b522"))},H=function(){return n.e("Home").then(n.bind(null,"9a6a"))},I=function(){return n.e("Home").then(n.bind(null,"7c64"))},y=function(){return n.e("Home").then(n.bind(null,"faab"))},x=function(){return n.e("Home").then(n.bind(null,"3b8a"))},C=function(){return n.e("Home").then(n.bind(null,"d79c"))},N=function(){return n.e("Home").then(n.bind(null,"8248"))},O=function(){return n.e("Home").then(n.bind(null,"0bad"))},_=function(){return n.e("Home").then(n.bind(null,"e669"))},L=function(){return n.e("Home").then(n.bind(null,"e4b7"))},P=function(){return n.e("Home").then(n.bind(null,"b9de"))},J=function(){return n.e("Home").then(n.bind(null,"18ac"))},j=function(){return n.e("Home").then(n.bind(null,"052d"))},E=function(){return n.e("Home").then(n.bind(null,"653b"))},$=function(){return n.e("Home").then(n.bind(null,"6d2b"))},q=function(){return n.e("Home").then(n.bind(null,"efdc"))},T=function(){return n.e("Home").then(n.bind(null,"cab6"))},U=function(){return n.e("Home").then(n.bind(null,"50ac"))},D=function(){return n.e("Home").then(n.bind(null,"c3fc"))},R=function(){return n.e("Home").then(n.bind(null,"e3c1"))},M=function(){return n.e("Home").then(n.bind(null,"800c"))},B=function(){return n.e("Home").then(n.bind(null,"9336a"))},F=function(){return n.e("Home").then(n.bind(null,"cb85"))},Y=function(){return n.e("Home").then(n.bind(null,"808f"))},W=function(){return n.e("Home").then(n.bind(null,"fde5"))},G=function(){return n.e("Home").then(n.bind(null,"ac11"))},V=function(){return n.e("Home").then(n.bind(null,"5aa2"))},z=function(){return n.e("Home").then(n.bind(null,"1437"))},K=function(){return n.e("Home").then(n.bind(null,"4440"))},Q=function(){return n.e("Home").then(n.bind(null,"f912"))},X=function(){return n.e("Home").then(n.bind(null,"6649"))},Z=function(){return n.e("Home").then(n.bind(null,"6f92"))},ee=function(){return n.e("Home").then(n.bind(null,"8248"))},te=function(){return n.e("Home").then(n.bind(null,"3f82"))},ne=function(){return n.e("Home").then(n.bind(null,"00d0"))},ae=function(){return n.e("Home").then(n.bind(null,"63b6"))},oe=function(){return n.e("Home").then(n.bind(null,"892c"))},re=function(){return n.e("Home").then(n.bind(null,"7b75"))},ie=function(){return n.e("Home").then(n.bind(null,"eb98"))};o.a.use(i.a);var ue=new i.a({mode:"history",base:"",routes:[{path:"/oil",name:"oil",component:re,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:D,meta:{title:"管理奖",keepAlive:!1}},{path:"/shouCang",name:"shouCang",component:w,meta:{title:"我的收藏",keepAlive:!1}},{path:"/pSuccess",name:"pSuccess",component:C,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:F,meta:{title:"推荐人",keepAlive:!1}},{path:"/shouYi",name:"shouYi",component:M,meta:{title:"编辑银行卡",keepAlive:!1}},{path:"/directPush",name:"directPush",component:R,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:Y,meta:{title:"体现明细",keepAlive:!1}},{path:"/reflect",name:"reflect",component:T,meta:{title:"体现明细",keepAlive:!1}},{path:"/jifen",name:"Jifen",component:U,meta:{title:"积分明细",keepAlive:!1}},{path:"/customer",name:"customer",component:q,meta:{title:"我的客户",keepAlive:!1}},{path:"/gPInfo",name:"gPInfo",component:$,meta:{title:"合伙人详情",keepAlive:!1}},{path:"/progress",name:"progress",component:E,meta:{title:"申请结果",keepAlive:!1}},{path:"/step23",name:"step23",component:j,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:_,meta:{title:"申请合伙人",keepAlive:!1}},{path:"/shops",name:"shops",component:O,meta:{title:"门店",keepAlive:!1}},{path:"/refundOrder",name:"refundOrder",component:N,meta:{title:"申请售后",keepAlive:!1}},{path:"/success",name:"success",component:x,meta:{title:"订单结果",keepAlive:!1}},{path:"/new",name:"new",component:y,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:h,meta:{title:"订单列表",keepAlive:!1}},{path:"/editInvoice",name:"editInvoice",component:H,meta:{title:"编辑发票",keepAlive:!1}},{path:"/invoice",name:"invoice",component:A,meta:{title:"发票",keepAlive:!1}},{path:"/good",name:"good",component:k,meta:{title:"商品详情",keepAlive:!1}},{path:"/address",name:"address",component:v,meta:{title:"收货地址",keepAlive:!1}},{path:"/order",name:"order",component:f,meta:{title:"订单",keepAlive:!1}},{path:"/",component:s,meta:{title:"首页",keepAlive:!1}},{path:"/login",name:"login",component:u,meta:{title:"登录",requireAuth:!0}},{path:"/home",name:"home",component:s,meta:{title:"首页",keepAlive:!1}},{path:"/category",name:"category",component:l,meta:{title:"分类",keepAlive:!1}},{path:"/shopping",name:"shopping",component:d,meta:{title:"购物车",keepAlive:!1}},{path:"/me",name:"me",component:m,meta:{title:"购物车",keepAlive:!1}}]});t["a"]=ue},b775:function(e,t,n){"use strict";n("e7e5");var a=n("d399"),o=n("cebe"),r=n.n(o),i=n("4360"),u=n("f121"),s=r.a.create({baseURL:u["baseApi"],withCredentials:!0,timeout:5e3});s.interceptors.request.use((function(e){return e.hideloading||a["a"].loading({forbidClick:!0}),i["a"].getters.token&&(e.headers["Authorization"]="Bearer "+i["a"].getters.token),e}),(function(e){return console.log(e),Promise.reject(e)})),s.interceptors.response.use((function(e){a["a"].clear();var 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)}),(function(e){return a["a"].clear(),console.log("err"+e),Promise.reject(e)})),t["a"]=s},cebe:function(e,t){e.exports=axios},f121:function(e,t,n){var 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"]]]);
|