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.
 
 

2 lines
1.4 KiB

"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[295],{8295:function(t,e,s){s.r(e),s.d(e,{default:function(){return c}});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"bg"},[e("div",{staticClass:"left-container"},t._l(t.navList,function(s,a){return e("router-link",{key:a,class:["route-item",t.selectIndex==a?"active":""],attrs:{to:s.path}},[t._v(t._s(s.title))])}),1),e("div",{staticClass:"right-container"},[e("router-view")],1)])},i=[],r={data(){return{selectIndex:0,navList:[{title:"个人中心",path:"/User/UserCenter"},{title:"我的购物车",path:"/User/ShoppingCart"},{title:"我的订单",path:"/User/OrderList"},{title:"评价管理",path:""},{title:"我的发票",path:"/User/UserInvoice"},{title:"我的收藏",path:""},{title:"我的足迹",path:"/User/ViewHistory"},{title:"个人信息",path:"/User/UserInfo"},{title:"账号设置",path:""},{title:"我的收货地址",path:"/User/UserAddress"}]}},watch:{$route(t,e){let s=t.path.toLocaleLowerCase(),a=this.navList.findIndex(t=>t.path.toLocaleLowerCase()==s);a>=0&&(this.selectIndex=a)}},computed:{},created(){let t=this.$route.path.toLocaleLowerCase(),e=this.navList.findIndex(e=>e.path.toLocaleLowerCase()==t);e>=0&&(this.selectIndex=e)},methods:{}},n=r,l=s(1656),o=(0,l.A)(n,a,i,!1,null,"32a28e68",null),c=o.exports}}]);
//# sourceMappingURL=295.2b6ac216.js.map