Browse Source

访客页面路由

wgl 4 years ago
parent
commit
f3f04fd23b

+ 1 - 1
config/project.js

@@ -1 +1 @@
-exports.name = 'home'
+exports.name = 'business'

+ 48 - 52
src/projects/business/router/guest.js

@@ -4,86 +4,82 @@ const routesGuest = [
 		path: '/guest',
 		component: () => import('../views/Layout.vue'),
 		children: [
-			//访客主页
+			//邀请者
 			{
-				path: '',
-				name: 'Guest',
-				component: () => import('../views/Guest/Home.vue'),
-				meta: {
-					requireAuth: false,
-					role: [],
-					title: '访客主页',
-				}
-			},
-			//个人中心
-			{
-				path: 'center',
-				name: 'GuestCenter',
-				component: () => import('../views/Guest/Center.vue'),
-				meta: {
-					requireAuth: false,
-					role: [],
-					title: '个人中心',
-				}
-			},
-			//修改个人信息
-			{
-				path: 'editInfo',
-				name: 'GuestEditInfo',
-				component: () => import('../views/Guest/EditInfo.vue'),
-				meta: {
-					requireAuth: false,
-					role: [],
-					title: '修改个人信息',
-				}
-			},
-			//预约
-			{
-				path: 'appointment',
+				path: 'from',
 				component: () => import('../views/Layout.vue'),
 				children: [
-					//请记录
+					//邀请记录
 					{
 						path: 'list',
-						name: 'GuestAppointmentList',
-						component: () => import('../views/Guest/Appointment/List.vue'),
+						name: 'GuestFromList',
+						component: () => import('../views/Guest/From/List.vue'),
 						meta: {
 							requireAuth: false,
 							role: [],
-							title: '预约申请记录',
+							title: '邀请记录',
 						}
 					},
-					//申请详情
+					//邀请访客
 					{
-						path: 'info',
-						name: 'GuestAppointmentInfo',
-						component: () => import('../views/Guest/Appointment/Info.vue'),
+						path: 'add',
+						name: 'GuestFromAdd',
+						component: () => import('../views/Guest/From/Add.vue'),
 						meta: {
 							requireAuth: false,
 							role: [],
-							title: '预约申请详情',
+							title: '邀请访客',
 						}
 					},
-					//申请
+					//邀请访客勾选下发设备
 					{
-						path: 'apply',
-						name: 'GuestAppointmentApply',
-						component: () => import('../views/Guest/Appointment/Apply.vue'),
+						path: 'device',
+						name: 'GuestFromDevice',
+						component: () => import('../views/Guest/From/Device.vue'),
 						meta: {
 							requireAuth: false,
 							role: [],
-							title: '预约申请',
+							title: '邀请访客勾选下发设备',
+						}
+					},
+				]
+			},
+			//受邀者
+			{
+				path: 'to',
+				component: () => import('../views/Layout.vue'),
+				children: [
+					//访问邀请函
+					{
+						path: 'info',
+						name: 'GuestToInfo',
+						component: () => import('../views/Guest/To/Info.vue'),
+						meta: {
+							requireAuth: false,
+							role: [],
+							title: '访问邀请函',
 						}
 					},
 					//添加同行人员
 					{
 						path: 'addPartner',
-						name: 'GuestAppointmentAddPartner',
-						component: () => import('../views/Guest/Appointment/AddPartner.vue'),
+						name: 'GuestToAddPartner',
+						component: () => import('../views/Guest/To/AddPartner.vue'),
+						meta: {
+							requireAuth: false,
+							role: [],
+							title: '添加同行人员',
+						}
+					},
+					//访客邀请码
+					{
+						path: 'code',
+						name: 'GuestToCode',
+						component: () => import('../views/Guest/To/Code.vue'),
 						meta: {
 							requireAuth: false,
 							role: [],
-							title: '预约添加同行人员',
+							title: '访客邀请码',
 						}
 					},
 				]

+ 0 - 0
src/projects/business/views/Guest/Appointment/AddPartner.vue → src/projects/business/views/Guest/From/Add.vue


+ 0 - 0
src/projects/business/views/Guest/Appointment/Apply.vue → src/projects/business/views/Guest/From/Device.vue


+ 0 - 0
src/projects/business/views/Guest/Appointment/List.vue → src/projects/business/views/Guest/From/List.vue


+ 0 - 8
src/projects/business/views/Guest/Home.vue

@@ -1,8 +0,0 @@
-<template>
-</template>
-
-<script>
-</script>
-
-<style>
-</style>

+ 0 - 0
src/projects/business/views/Guest/Appointment/Info.vue → src/projects/business/views/Guest/To/AddPartner.vue


+ 0 - 0
src/projects/business/views/Guest/Center.vue → src/projects/business/views/Guest/To/Code.vue


+ 0 - 0
src/projects/business/views/Guest/EditInfo.vue → src/projects/business/views/Guest/To/Info.vue