add point
This commit is contained in:
@@ -6,6 +6,7 @@ import chartRoutes from "@/router/routes/chartRoutes";
|
||||
import customerRoutes from "@/router/routes/customerRoutes";
|
||||
import { managementAccountRoutes, managementSettingRoutes, storeRoutes } from "@/router/routes/managementRoutes";
|
||||
import permissionRoutes from "@/router/routes/permissionRoutes";
|
||||
import pointRoutes from "@/router/routes/pointRoutes";
|
||||
import registrationRoutes from "@/router/routes/registrationRoutes";
|
||||
import tabRoutes from "@/router/routes/tabRoutes";
|
||||
import userRoutes from "@/router/routes/userRoutes";
|
||||
@@ -21,6 +22,7 @@ const detailRoutes = [
|
||||
...managementSettingRoutes,
|
||||
...storeRoutes,
|
||||
...permissionRoutes,
|
||||
...pointRoutes,
|
||||
...chartRoutes,
|
||||
...managementAccountRoutes
|
||||
];
|
||||
|
||||
@@ -0,0 +1,95 @@
|
||||
import type { RouteRecordRaw } from "vue-router";
|
||||
import PointAccount from "@/pages/point/PointAccount.vue";
|
||||
import PointAdjust from "@/pages/point/PointAdjust.vue";
|
||||
import PointLedgerList from "@/pages/point/PointLedgerList.vue";
|
||||
import PointRuleEdit from "@/pages/point/PointRuleEdit.vue";
|
||||
import PointRuleList from "@/pages/point/PointRuleList.vue";
|
||||
|
||||
const pointRoutes: RouteRecordRaw[] = [
|
||||
{
|
||||
path: "/management/points/account",
|
||||
name: "PointAccount",
|
||||
component: PointAccount,
|
||||
meta: {
|
||||
depth: 3,
|
||||
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/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;
|
||||
Reference in New Issue
Block a user