qiyunfeng-create
2 天以前 b15a997e95d715c41df3a76aecbf58ec1141ab53
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
import { createRouter, createWebHashHistory, createWebHistory } from 'vue-router'
import HomeView from '../views/home/index.vue'
import PageLayout from '../layout/baseLayout.vue'
const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'layout',
      component: PageLayout,
      redirect: { name: 'home' },
      children: [
        {
          path: '/home',
          name: 'home',
          component: HomeView,
        },
        //个人中心
        {
          path: '/personalCenter',
          name: 'personalCenter',
          redirect: '/userInfo',
          meta: {
            name: '个人中心',
          },
          component: () => import('@/views/personalCenter/index.vue'),
          children: [
            {
              path: '/userInfo',
              name: 'userInfo',
              meta: {
                name: '账户信息',
              },
              component: () => import('@/views/personalCenter/userInfo.vue'),
            },
            {
              path: '/myCart',
              name: 'myCart',
              meta: {
                name: '购物车',
              },
              component: () => import('@/views/personalCenter/myCart.vue'),
            },
            {
              path: '/myBook',
              name: 'myBook',
              meta: {
                name: '书架',
              },
              component: () => import('@/views/personalCenter/myBook.vue'),
            },
            {
              path: '/myCourse',
              name: 'myCourse',
              meta: {
                name: '课程',
              },
              component: () => import('@/views/personalCenter/course.vue'),
            },
            {
              path: '/myClass',
              name: 'myClass',
              meta: {
                name: '班级',
              },
              component: () => import('@/views/personalCenter/class.vue'),
            },
            {
              path: '/myOrder',
              name: 'myOrder',
              meta: {
                name: '订单',
              },
              component: () => import('@/views/personalCenter/myOrder.vue'),
            },
            {
              path: '/myApply',
              name: 'myApply',
              meta: {
                name: '申请',
              },
              component: () => import('@/views/personalCenter/myApply.vue'),
            },
            {
              path: '/myCollection',
              name: 'myCollection',
              meta: {
                name: '收藏',
              },
              component: () => import('@/views/personalCenter/myCollection.vue'),
            },
            {
              path: '/myMessage',
              name: 'myMessage',
              meta: {
                name: '消息',
              },
              component: () => import('@/views/personalCenter/myMessage.vue'),
            },
            {
              path: '/activateProduct',
              name: 'activateProduct',
              meta: {
                name: '激活码',
              },
              component: () => import('@/views/personalCenter/activeCode.vue'),
            },
            {
              path: '/courseDetail',
              name: 'courseDetail',
              meta: {
                name: '课程详情',
              },
              component: () => import('@/views/courseManage/index.vue'),
            },
          ],
        },
        // 班级
        {
          path: '/classManage',
          name: 'classManage',
          redirect: '/classHome',
          meta: {
            name: '班级管理',
          },
          component: () => import('../views/classManage/index.vue'),
          children: [
            {
              path: '/classHome',
              name: 'classHome',
              meta: {
                name: '班级首页',
              },
              component: () => import('@/views/classManage/classHome.vue'),
            },
            {
              path: '/studentManage',
              name: 'studentManage',
              meta: {
                name: '学生管理',
              },
              component: () => import('@/views/classManage/studentManage.vue'),
            },
            {
              path: '/teachingPlan',
              name: 'teachingPlan',
              meta: {
                name: '教学计划',
              },
              component: () => import('@/views/classManage/teachingPlan.vue'),
            },
            {
              path: '/prepareLessons',
              name: 'prepareLessons',
              meta: {
                name: '备课',
              },
              component: () => import('@/views/classManage/prepareLessons.vue'),
            },
            {
              path: '/jobManage',
              name: 'jobManage',
              meta: {
                name: '作业管理-教师',
              },
              component: () => import('@/views/classManage/jobManage.vue'),
            },
            {
              path: '/studentJob',
              name: 'studentJob',
              meta: {
                name: '作业管理-学生',
              },
              component: () => import('@/views/classManage/studentJob.vue'),
            },
            {
              path: '/jobDetail',
              name: 'jobDetail',
              meta: {
                name: '作业管理详情',
              },
              component: () => import('@/views/classManage/jobDetail.vue'),
            },
            {
              path: '/testManage',
              name: 'testManage',
              meta: {
                name: '测试管理',
              },
              component: () => import('@/views/classManage/testManage.vue'),
            },
            {
              path: '/jobAnalysis',
              name: 'jobAnalysis',
              meta: {
                name: '作业分析',
              },
              component: () => import('@/views/classManage/jobAnalysis.vue'),
            },
            {
              path: '/teachInteraction',
              name: 'teachInteraction',
              meta: {
                name: '教学互动',
              },
              component: () => import('@/views/classManage/teachInteraction.vue'),
            },
            {
              path: '/interactionDetail',
              name: 'interactionDetail',
              meta: {
                name: '教学互动-详情',
              },
              component: () => import('@/views/classManage/interactionDetail.vue'),
            },
            {
              path: '/talkingPoint',
              name: 'talkingPoint',
              meta: {
                name: '话题',
              },
              component: () => import('@/views/classManage/talkingPoint.vue'),
            },
            {
              path: '/talkDetail',
              name: 'talkDetail',
              meta: {
                name: '话题',
              },
              component: () => import('@/views/classManage/talkDetail.vue'),
            },
            {
              path: '/info',
              name: 'info',
              meta: {
                name: '班级通知列表',
              },
              component: () => import('@/views/classManage/infoList.vue'),
            },
          ],
        },
      ],
    },
  ],
})
 
export default router