| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301 |
- export const settings = {
- mode: 'history',
- base: process.env.BASE_URL,
- scrollBehavior() {
- return {
- x: 0,
- y: 0
- }
- },
- routes: [{
- path: '/',
- name: 'home',
- component: () => import('@/views/Home.vue'),
- meta: {
- pageTitle: '首頁',
- breadcrumb: [{
- text: '首頁',
- active: true,
- }, ],
- },
- },
- {
- path: '/activityList',
- name: 'activityList',
- component: () => import('@/views/lottery/Activities/ActivityList.vue'),
- meta: {
- pageTitle: '活動列表',
- breadcrumb: [{
- text: '活動列表',
- active: true,
- }, ],
- requiresAuth: false,
- },
- },
- {
- path: '/activityPage/:activity_id',
- name: 'activityPage',
- component: () => import('@/views/lottery/Activities/ActivityPage.vue'),
- meta: {
- pageTitle: '活動功能頁面',
- breadcrumb: [{
- text: '活動列表',
- to: '/activityList'
- },
- {
- text: '活動功能頁面',
- active: true,
- },
- ],
- requiresAuth: false,
- },
- },
- {
- path: '/activityStore',
- name: 'activityStore',
- component: () => import('@/views/lottery/Activities/ActivityStore.vue'),
- meta: {
- pageTitle: '新增活動',
- breadcrumb: [{
- text: '活動列表',
- to: '/activityList'
- },
- {
- text: '新增活動',
- active: true,
- },
- ],
- requiresAuth: true,
- },
- },
- {
- path: '/activityUpdate/:activity_id',
- name: 'activityUpdate',
- component: () => import('@/views/lottery/Activities/ActivityUpdate.vue'),
- meta: {
- pageTitle: '編輯活動資訊',
- breadcrumb: [{
- text: '活動列表',
- to: '/activityList'
- },
- {
- text: '活動功能頁面',
- to: '/activityPage'
- },
- {
- text: '編輯活動資訊',
- active: true,
- },
- ],
- requiresAuth: true,
- },
- },
- {
- path: '/claim/:activity_id',
- name: 'claim',
- component: () => import('@/views/lottery/PrizeClaim.vue'),
- meta: {
- pageTitle: '兌獎',
- breadcrumb: [{
- text: '活動列表',
- to: '/activityList'
- },
- {
- text: '活動功能頁面',
- to: '/activityPage'
- },
- {
- text: '兌獎',
- active: true,
- },
- ],
- requiresAuth: true,
- },
- },
- {
- path: '/prizeList/:activity_id?',
- name: 'prizeList',
- component: () => import('@/views/lottery/PrizeList.vue'),
- meta: {
- layout: 'full',
- pageTitle: '中獎清單',
- breadcrumb: [{
- text: '活動列表',
- to: '/activityList'
- },
- {
- text: '活動功能頁面',
- to: '/activityPage'
- },
- {
- text: '中獎清單',
- active: true,
- },
- ],
- requiresAuth: false,
- },
- },
- {
- path: '/slot/:activity_id',
- name: 'slot',
- component: () => import('@/views/lottery/Slot.vue'),
- meta: {
- layout: 'full',
- pageTitle: 'slot',
- requiresAuth: true,
- },
- },
- {
- path: '/slotManager/:activity_id',
- name: 'slotManager',
- component: () => import('@/views/lottery/SlotManager.vue'),
- meta: {
- pageTitle: '抽獎管理',
- breadcrumb: [{
- text: '活動列表',
- to: '/activityList'
- },
- {
- text: '活動功能頁面',
- to: '/activityPage'
- },
- {
- text: '抽獎管理',
- active: true,
- },
- ],
- requiresAuth: true,
- },
- },
- {
- path: '/randomTest/:activity_id',
- name: 'randomTest',
- component: () => import('@/views/lottery/RandomTest.vue'),
- meta: {
- pageTitle: '亂數測試',
- breadcrumb: [{
- text: '活動列表',
- to: '/activityList'
- },
- {
- text: '活動功能頁面',
- to: '/activityPage'
- },
- {
- text: '亂數測試',
- active: true,
- },
- ],
- requiresAuth: true,
- },
- },
- {
- path: '/permission',
- name: 'permission',
- component: () => import('@/views/permission.vue'),
- meta: {
- pageTitle: '權限',
- breadcrumb: [{
- text: '權限',
- active: true,
- }, ],
- requiresAuth: true,
- },
- },
- {
- path: '/login',
- name: 'login',
- component: () => import('@/views/Login.vue'),
- meta: {
- layout: 'full',
- },
- },
- {
- path: '/not-authorized',
- name: 'not-authorized',
- component: () => import('@/views/error/NotAuthorized.vue'),
- meta: {
- layout: 'full',
- },
- },
- {
- path: '/error-404',
- name: 'error-404',
- component: () => import('@/views/error/Error404.vue'),
- meta: {
- layout: 'full',
- },
- },
- {
- path: '*',
- redirect: 'error-404',
- },
- {
- path: '/draw/:activity_id',
- name: 'draw',
- component: () => import('@/views/lottery/Draw.vue'),
- meta: {
- pageTitle: '抽獎',
- breadcrumb: [{
- text: '活動列表',
- to: '/activityList'
- },
- {
- text: '活動功能頁面',
- to: '/activityPage'
- }, {
- text: '抽獎',
- active: true,
- },
- ],
- },
- },
- {
- path: '/checkin/:activity_id',
- name: 'checkin',
- component: () => import('@/views/lottery/CheckIn.vue'),
- meta: {
- pageTitle: '報到系統',
- breadcrumb: [{
- text: '活動列表',
- to: '/activityList'
- },
- {
- text: '活動功能頁面',
- to: '/activityPage'
- },
- {
- text: '報到系統',
- active: true,
- },
- ],
- requiresAuth: true,
- },
- },
- {
- path: '/search/:activity_id',
- name: 'search',
- component: () => import('@/views/lottery/Search.vue'),
- meta: {
- pageTitle: '查詢系統',
- breadcrumb: [{
- text: '活動列表',
- to: '/activityList'
- },
- {
- text: '活動功能頁面',
- to: '/activityPage'
- },
- {
- text: '查詢系統',
- active: true,
- },
- ],
- requiresAuth: false,
- },
- },
- ],
- }
- export const _ = undefined
|