import type { RouteRecordRaw } from "vue-router"; import PointAccountDetail from "@/pages/point/PointAccountDetail.vue"; import PointAccountList from "@/pages/point/PointAccountList.vue"; import PointAdjust from "@/pages/point/PointAdjust.vue"; import PointLedgerDetail from "@/pages/point/PointLedgerDetail.vue"; import PointLedgerList from "@/pages/point/PointLedgerList.vue"; import PointRuleEdit from "@/pages/point/PointRuleEdit.vue"; import PointRuleList from "@/pages/point/PointRuleList.vue"; import PointRuleSort from "@/pages/point/PointRuleSort.vue"; const pointRoutes: RouteRecordRaw[] = [ { path: "/management/points/account", name: "PointAccountList", component: PointAccountList, meta: { depth: 3, navBarVisible: true, navBarCanBack: true, navBarTitle: "积分账户", tabBarVisible: false, bodyBackground: "#F5F5F8", darkBodyBackground: "#10161f" } }, { path: "/management/points/account/:id", name: "PointAccountDetail", component: PointAccountDetail, meta: { depth: 4, navBarVisible: true, navBarCanBack: true, navBarTitle: "积分账户详情", tabBarVisible: false, bodyBackground: "#F5F5F8", darkBodyBackground: "#10161f" } }, { path: "/management/points/rules/sort", name: "PointRuleSort", component: PointRuleSort, meta: { depth: 4, navBarVisible: true, navBarCanBack: true, navBarTitle: "积分规则排序", tabBarVisible: false, bodyBackground: "#F5F5F8", darkBodyBackground: "#10161f" } }, { path: "/management/points/ledger", name: "PointLedgerList", component: PointLedgerList, meta: { depth: 3, navBarVisible: true, navBarCanBack: true, navBarTitle: "积分流水", tabBarVisible: false, bodyBackground: "#F5F5F8", darkBodyBackground: "#10161f" } }, { path: "/management/points/ledger/:id", name: "PointLedgerDetail", component: PointLedgerDetail, meta: { depth: 4, navBarVisible: true, navBarCanBack: true, navBarTitle: "积分流水详情", tabBarVisible: false, bodyBackground: "#F5F5F8", darkBodyBackground: "#10161f" } }, { path: "/management/points/adjust", name: "PointAdjust", component: PointAdjust, meta: { depth: 4, navBarVisible: true, navBarCanBack: true, navBarTitle: "人工调整积分", tabBarVisible: false, bodyBackground: "#F5F5F8", darkBodyBackground: "#10161f" } }, { path: "/management/points/rules", name: "PointRuleList", component: PointRuleList, meta: { depth: 3, navBarVisible: true, navBarCanBack: true, navBarTitle: "积分规则", tabBarVisible: false, bodyBackground: "#F5F5F8", darkBodyBackground: "#10161f" } }, { path: "/management/points/rules/create", name: "PointRuleCreate", component: PointRuleEdit, meta: { depth: 4, navBarVisible: true, navBarCanBack: true, navBarTitle: "新增积分规则", tabBarVisible: false, bodyBackground: "#F5F5F8", darkBodyBackground: "#10161f" } }, { path: "/management/points/rules/:id/edit", name: "PointRuleEdit", component: PointRuleEdit, meta: { depth: 4, navBarVisible: true, navBarCanBack: true, navBarTitle: "编辑积分规则", tabBarVisible: false, bodyBackground: "#F5F5F8", darkBodyBackground: "#10161f" } } ]; export default pointRoutes;