|
|
@@ -16,6 +16,18 @@ import PartnerAgents from '../components/AccountCenter/PartnerAgents'
|
|
|
import TeamManagement from '../components/AccountCenter/TeamManagement'
|
|
|
import MemberEditor from "../progressCmp/AccountCenter/MemberEditor"
|
|
|
import Supply from "../components/HomePage/Supply/Supply.vue"
|
|
|
+import SupplySquare from "../components/HomePage/Supply/SupplySquare.vue"
|
|
|
+import SupplyAllInfo from "../components/HomePage/Supply/SupplyAllInfo.vue"
|
|
|
+import SupplyConnecting from "../components/HomePage/Supply/SupplyConnecting.vue"
|
|
|
+import SupplyDemand from "../components/HomePage/Supply/SupplyDemand.vue"
|
|
|
+import BusinessTraining from "../components/HomePage/Supply/SupplyAllInfo/BusinessTraining.vue"
|
|
|
+import FabricDesign from "../components/HomePage/Supply/SupplyAllInfo/FabricDesign.vue"
|
|
|
+import GraphicDesign from "../components/HomePage/Supply/SupplyAllInfo/GraphicDesign.vue"
|
|
|
+import FindFabric from "../components/HomePage/Supply/SupplyAllInfo/FindFabric.vue"
|
|
|
+import Photography from "../components/HomePage/Supply/SupplyAllInfo/Photography.vue"
|
|
|
+import ProductPlanning from "../components/HomePage/Supply/SupplyAllInfo/ProductPlanning.vue"
|
|
|
+import SearchingAchor from "../components/HomePage/Supply/SupplyAllInfo/SearchingAchor.vue"
|
|
|
+
|
|
|
// 将VueRouter挂载到Vue当中去
|
|
|
Vue.use(VueRouter)
|
|
|
|
|
|
@@ -29,20 +41,43 @@ const router = new VueRouter({
|
|
|
{ path: "/selectaccount", component: SelectAccount },
|
|
|
{ path: "/userlogin", component: UserLogin },
|
|
|
{ path: "/agentlogin", component: AgentLogin },
|
|
|
- { path: "/userhomepage", component: UserHomePage,},
|
|
|
- { path: "/userhomepage/supply", component: Supply},
|
|
|
+ { path: "/userhomepage", component: UserHomePage },
|
|
|
+ { path: "/userhomepage/supply", component: Supply },
|
|
|
+ {
|
|
|
+ path: "/userhomepage/supplysquare",
|
|
|
+ component: SupplySquare,
|
|
|
+ redirect: "/userhomepage/supplyallinfo",
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: "/userhomepage/supplyallinfo",
|
|
|
+ component: SupplyAllInfo,
|
|
|
+ redirect: "/userhomepage/supplyallinfo/businesstraining",
|
|
|
+ children: [
|
|
|
+ { path: "/userhomepage/supplyallinfo/findfabric", component: FindFabric },
|
|
|
+ { path: "/userhomepage/supplyallinfo/fabricdesign", component: FabricDesign },
|
|
|
+ { path: "/userhomepage/supplyallinfo/graphicdesign", component: GraphicDesign },
|
|
|
+ { path: "/userhomepage/supplyallinfo/productplanning", component: ProductPlanning },
|
|
|
+ { path: "/userhomepage/supplyallinfo/searchingachor", component: SearchingAchor },
|
|
|
+ { path: "/userhomepage/supplyallinfo/photography", component: Photography },
|
|
|
+ { path: "/userhomepage/supplyallinfo/businesstraining", component: BusinessTraining },
|
|
|
+
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ { path: "/userhomepage/supplyconnecting", component: SupplyConnecting },
|
|
|
+ { path: "/userhomepage/supplydemand", component: SupplyDemand },
|
|
|
+ ]
|
|
|
+ },
|
|
|
{
|
|
|
path: "/accountcenter",
|
|
|
component: AccountCenter,
|
|
|
- redirect: '/userinfo',
|
|
|
+ redirect: '/accountcenter/userinfo',
|
|
|
children: [
|
|
|
- { path: "/userinfo", component: UserInfo },
|
|
|
- { path: '/agentmanagement', component: AgentManagement },
|
|
|
- { path: '/productmanagement', component: ProductManagement },
|
|
|
- { path: "/productmanagement/producteditor/:id", component: ProductEditor },
|
|
|
- { path: '/partneragents', component: PartnerAgents },
|
|
|
- { path: '/teammanagement', component: TeamManagement },
|
|
|
- { path: "/teammanagement/membereditor", component: MemberEditor}
|
|
|
+ { path: "/accountcenter/userinfo", component: UserInfo },
|
|
|
+ { path: '/accountcenter/agentmanagement', component: AgentManagement },
|
|
|
+ { path: '/accountcenter/productmanagement', component: ProductManagement },
|
|
|
+ { path: '/accountcenter/partneragents', component: PartnerAgents },
|
|
|
+ { path: '/accountcenter/teammanagement', component: TeamManagement },
|
|
|
+ { path: "/accountcenter/teammanagement/membereditor", component: MemberEditor}
|
|
|
]
|
|
|
}
|
|
|
]
|