import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/components/Index'
import DocLogin from '@/components/DocLogin'
import UserAgree from '@/components/UserAgree'
import DocIndex from '@/components/DocIndex'
import RegPatinfo from '@/components/RegPatinfo'
import RegPatpro from '@/components/RegPatpro'
import DiagCalc from '@/components/DiagCalc'
import DiagCalcShow from '@/components/DiagCalcShow'
import SolutionPkLine from '@/components/SolutionPkLine'
import PatIndex from '@/components/PatIndex'
import PatClockIn from '@/components/PatClockIn'
import PatClockInSuc from '@/components/PatClockInSuc'
import PatCaseList from '@/components/PatCaseList'
import ProCaseList from '@/components/ProCaseList'
import PatInjectionList from '@/components/PatInjectionList'
import PatRegister from '@/components/PatRegister'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: '首页',
      component: Index
    },
    {
      path: '/docLogin',
      name: '医生登录',
      component: DocLogin
    },
    {
      path: '/agreedoc',
      name: '用户隐私条款',
      component: UserAgree
    },
    {
      path: '/docindex',
      name: '医生首页',
      component: DocIndex
    },
    {
      path: '/regpatinfo',
      name: '录入患者信息',
      component: RegPatinfo
    },
    {
      path: '/regpatpro',
      name: '录入患者使用产品',
      component: RegPatpro
    },
    {
      path: '/diagcalc',
      name: '动力学检测',
      component: DiagCalc
    },
    {
      path: '/diagcalcshow',
      name: '动力学检测展示',
      component: DiagCalcShow
    },
    {
      path: '/solutionpkline',
      name: '预防治疗方案pk曲线',
      component: SolutionPkLine
    },
    {
      path: '/patindex',
      name: '患者首页',
      component: PatIndex
    },
    {
      path: '/patclockin',
      name: '患者注射打卡',
      component: PatClockIn
    },
    {
      path: '/patclockinsuc',
      name: '患者注射打卡成功',
      component: PatClockInSuc
    },
    {
      path: '/patcaselist',
      name: '病例管理',
      component: PatCaseList
    },
    {
      path: '/procaselist',
      name: '方案列表',
      component: ProCaseList
    },
    {
      path: '/patinjectionlist',
      name: '注射记录',
      component: PatInjectionList
    },
    {
      path: '/patregister',
      name: '用户注册',
      component: PatRegister
    }
  ]
})
