import Vue from 'vue'
import Router from 'vue-router'
// import getCode from '@/page/getCode/getCode'
import index from '@/page/index'
import lotteryList from '@/page/lotteryList'
import lotteryDetail from '@/page/lotteryDetail'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: index
    },
    {
      path: '/from/:id',
      name: 'share',
      component: index
    },
    {
      path: '/lotteryList',
      name: 'lotteryList',
      component: lotteryList
    },
    {
      path: '/lotteryDetail',
      name: 'lotteryDetail',
      component: lotteryDetail
    }
  ]
})
