diff --git a/src/router/index.ts b/src/router/index.ts index b78239b0..32d4f2ee 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -24,494 +24,471 @@ const routes: Array = [ component: () => import("@/component/Canvas/canvasExample.vue") }, - { - path: "/schoolLogin", - name: "schoolLogin", - meta: { enter: "all" }, - component: () => import("@/views/Login.vue"), // 使用通用登录组件 - }, - { - path: "/enterpriseLogin", - name: "enterpriseLogin", - meta: { enter: "all" }, - component: () => import("@/views/Login.vue"), // 使用通用登录组件 - }, - { - path: "/test", - name: "test1", - meta: { enter: "all" }, - component: () => import("@/views/test.vue"), - }, - { - path: "/register", - name: "register", - meta: { enter: "all" }, - component: () => import("@/views/Register.vue"), - }, - { - path: "/register/:lang", - name: "registerLang", - meta: { enter: "all" }, - component: () => import("@/views/Register.vue"), - }, - { - path: "/upgrade", - name: "upgrade", - meta: { enter: "all" }, - component: () => import("@/views/Upgrade.vue"), - }, - { - path: "/home", - name: "home", - meta: { enter: "all" }, - component: () => import("@/views/HomeMain.vue"), - children: [ - { - path: "tools", - name: "tools", - meta: { enter: "all",cache:true }, - component: () => import("@/views/HomeView/Tools.vue"), - }, - // { - // path: "homePage", - // name: "homePage", - // meta: { enter: "all" }, - // component: () => import("@/views/HomeView/HomeView.vue"), - // }, - { - path: "library", - name: "library", - meta: { enter: "all" }, - component: () => import("@/views/HomeView/library.vue"), - }, - { - path: "history", - name: "history", - meta: { enter: "all" }, - component: () => import("@/views/HomeView/history.vue"), - }, - // { - // path: "history/:type/:id", - // name: "toolsPage", - // meta: { enter: "all",cache:true }, - // component: () => import("@/views/HomeView/Tools.vue"), - // }, - { - path: "history/:id", - name: "designPage", - meta: { enter: "all",cache:true }, - component: () => import("@/component/home/design/index.vue"), - }, - { - path: "works", - name: "works", - meta: { enter: "all" }, - component: () => import("@/views/HomeView/Works.vue"), - }, - { - path: "events", - name: "events", - meta: { enter: "all" }, - component: () => import("@/views/HomeView/Events.vue"), - }, - { - path: "cloud", - name: "cloud", - meta: { enter: "all" }, - component: () => import("@/views/HomeView/cloudGeneration.vue"), - }, - { - path: "eventsDetail", - name: "eventsDetail", - meta: { enter: "all" }, - component: () => import("@/component/Events/eventsDetail.vue"), - }, - { - path: "account", - name: "account", - meta: { enter: "all" }, - component: () => import("@/component/Account/account.vue"), - children: [ - { - path: "", - name: "accountChil", - meta: { enter: "all" }, - redirect: "/home/account/frontPage", - }, - { - path: "frontPage", - name: "frontPage", - meta: { enter: "all" }, - component: () => import("@/component/Account/frontPage.vue"), - }, - { - path: "accountMessage", - name: "accountMessage", - meta: { enter: "all" }, - component: () => import("@/component/Account/accountMessage.vue"), - }, - { - path: "accountFollowFans", - name: "accountFollowFans", - meta: { enter: "all" }, - component: () => - import("@/component/Account/accountFollowFans.vue"), - }, - ], - }, - { - path: "otherUsers", - name: "otherUsers", - meta: { enter: "all" }, - component: () => import("@/component/Account/otherUsers.vue"), - }, - { - path: "becomeSeller", - name: "becomeSeller", - meta: { enter: "all" }, - component: () => import("@/views/SellerDashboard/BecomeSeller/index.vue"), - }, - { - path: "seller", - name: "seller", - meta: { enter: "all" }, - component: () => import("@/views/SellerDashboard/index.vue"), - children:[ - { - path: "brandProfile", - name: "brandProfile", - meta: { enter: "all" }, - component: () => import("@/views/SellerDashboard/BrandProfile/index.vue"), - }, - { - path: "myListings", - name: "myListings", - meta: { enter: "all" }, - children:[ - { - path: "", - name: "myListingsChild", - meta: { enter: "all" }, - redirect: "/home/seller/myListings/index", + { + path: "/schoolLogin", + name: "schoolLogin", + meta: { enter: "all" }, + component: () => import("@/views/Login.vue") // 使用通用登录组件 + }, + { + path: "/enterpriseLogin", + name: "enterpriseLogin", + meta: { enter: "all" }, + component: () => import("@/views/Login.vue") // 使用通用登录组件 + }, + { + path: "/test", + name: "test1", + meta: { enter: "all" }, + component: () => import("@/views/test.vue") + }, + { + path: "/register", + name: "register", + meta: { enter: "all" }, + component: () => import("@/views/Register.vue") + }, + { + path: "/register/:lang", + name: "registerLang", + meta: { enter: "all" }, + component: () => import("@/views/Register.vue") + }, + { + path: "/upgrade", + name: "upgrade", + meta: { enter: "all" }, + component: () => import("@/views/Upgrade.vue") + }, + { + path: "/home", + name: "home", + meta: { enter: "all" }, + component: () => import("@/views/HomeMain.vue"), + children: [ + { + path: "tools", + name: "tools", + meta: { enter: "all", cache: true }, + component: () => import("@/views/HomeView/Tools.vue") + }, + // { + // path: "homePage", + // name: "homePage", + // meta: { enter: "all" }, + // component: () => import("@/views/HomeView/HomeView.vue"), + // }, + { + path: "library", + name: "library", + meta: { enter: "all" }, + component: () => import("@/views/HomeView/library.vue") + }, + { + path: "history", + name: "history", + meta: { enter: "all" }, + component: () => import("@/views/HomeView/history.vue") + }, + // { + // path: "history/:type/:id", + // name: "toolsPage", + // meta: { enter: "all",cache:true }, + // component: () => import("@/views/HomeView/Tools.vue"), + // }, + { + path: "history/:id", + name: "designPage", + meta: { enter: "all", cache: true }, + component: () => import("@/component/home/design/index.vue") + }, + { + path: "works", + name: "works", + meta: { enter: "all" }, + component: () => import("@/views/HomeView/Works.vue") + }, + { + path: "events", + name: "events", + meta: { enter: "all" }, + component: () => import("@/views/HomeView/Events.vue") + }, + { + path: "cloud", + name: "cloud", + meta: { enter: "all" }, + component: () => import("@/views/HomeView/cloudGeneration.vue") + }, + { + path: "eventsDetail", + name: "eventsDetail", + meta: { enter: "all" }, + component: () => import("@/component/Events/eventsDetail.vue") + }, + { + path: "account", + name: "account", + meta: { enter: "all" }, + component: () => import("@/component/Account/account.vue"), + children: [ + { + path: "", + name: "accountChil", + meta: { enter: "all" }, + redirect: "/home/account/frontPage" + }, + { + path: "frontPage", + name: "frontPage", + meta: { enter: "all" }, + component: () => import("@/component/Account/frontPage.vue") + }, + { + path: "accountMessage", + name: "accountMessage", + meta: { enter: "all" }, + component: () => import("@/component/Account/accountMessage.vue") + }, + { + path: "accountFollowFans", + name: "accountFollowFans", + meta: { enter: "all" }, + component: () => import("@/component/Account/accountFollowFans.vue") + } + ] + }, + { + path: "otherUsers", + name: "otherUsers", + meta: { enter: "all" }, + component: () => import("@/component/Account/otherUsers.vue") + }, + { + path: "becomeSeller", + name: "becomeSeller", + meta: { enter: "all" }, + component: () => import("@/views/SellerDashboard/BecomeSeller/index.vue") + }, + { + path: "seller", + name: "seller", + meta: { enter: "all" }, + component: () => import("@/views/SellerDashboard/index.vue"), + children: [ + { + path: "brandProfile", + name: "brandProfile", + meta: { enter: "all" }, + component: () => import("@/views/SellerDashboard/BrandProfile/index.vue") + }, + { + path: "myListings", + name: "myListings", + meta: { enter: "all" }, + children: [ + { + path: "", + name: "myListingsChild", + meta: { enter: "all" }, + redirect: "/home/seller/myListings/index" + }, + { + path: "index", + name: "myListingsIndex", + meta: { enter: "all" }, + component: () => + import("@/views/SellerDashboard/MyListings/main/index.vue") + }, + { + path: "select", + name: "myListingsSelect", + meta: { enter: "all" }, + component: () => + import("@/views/SellerDashboard/MyListings/createSelect/index.vue") + }, + { + path: "select/:id", + name: "myListingsSelectItem", + meta: { enter: "all" }, + component: () => + import("@/views/SellerDashboard/MyListings/createSelectItem/index.vue") + }, + { + path: "edit", + name: "EditDetail", + meta: { enter: "all" }, + component: () => + import("@/views/SellerDashboard/MyListings/EditDetail/index.vue") + } + ] + }, + { + path: "myOrders", + name: "myOrders", + meta: { enter: "all" }, + component: () => import("@/views/SellerDashboard/BrandProfile/index.vue") + }, + { + path: "settings", + name: "settings", + meta: { enter: "all" }, + component: () => import("@/views/SellerDashboard/BrandProfile/index.vue") + } + ] + } + ] + }, + { + path: "/Square", + name: "HomeRecommend", + meta: { enter: "all" }, + component: () => import("@/views/HomeRecommend.vue") + }, + { + path: "/administrator", + name: "administrator", + meta: { enter: 3 }, + component: () => import("@/views/Administrator.vue"), + children: [ + { + path: "allUser", + name: "allUser", + meta: { enter: 3 }, + component: () => import("@/component/Administrator/allUser.vue") + }, + { + path: "coupons", + name: "coupons", + meta: { enter: 3 }, + component: () => import("@/component/Administrator/coupons/index.vue") + }, + { + path: "testClickData", + name: "testClickData", + meta: { enter: 3 }, + component: () => import("@/component/Administrator/TestClickData.vue") + }, + { + path: "trialApproval", + name: "trialApproval", + meta: { enter: 3 }, + component: () => import("@/component/Administrator/trialApproval.vue") + }, + { + path: "questionnaire", + name: "questionnaire", + meta: { enter: 3 }, + component: () => import("@/component/Administrator/questionnaire.vue") + }, + { + path: "recentActiveChart", + name: "recentActiveChart", + meta: { enter: 3 }, + component: () => import("@/component/Administrator/recentActiveChart.vue") + }, + { + path: "recentActiveUser", + name: "recentActiveUser", + meta: { enter: 3 }, + component: () => import("@/component/Administrator/recentActiveUser.vue") + }, + { + path: "recentActiveUserChart", + name: "recentActiveUserChart", + meta: { enter: 3 }, + component: () => import("@/component/Administrator/recentActiveUserChart.vue") + }, + { + path: "recentNewUser", + name: "recentNewUser", + meta: { enter: 3 }, + component: () => import("@/component/Administrator/recentNewUser.vue") + }, + { + path: "recentNewUserChart", + name: "recentNewUserChart", + meta: { enter: 3 }, + component: () => import("@/component/Administrator/recentNewUserChart.vue") + }, + { + path: "trialUserCountry", + name: "trialUserCountry", + meta: { enter: 3 }, + component: () => import("@/component/Administrator/trialUserCountry.vue") + }, + { + path: "trialUserConversionRateChart", + name: "trialUserConversionRateChart", + meta: { enter: 3 }, + component: () => + import("@/component/Administrator/trialUserConversionRateChart.vue") + }, + { + path: "trialAllUser", + name: "trialAllUser", + meta: { enter: 3 }, + component: () => import("@/component/Administrator/trialAllUser.vue") + }, + { + path: "affiliateAudit", + name: "affiliateAudit", + meta: { enter: 3 }, + component: () => + import("@/component/Administrator/affiliate/affiliateAudit/affiliateAudit.vue") + }, + { + path: "affiliateReferral", + name: "affiliateReferral", + meta: { + enter: 3 }, - { - path: "index", - name: "myListingsIndex", - meta: { enter: "all" }, - component: () => import("@/views/SellerDashboard/MyListings/main/index.vue"), - }, - { - path: "select", - name: "myListingsSelect", - meta: { enter: "all" }, - component: () => import("@/views/SellerDashboard/MyListings/createSelect/index.vue"), - }, - { - path: "select/:id", - name: "myListingsSelectItem", - meta: { enter: "all" }, - component: () => import("@/views/SellerDashboard/MyListings/createSelectItem/index.vue"), - }, - ] - }, - { - path: "myOrders", - name: "myOrders", - meta: { enter: "all" }, - component: () => import("@/views/SellerDashboard/BrandProfile/index.vue"), - }, - { - path: "settings", - name: "settings", - meta: { enter: "all" }, - component: () => import("@/views/SellerDashboard/BrandProfile/index.vue"), - }, - ], - }, - ], - }, - { - path: "/Square", - name: "HomeRecommend", - meta: { enter: "all" }, - component: () => import("@/views/HomeRecommend.vue"), - }, - { - path: "/administrator", - name: "administrator", - meta: { enter: 3 }, - component: () => import("@/views/Administrator.vue"), - children: [ - { - path: "allUser", - name: "allUser", - meta: { enter: 3 }, - component: () => import("@/component/Administrator/allUser.vue"), - }, - { - path: "coupons", - name: "coupons", - meta: { enter: 3 }, - component: () => import("@/component/Administrator/coupons/index.vue"), - }, - { - path: "testClickData", - name: "testClickData", - meta: { enter: 3 }, - component: () => import("@/component/Administrator/TestClickData.vue"), - }, - { - path: "trialApproval", - name: "trialApproval", - meta: { enter: 3 }, - component: () => import("@/component/Administrator/trialApproval.vue"), - }, - { - path: "questionnaire", - name: "questionnaire", - meta: { enter: 3 }, - component: () => import("@/component/Administrator/questionnaire.vue"), - }, - { - path: "recentActiveChart", - name: "recentActiveChart", - meta: { enter: 3 }, - component: () => - import("@/component/Administrator/recentActiveChart.vue"), - }, - { - path: "recentActiveUser", - name: "recentActiveUser", - meta: { enter: 3 }, - component: () => - import("@/component/Administrator/recentActiveUser.vue"), - }, - { - path: "recentActiveUserChart", - name: "recentActiveUserChart", - meta: { enter: 3 }, - component: () => - import("@/component/Administrator/recentActiveUserChart.vue"), - }, - { - path: "recentNewUser", - name: "recentNewUser", - meta: { enter: 3 }, - component: () => import("@/component/Administrator/recentNewUser.vue"), - }, - { - path: "recentNewUserChart", - name: "recentNewUserChart", - meta: { enter: 3 }, - component: () => - import("@/component/Administrator/recentNewUserChart.vue"), - }, - { - path: "trialUserCountry", - name: "trialUserCountry", - meta: { enter: 3 }, - component: () => - import("@/component/Administrator/trialUserCountry.vue"), - }, - { - path: "trialUserConversionRateChart", - name: "trialUserConversionRateChart", - meta: { enter: 3 }, - component: () => - import("@/component/Administrator/trialUserConversionRateChart.vue"), - }, - { - path: "trialAllUser", - name: "trialAllUser", - meta: { enter: 3 }, - component: () => import("@/component/Administrator/trialAllUser.vue"), - }, - { - path: "affiliateAudit", - name: "affiliateAudit", - meta: { enter: 3 }, - component: () =>import("@/component/Administrator/affiliate/affiliateAudit/affiliateAudit.vue"), - }, - { - path: "affiliateReferral", - name: "affiliateReferral", + component: () => + import("@/component/Administrator/affiliate/affiliateReferral/index.vue") + }, + { + path: "TransactionTable", + name: "TransactionTable", + meta: { enter: 3 }, + component: () => + import("@/component/Administrator/Transaction/TransactionTable.vue") + }, + { + path: "organization", + name: "organization", + meta: { enter: 3 }, + component: () => import("@/component/Administrator/organization/organization.vue") + }, + { + path: "subscriptionPlan", + name: "subscriptionPlan", + meta: { enter: 3 }, + component: () => import("@/component/Administrator/subscriptionPlan.vue") + }, + //企业版教育管理员页面 + { + path: "allUserSE", + name: "allUserSE", + meta: { enter: 3 }, + component: () => import("@/component/Administrator/SE/allUser/index.vue") + }, + { + path: "testClickDataSE", + name: "testClickDataSE", + meta: { enter: 3 }, + component: () => import("@/component/Administrator/SE/designDetailList/index.vue") + }, + { + path: "recentActiveChartSE", + name: "recentActiveChartSE", + meta: { enter: 3 }, + component: () => import("@/component/Administrator/SE/recentActiveChart.vue") + }, + { + path: "generateFrequencySE", + name: "generateFrequencySE", + meta: { enter: 3 }, + component: () => + import("@/component/Administrator/SE/getGenerateFrequency/index.vue") + } + ] + }, + { + path: "/paySucceed", + name: "paySucceed", meta: { - enter: 3, + enter: "all" }, - component: () =>import("@/component/Administrator/affiliate/affiliateReferral/index.vue"), + component: () => import("@/views/paySucceed.vue") + }, + { + path: "/affiliate", + name: "affiliate", + meta: { + enter: 2 }, - { - path: "TransactionTable", - name: "TransactionTable", - meta: { enter: 3 }, - component: () => - import("@/component/Administrator/Transaction/TransactionTable.vue"), - }, - { - path: "organization", - name: "organization", - meta: { enter: 3 }, - component: () => - import("@/component/Administrator/organization/organization.vue"), - }, - { - path: "subscriptionPlan", - name: "subscriptionPlan", - meta: { enter: 3 }, - component: () => - import("@/component/Administrator/subscriptionPlan.vue"), - }, - //企业版教育管理员页面 - { - path: "allUserSE", - name: "allUserSE", - meta: { enter: 3 }, - component: () => - import("@/component/Administrator/SE/allUser/index.vue"), - }, - { - path: "testClickDataSE", - name: "testClickDataSE", - meta: { enter: 3 }, - component: () => - import("@/component/Administrator/SE/designDetailList/index.vue"), - }, - { - path: "recentActiveChartSE", - name: "recentActiveChartSE", - meta: { enter: 3 }, - component: () => - import("@/component/Administrator/SE/recentActiveChart.vue"), - }, - { - path: "generateFrequencySE", - name: "generateFrequencySE", - meta: { enter: 3 }, - component: () => - import("@/component/Administrator/SE/getGenerateFrequency/index.vue"), - }, - ], - }, - { - path: "/paySucceed", - name: "paySucceed", - meta: { - enter: "all", - }, - component: () => import("@/views/paySucceed.vue"), - }, - { - path: "/affiliate", - name: "affiliate", - meta: { - enter: 2, - }, - component: () => import("@/views/affiliate/affiliatePage.vue"), - children: [ - { - path: "", - name: "defaultAffiliateHome", - meta: { - enter: 2, - }, - component: () => import("@/component/affiliate/home.vue"), + component: () => import("@/views/affiliate/affiliatePage.vue"), + children: [ + { + path: "", + name: "defaultAffiliateHome", + meta: { + enter: 2 + }, + component: () => import("@/component/affiliate/home.vue") + }, + { + path: "/affiliateHome", + name: "affiliateHome", + meta: { + enter: 2 + }, + component: () => import("@/component/affiliate/home.vue") + } + ] + }, + { + path: "/affiliateRegister", + name: "affiliateRegister", + meta: { + enter: "all" }, - { - path: "/affiliateHome", - name: "affiliateHome", - meta: { - enter: 2, - }, - component: () => import("@/component/affiliate/home.vue"), - }, - ], - }, - { - path: "/affiliateRegister", - name: "affiliateRegister", - meta: { - enter: "all", - }, - component: () => import("@/views/affiliate/affiliateRegister.vue"), - }, - { - path: "/feedbackSurvey", - name: "feedbackSurvey", - meta: { - enter: "all", - }, - component: () => import("@/views/feedbackSurvey.vue"), - }, - { - path: "/feedbackSurveyCN", - name: "feedbackSurveyCN", - meta: { - enter: "all", - }, - component: () => import("@/views/feedbackSurveyCN.vue"), - }, - { - path: "/email3-1EN", - name: "email3-1EN", - meta: { - enter: "all", - }, - component: () => import("@/views/emailPage/email3-1EN.vue"), - }, - { - path: "/email3-1CN", - name: "email3-1CN", - meta: { - enter: "all", - }, - component: () => import("@/views/emailPage/email3-1CN.vue"), - }, - { - path: "/404", - name: "404", - meta: { - enter: "all", - }, - component: () => import("@/views/404.vue"), - }, - { - path: "/userManual", - name: "userManual", - meta: { - enter: "all", - }, - component: () => import("@/views/userManual.vue"), - }, - { - path: "/award", - name: "award", - meta: { - enter: "all", - }, - component: () => import("@/views/AwardPage/container.vue"), - children:[ - { - path:'', - name:'AwardIndex', - component:()=>import('@/views/AwardPage/index.vue') - }, - { - path:'index', - name:'AwardIndexAlt', - component:()=>import('@/views/AwardPage/index.vue') - }, - { - path:'contestants', - name:'Contestants', - component:()=>import('@/views/AwardPage/apply.vue') - } - ] - }, - { - path: "/:catchAll(.*)", - redirect: "/404", - }, -]; + component: () => import("@/views/affiliate/affiliateRegister.vue") + }, + { + path: "/feedbackSurvey", + name: "feedbackSurvey", + meta: { + enter: "all" + }, + component: () => import("@/views/feedbackSurvey.vue") + }, + { + path: "/feedbackSurveyCN", + name: "feedbackSurveyCN", + meta: { + enter: "all" + }, + component: () => import("@/views/feedbackSurveyCN.vue") + }, + { + path: "/email3-1EN", + name: "email3-1EN", + meta: { + enter: "all" + }, + component: () => import("@/views/emailPage/email3-1EN.vue") + }, + { + path: "/email3-1CN", + name: "email3-1CN", + meta: { + enter: "all" + }, + component: () => import("@/views/emailPage/email3-1CN.vue") + }, + { + path: "/404", + name: "404", + meta: { + enter: "all" + }, + component: () => import("@/views/404.vue") + }, + { + path: "/userManual", + name: "userManual", + meta: { + enter: "all" + }, + component: () => import("@/views/userManual.vue") + }, + + { + path: "/:catchAll(.*)", + redirect: "/404" + } +] const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL),