import {
	createRouter,
	createWebHashHistory
} from 'vue-router'
import PreviewReport from '../views/PreviewReport.vue'
const router = createRouter({
	history: createWebHashHistory(import.meta.env.BASE_URL),
	routes: [{
		path: '/',
		name: 'login1',
		// route level code-splitting
		// this generates a separate chunk (About.[hash].js) for this route
		// which is lazy-loaded when the route is visited.
		component: () => import('../views/Login.vue')
	},{
		path: '/applogin',
		name: 'applogin',
		component: () => import('../views/AppLogin.vue')
	},{
		path: '/login',
		name: 'login',
		component: () => import('../views/Login.vue')
	},{
		path: '/getWxCode/:code',
		name: 'getWxCode',
		component: () => import('../views/GetWxCode.vue')
	},{
		path: '/register',
		name: 'Register',
		component: () => import('../views/register.vue')
	},{
		path: '/selectOrganization',
		name: 'SelectOrganization',
		component: () => import('../views/SelectOrganization.vue')
	},{
		path: '/documentSubmit',
		name: 'DocumentSubmit',
		component: () => import('../views/SelectIndustry.vue')
	},{
		path: '/selectDate',
		name: 'SelectDate',
		component: () => import('../views/SelectDate.vue')
	},{
		path: '/yuYueSuccess',
		name: 'YuYueSuccess',
		component: () => import('../views/YuYueSuccess.vue')
	},{
		path: '/showReport',
		name: 'ShowReport',
		component: () => import('../views/ShowReport.vue')
	},{
		path: '/healthCertificate',
		name: 'HealthCertificate',
		component: () => import('../views/HealthCertificate.vue')
	},{
		path: '/uploadFiles',
		name: 'UploadFiles',
		component: () => import('../views/UploadFiles.vue')
	},{
		path: '/uploadFilesNoApp',
		name: 'UploadFilesNoApp',
		component: () => import('../views/UploadFilesNoApp.vue')
	},{
		path: '/previewReport',
		name: 'PreviewReport',
		component:PreviewReport
	},{
		path: '/personReportLogin',
		name: 'PersonReportLogin',
		component: () => import('../views/PersonReportLogin.vue')
	},{
		path: '/myappointment',
		name: 'MyAppointment',
		component: () => import('../views/MyAppointment.vue')
	},{
		path: '/selectchecktype',
		name: 'SelectCheckType',
		component: () => import('../views/SelectCheckType.vue')
	}]
})

export default router