config.js 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  1. export const settings = {
  2. mode: 'history',
  3. base: process.env.BASE_URL,
  4. scrollBehavior() {
  5. return {
  6. x: 0,
  7. y: 0
  8. }
  9. },
  10. routes: [{
  11. path: '/',
  12. name: 'home',
  13. component: () => import('@/views/Home.vue'),
  14. meta: {
  15. pageTitle: '首頁',
  16. breadcrumb: [{
  17. text: '首頁',
  18. active: true,
  19. }, ],
  20. },
  21. },
  22. {
  23. path: '/activityList',
  24. name: 'activityList',
  25. component: () => import('@/views/lottery/Activities/ActivityList.vue'),
  26. meta: {
  27. pageTitle: '活動列表',
  28. breadcrumb: [{
  29. text: '活動列表',
  30. active: true,
  31. }, ],
  32. requiresAuth: false,
  33. },
  34. },
  35. {
  36. path: '/activityPage/:activity_id',
  37. name: 'activityPage',
  38. component: () => import('@/views/lottery/Activities/ActivityPage.vue'),
  39. meta: {
  40. pageTitle: '活動功能頁面',
  41. breadcrumb: [{
  42. text: '活動列表',
  43. to: '/activityList'
  44. },
  45. {
  46. text: '活動功能頁面',
  47. active: true,
  48. },
  49. ],
  50. requiresAuth: false,
  51. },
  52. },
  53. {
  54. path: '/activityStore',
  55. name: 'activityStore',
  56. component: () => import('@/views/lottery/Activities/ActivityStore.vue'),
  57. meta: {
  58. pageTitle: '新增活動',
  59. breadcrumb: [{
  60. text: '活動列表',
  61. to: '/activityList'
  62. },
  63. {
  64. text: '新增活動',
  65. active: true,
  66. },
  67. ],
  68. requiresAuth: true,
  69. },
  70. },
  71. {
  72. path: '/activityUpdate/:activity_id',
  73. name: 'activityUpdate',
  74. component: () => import('@/views/lottery/Activities/ActivityUpdate.vue'),
  75. meta: {
  76. pageTitle: '編輯活動資訊',
  77. breadcrumb: [{
  78. text: '活動列表',
  79. to: '/activityList'
  80. },
  81. {
  82. text: '活動功能頁面',
  83. to: '/activityPage'
  84. },
  85. {
  86. text: '編輯活動資訊',
  87. active: true,
  88. },
  89. ],
  90. requiresAuth: true,
  91. },
  92. },
  93. {
  94. path: '/claim/:activity_id',
  95. name: 'claim',
  96. component: () => import('@/views/lottery/PrizeClaim.vue'),
  97. meta: {
  98. pageTitle: '兌獎',
  99. breadcrumb: [{
  100. text: '活動列表',
  101. to: '/activityList'
  102. },
  103. {
  104. text: '活動功能頁面',
  105. to: '/activityPage'
  106. },
  107. {
  108. text: '兌獎',
  109. active: true,
  110. },
  111. ],
  112. requiresAuth: true,
  113. },
  114. },
  115. {
  116. path: '/prizeList/:activity_id?',
  117. name: 'prizeList',
  118. component: () => import('@/views/lottery/PrizeList.vue'),
  119. meta: {
  120. layout: 'full',
  121. pageTitle: '中獎清單',
  122. breadcrumb: [{
  123. text: '活動列表',
  124. to: '/activityList'
  125. },
  126. {
  127. text: '活動功能頁面',
  128. to: '/activityPage'
  129. },
  130. {
  131. text: '中獎清單',
  132. active: true,
  133. },
  134. ],
  135. requiresAuth: false,
  136. },
  137. },
  138. {
  139. path: '/slot/:activity_id',
  140. name: 'slot',
  141. component: () => import('@/views/lottery/Slot.vue'),
  142. meta: {
  143. layout: 'full',
  144. pageTitle: 'slot',
  145. requiresAuth: true,
  146. },
  147. },
  148. {
  149. path: '/slotManager/:activity_id',
  150. name: 'slotManager',
  151. component: () => import('@/views/lottery/SlotManager.vue'),
  152. meta: {
  153. pageTitle: '抽獎管理',
  154. breadcrumb: [{
  155. text: '活動列表',
  156. to: '/activityList'
  157. },
  158. {
  159. text: '活動功能頁面',
  160. to: '/activityPage'
  161. },
  162. {
  163. text: '抽獎管理',
  164. active: true,
  165. },
  166. ],
  167. requiresAuth: true,
  168. },
  169. },
  170. {
  171. path: '/randomTest/:activity_id',
  172. name: 'randomTest',
  173. component: () => import('@/views/lottery/RandomTest.vue'),
  174. meta: {
  175. pageTitle: '亂數測試',
  176. breadcrumb: [{
  177. text: '活動列表',
  178. to: '/activityList'
  179. },
  180. {
  181. text: '活動功能頁面',
  182. to: '/activityPage'
  183. },
  184. {
  185. text: '亂數測試',
  186. active: true,
  187. },
  188. ],
  189. requiresAuth: true,
  190. },
  191. },
  192. {
  193. path: '/permission',
  194. name: 'permission',
  195. component: () => import('@/views/permission.vue'),
  196. meta: {
  197. pageTitle: '權限',
  198. breadcrumb: [{
  199. text: '權限',
  200. active: true,
  201. }, ],
  202. requiresAuth: true,
  203. },
  204. },
  205. {
  206. path: '/login',
  207. name: 'login',
  208. component: () => import('@/views/Login.vue'),
  209. meta: {
  210. layout: 'full',
  211. },
  212. },
  213. {
  214. path: '/not-authorized',
  215. name: 'not-authorized',
  216. component: () => import('@/views/error/NotAuthorized.vue'),
  217. meta: {
  218. layout: 'full',
  219. },
  220. },
  221. {
  222. path: '/error-404',
  223. name: 'error-404',
  224. component: () => import('@/views/error/Error404.vue'),
  225. meta: {
  226. layout: 'full',
  227. },
  228. },
  229. {
  230. path: '*',
  231. redirect: 'error-404',
  232. },
  233. {
  234. path: '/draw/:activity_id',
  235. name: 'draw',
  236. component: () => import('@/views/lottery/Draw.vue'),
  237. meta: {
  238. pageTitle: '抽獎',
  239. breadcrumb: [{
  240. text: '活動列表',
  241. to: '/activityList'
  242. },
  243. {
  244. text: '活動功能頁面',
  245. to: '/activityPage'
  246. }, {
  247. text: '抽獎',
  248. active: true,
  249. },
  250. ],
  251. },
  252. },
  253. {
  254. path: '/checkin/:activity_id',
  255. name: 'checkin',
  256. component: () => import('@/views/lottery/CheckIn.vue'),
  257. meta: {
  258. pageTitle: '報到系統',
  259. breadcrumb: [{
  260. text: '活動列表',
  261. to: '/activityList'
  262. },
  263. {
  264. text: '活動功能頁面',
  265. to: '/activityPage'
  266. },
  267. {
  268. text: '報到系統',
  269. active: true,
  270. },
  271. ],
  272. requiresAuth: true,
  273. },
  274. },
  275. {
  276. path: '/search/:activity_id',
  277. name: 'search',
  278. component: () => import('@/views/lottery/Search.vue'),
  279. meta: {
  280. pageTitle: '查詢系統',
  281. breadcrumb: [{
  282. text: '活動列表',
  283. to: '/activityList'
  284. },
  285. {
  286. text: '活動功能頁面',
  287. to: '/activityPage'
  288. },
  289. {
  290. text: '查詢系統',
  291. active: true,
  292. },
  293. ],
  294. requiresAuth: false,
  295. },
  296. },
  297. ],
  298. }
  299. export const _ = undefined