董国庆
2026-01-06 f13a77f3606057cd186c53a833e1bbe58175aafb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
/**
 * @name umi 的路由配置
 * @description 只支持 path,component,routes,redirect,wrappers,name,icon 的配置
 * @param path  path 只支持两种占位符配置,第一种是动态参数 :id 的形式,第二种是 * 通配符,通配符只能出现路由字符串的最后。
 * @param component 配置 location 和 path 匹配后用于渲染的 React 组件路径。可以是绝对路径,也可以是相对路径,如果是相对路径,会从 src/pages 开始找起。
 * @param routes 配置子路由,通常在需要为多个路径增加 layout 组件时使用。
 * @param redirect 配置路由跳转
 * @param wrappers 配置路由组件的包装组件,通过包装组件可以为当前的路由组件组合进更多的功能。 比如,可以用于路由级别的权限校验
 * @param name 配置路由的标题,默认读取国际化文件 menu.ts 中 menu.xxxx 的值,如配置 name 为 login,则读取 menu.ts 中 menu.login 的取值作为标题
 * @param icon 配置路由的图标,取值参考 https://ant.design/components/icon-cn, 注意去除风格后缀和大小写,如想要配置图标为 <StepBackwardOutlined /> 则取值应为 stepBackward 或 StepBackward,如想要配置图标为 <UserOutlined /> 则取值应为 user 或者 User
 * @doc https://umijs.org/docs/guides/routes
 */
 
export default [
  {
    path: '/Welcome',
    routes: [
      {
        name: 'Welcome',
        path: '/Welcome',
        hideInMenu: true,
        component: './welco',
      },
    ],
  },
  {
    "path": "/login",
    "layout": false,
    "routes": [
      {
        "name": "login",
        "path": "/login",
        "component": "./Login"
      }
    ]
  },
  {
    "name": "系统管理",
    "path": "/system",
    "access": "/system",
    "routes": [
      {
        "name": "人员管理",
        "path": "/system/systemSetting/person",
        "access": "/system/systemSetting/person",
        "component": "./system/systemSetting/person"
      },
      {
        "name": "角色权限",
        "path": "/system/systemSetting/role",
        "access": "/system/systemSetting/role",
        "component": "./system/systemSetting/role"
      },
      {
        "name": "角色详情",
        "path": "/system/systemSetting/role/detail",
        "component": "./system/systemSetting/role/detail",
        "hideInMenu": true
      },
      {
        "name": "操作日志",
        "path": "/system/systemSetting/operationLog",
        "access": "/system/systemSetting/operationLog",
        "component": "./system/systemSetting/operationLog"
      }
    ]
  },
  {
    "name": "基础信息管理",
    "path": "/system/basicInfoManagement",
    "access": "/system/basicInfoManagement",
    "routes": [
      {
        "name": "轮播图管理",
        "path": "/system/basicInfoManagement/homeCarousel",
        "access": "/system/basicInfoManagement/homeCarousel",
        "component": "./system/basicInfoManagement/homeCarousel/index"
      },
      {
        "name": "轮播图详情",
        "path": "/system/basicInfoManagement/homeCarousel/detail",
        "component": "./system/basicInfoManagement/homeCarousel/detail",
        "hideInMenu": true
      },
      {
        "name": "协议管理",
        "path": "/system/basicInfoManagement/agreementManagement",
        "access": "/system/basicInfoManagement/agreementManagement",
        "component": "./system/basicInfoManagement/agreementManagement/index"
      },
      {
        "name": "积分规则管理",
        "path": "/system/basicInfoManagement/integral",
        "access": "/system/basicInfoManagement/integral",
        "component": "./system/basicInfoManagement/integral/index"
      },
      {
        "name": "金币兑换图文说明",
        "path": "/system/basicInfoManagement/integralExchange",
        "access": "/system/basicInfoManagement/integralExchange",
        "component": "./system/basicInfoManagement/integralExchange/index"
      }
    ]
  },
  {
    "name": "商品管理",
    "path": "/goods",
    "access": "/goods",
    "routes": [
      {
        "name": "大礼包商品",
        "path": "/goods/bigGiftPackage",
        "access": "/goods/bigGiftPackage",
        "component": "./goods/bigGiftPackage/index"
      },
      {
        "name": "大礼包商品详情",
        "path": "/goods/bigGiftPackage/detail",
        "component": "./goods/bigGiftPackage/detail",
        "hideInMenu": true
      },
      {
        "name": "大礼包商品编辑",
        "path": "/goods/bigGiftPackage/edit",
        "component": "./goods/bigGiftPackage/edit",
        "hideInMenu": true
      },
      {
        "name": "实物商品",
        "path": "/goods/physicalGoods",
        "access": "/goods/physicalGoods",
        "component": "./goods/physicalGoods/index"
      },
      {
        "name": "实物商品详情",
        "path": "/goods/physicalGoods/detail",
        "component": "./goods/physicalGoods/detail",
        "hideInMenu": true
      },
      {
        "name": "实物商品编辑",
        "path": "/goods/physicalGoods/edit",
        "component": "./goods/physicalGoods/edit",
        "hideInMenu": true
      }
    ]
  },
  {
    "name": "订单管理",
    "path": "/order",
    "access": "/order",
    "routes": [
      {
        "name": "大礼包订单列表",
        "path": "/order/bigGiftPackageOrder",
        "access": "/order/bigGiftPackageOrder",
        "component": "./order/bigGiftPackageOrder/index"
      },
      {
        "name": "大礼包订单编辑",
        "path": "/order/bigGiftPackageOrder/edit",
        "component": "./order/bigGiftPackageOrder/edit",
        "hideInMenu": true
      },
      {
        "name": "订单转让记录",
        "path": "/order/orderTransfer",
        "access": "/order/orderTransfer",
        "component": "./order/orderTransfer/index"
      },
      {
        "name": "实物商品订单",
        "path": "/order/physicalGoodsOrder",
        "access": "/order/physicalGoodsOrder",
        "component": "./order/physicalGoodsOrder/index"
      },
      {
        "name": "退款申请审核",
        "path": "/order/refundAudit",
        "access": "/order/refundAudit",
        "component": "./order/refundAudit/index"
      },
    ]
  },
  {
    "name": "公司管理",
    "path": "/company",
    "access": "/company",
    "routes": [
      {
        "name": "公司列表",
        "path": "/company/list",
        "access": "/company/list",
        "component": "./company/list"
      },
      {
        "name": "公司详情",
        "path": "/company/detail",
        "component": "./company/detail",
        "hideInMenu": true
      }
    ]
  },
  {
    "name": "用户管理",
    "path": "/user",
    "access": "/user",
    "routes": [
      {
        "name": "用户列表",
        "path": "/user/list",
        "access": "/user/list",
        "component": "./user/list"
      },
      {
        "name": "用户信息",
        "path": "/user/list/detail",
        "component": "./user/list/detail",
        "hideInMenu": true
      },
      {
        "name": "用户信息",
        "path": "/user/list/edit",
        "component": "./user/list/edit",
        "hideInMenu": true
      },
      {
        "name": "积分修改记录",
        "path": "/user/integralChangeRecord",
        "access": "/user/integralChangeRecord",
        "component": "./user/integralChangeRecord"
      },
      {
        "name": "金币充值",
        "path": "/user/list/gold",
        "component": "./user/list/gold",
        "hideInMenu": true
      },
      {
        "name": "购买记录",
        "path": "/user/purchase",
        "component": "./user/list/purchase",
        "hideInMenu": true
      },
      {
        "name": "推广记录",
        "path": "/user/promotion-record",
        "component": "./user/list/promotion",
        "hideInMenu": true
      }
    ]
  },
  {
    "name": "财务管理",
    "path": "/finance",
    "access": "/finance",
    "routes": [
      {
        "name": "积分结算",
        "path": "/finance/integralSettlement",
        "access": "/finance/integralSettlement",
        "component": "./finance/integralSettlement"
      },
      {
        "name": "积分结算详情",
        "path": "/finance/integralSettlement/detail",
        "component": "./finance/integralSettlement/detail",
        "hideInMenu": true
      },
      {
        "name": "汇总统计",
        "path": "/finance/summaryStatistics",
        "access": "/finance/summaryStatistics",
        "component": "./finance/summaryStatistics"
      }
    ]
  },
  {
    "name": "公司信息",
    "path": "/company-info",
    "access": "/company-info",
    "component": "./companyInfo"
  },
  {
    "name": "大礼包订单列表",
    "path": "/bigGiftPackage",
    "access": "/bigGiftPackage",
    "component": "./bigGiftPackage"
  },
  {
    "name": "退款申请记录",
    "path": "/refundRecords",
    "access": "/refundRecords",
    "component": "./refundRecords/index"
  },
];