webpackJsonp([13],{IcnI:function(e,t,n){"use strict";var a=n("7+uW"),o=n("NYxO"),i=(n("zSLJ"),{setToken:function(e,t){e.token=t,localStorage.setItem("cc_token",t)},transitionGo:function(e){e.transitionName="slide-left"},transitionBack:function(e){e.transitionName="slide-right"}});a.default.use(o.a);t.a=new o.a.Store({state:{token:"",transitionName:"slide-left"},mutations:i,actions:{setToken:function(e,t){(0,e.commit)("setToken",t)}}})},JEsc:function(e,t){},NHnr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("7+uW"),o={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:this.$store.state.transitionName}},[t("router-view",{staticClass:"child-view"})],1)],1)},staticRenderFns:[]};var i=n("VU/8")({name:"App"},o,!1,function(e){n("JEsc")},null,null).exports,r=n("YaEn"),c=n("IcnI"),l=n("Au9i"),s=n.n(l);n("d8/S");a.default.config.productionTip=!1,a.default.use(s.a),new a.default({el:"#app",router:r.a,store:c.a,components:{App:i},template:"<App/>"})},YaEn:function(e,t,n){"use strict";var a=n("7+uW"),o=n("IcnI"),i=function(){var e=location.search,t=new Object;if(-1!=e.indexOf("?"))for(var n=e.substr(1).split("&"),a=0;a<n.length;a++)t[n[a].split("=")[0]]=unescape(n[a].split("=")[1]);return t},r=n("/ocq");a.default.use(r.a);var c=new r.a({routes:[{path:"/",name:"index",component:function(e){return Promise.all([n.e(0),n.e(3)]).then(function(){var t=[n("dAjm")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{deep:0}},{path:"/myGoodsList",name:"myGoodsList",component:function(e){return Promise.all([n.e(0),n.e(11)]).then(function(){var t=[n("P3Wy")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{deep:1}},{path:"/mine",name:"mine",component:function(e){return Promise.all([n.e(0),n.e(6)]).then(function(){var t=[n("U/b5")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{deep:1}},{path:"/order",name:"order",component:function(e){return Promise.all([n.e(0),n.e(8)]).then(function(){var t=[n("R7Pr")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{deep:2}},{path:"/author",name:"author",component:function(e){return n.e(5).then(function(){var t=[n("sA+T")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{deep:100}},{path:"/buyDetail",name:"buyDetail",component:function(e){return Promise.all([n.e(0),n.e(1)]).then(function(){var t=[n("bNYG")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{skip_login:!0,deep:10}},{path:"/buy",name:"buy",component:function(e){return Promise.all([n.e(0),n.e(4)]).then(function(){var t=[n("Y1ei")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{deep:11}},{path:"/success",name:"success",component:function(e){return Promise.all([n.e(0),n.e(2)]).then(function(){var t=[n("IF8E")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{deep:12}},{path:"/buySuccess",name:"buySuccess",component:function(e){return Promise.all([n.e(0),n.e(10)]).then(function(){var t=[n("w9eS")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{deep:12}},{path:"/map",name:"map",component:function(e){return Promise.all([n.e(0),n.e(7)]).then(function(){var t=[n("LM1A")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{deep:3}},{path:"/lesson",name:"lesson",component:function(e){return Promise.all([n.e(0),n.e(9)]).then(function(){var t=[n("v9XT")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{deep:4}}]});c.beforeEach(function(e,t,n){e.meta.deep<t.meta.deep?o.a.commit("transitionBack"):o.a.commit("transitionGo");var a=function(){if(localStorage.getItem("retUrl")&&null!==localStorage.getItem("retUrl")&&""!==localStorage.getItem("retUrl")){var e=localStorage.getItem("retUrl").toString();localStorage.removeItem("retUrl"),n(e)}else n()};if("author"===e.name)n();else if(window.location.href.indexOf("token")>-1){var r=i().token;o.a.dispatch("setToken",r),a()}else localStorage.getItem("cc_token")?(o.a.dispatch("setToken",localStorage.getItem("cc_token")),a()):e.meta.skip_login?a():n({name:"author",query:{retUrl:e.fullPath}})});t.a=c},"d8/S":function(e,t){},zSLJ:function(e,t,n){"use strict"}},["NHnr"]);
//# sourceMappingURL=app.6f04d36c974abcdd98ad.js.map