routes.ts 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475
  1. export default [
  2. {
  3. path: '/',
  4. component: '../layouts/BlankLayout',
  5. routes: [
  6. {
  7. path: '/',
  8. component: './Website',
  9. },
  10. {
  11. path: '/website',
  12. component: './Website/layout',
  13. routes: [
  14. {
  15. name: 'websiteauth',
  16. path: '/website/auth/:id',
  17. component: './Website/auth',
  18. hidden: true,
  19. },
  20. {
  21. name: 'websitehome',
  22. path: '/website',
  23. component: './Website/Home',
  24. },
  25. {
  26. name: 'websitearea',
  27. path: '/website/cate/:gid',
  28. component: './Website/Area',
  29. },
  30. {
  31. name: 'websiteareacategory',
  32. path: '/website/categroup',
  33. component: './Website/AreaFull',
  34. },
  35. {
  36. name: 'websitealbum',
  37. path: '/website/album',
  38. component: './Website/Album',
  39. },
  40. {
  41. name: 'websitestyle',
  42. path: '/website/style',
  43. component: './Website/Style',
  44. },
  45. {
  46. name: 'websitelist',
  47. path: '/website/list/:gid/:showid?',
  48. component: './Website/List',
  49. },
  50. {
  51. name: 'websitedisplaylist',
  52. path: '/website/display',
  53. component: './Website/DisplayList',
  54. },
  55. {
  56. name: 'websitesearch',
  57. path: '/website/search',
  58. component: './Website/Search',
  59. },
  60. {
  61. name: 'websitecustom',
  62. path: '/website/showcase',
  63. component: './Website/Custom/layout',
  64. routes: [
  65. {
  66. name: 'websitecustom',
  67. path: '/website/showcase/:cate/:gid',
  68. component: './Website/Custom/makeObj',
  69. },
  70. ],
  71. },
  72. {
  73. name: 'websitecustom',
  74. path: '/website/wxshowcase',
  75. component: './Website/Custom/wxlayout',
  76. routes: [
  77. {
  78. name: 'websitecustom',
  79. path: '/website/wxshowcase/:cate/:gid/:goodid?/:inspireId?',
  80. share: 'wechat',
  81. component: './Website/Custom/wxmakeObj',
  82. },
  83. ],
  84. },
  85. {
  86. name: 'websitemcustom',
  87. path: '/website/showauth',
  88. component: './Website/Auth/ShowAuth',
  89. },
  90. {
  91. name: 'websitemcustom',
  92. path: '/website/mshowcase/:gid',
  93. component: './Website/Custom',
  94. from: 'manage',
  95. },
  96. {
  97. name: 'website2dcase',
  98. path: '/website/2DCase/:gid/:cate?/:goodid?/:inspireId?',
  99. component: './Website/2DCase',
  100. from: 'manage',
  101. },
  102. ],
  103. },
  104. {
  105. path: '/user',
  106. component: '../layouts/UserLayout',
  107. routes: [
  108. {
  109. name: 'login',
  110. path: '/user/login',
  111. component: './User/login',
  112. },
  113. ],
  114. },
  115. {
  116. path: '/sign/:cid/:uid/:uuid?',
  117. component: './Sign',
  118. },
  119. {
  120. path: '/sign/demo',
  121. component: './Sign/demo',
  122. },
  123. {
  124. path: '/caa/:cid/:uid',
  125. component: './Sign',
  126. },
  127. {
  128. path: '/cov',
  129. component: '../layouts/CovLayout',
  130. routes: [
  131. {
  132. name: 'covproduct',
  133. path: '/cov/product/:cid/:uid',
  134. component: './SignProduct',
  135. },
  136. {
  137. name: 'covproductlist',
  138. path: '/cov/list/:cid',
  139. component: './SignProductList',
  140. },
  141. {
  142. name: 'covcart',
  143. path: '/cov/cart',
  144. component: './SignCart',
  145. },
  146. {
  147. name: 'covorder',
  148. path: '/cov/order/:gid',
  149. component: './SignOrder',
  150. },
  151. {
  152. path: '/cov/sign/:cid/:uid/:uuid?',
  153. component: './Sign',
  154. },
  155. ],
  156. },
  157. {
  158. path: '/admin',
  159. component: '../layouts/SecurityLayout',
  160. routes: [
  161. {
  162. path: '/admin',
  163. component: '../layouts/BasicLayout',
  164. authority: ['admin', 'user'],
  165. routes: [
  166. {
  167. path: '/admin',
  168. redirect: '/admin/welcome',
  169. },
  170. {
  171. path: '/admin/welcome',
  172. name: 'welcome',
  173. icon: 'smile',
  174. authority: ['Pages.Roles', 'Pages.Users'],
  175. component: './Welcome',
  176. },
  177. {
  178. path: '/admin/sys',
  179. name: 'sys',
  180. icon: 'smile',
  181. authority: ['Pages.Roles'],
  182. routes: [
  183. {
  184. path: '/admin/sys/users',
  185. name: 'users',
  186. icon: 'smile',
  187. authority: ['Pages.Users'],
  188. component: './User/Sys',
  189. },
  190. {
  191. path: '/admin/sys/roles',
  192. name: 'roles',
  193. icon: 'smile',
  194. authority: ['Pages.Roles'],
  195. component: './Roles',
  196. },
  197. ],
  198. },
  199. {
  200. path: '/admin/myconv',
  201. name: 'myself',
  202. icon: 'smile',
  203. authority: ['Pages.Users.Convention'],
  204. component: './User/Convetion',
  205. },
  206. {
  207. path: '/admin/convetion',
  208. name: 'convetion',
  209. icon: 'smile',
  210. authority: ['Pages.Convetion'],
  211. component: './Convetion',
  212. },
  213. {
  214. path: '/admin/product',
  215. name: 'product',
  216. icon: 'smile',
  217. authority: ['Pages.Product'],
  218. component: './Product',
  219. },
  220. {
  221. path: '/admin/order',
  222. name: 'order',
  223. icon: 'smile',
  224. authority: ['Pages.ConvetionOrder'],
  225. component: './ConvetionOrder',
  226. },
  227. {
  228. path: '/admin/tag',
  229. name: 'tag',
  230. icon: 'smile',
  231. authority: ['Pages.AlbumTagGroup'],
  232. component: './AlbumTag',
  233. },
  234. {
  235. path: '/admin/tagadv',
  236. name: 'tagadv',
  237. icon: 'smile',
  238. authority: ['Pages.AlbumTagGroup'],
  239. component: './AlbumTag',
  240. mode: 'adv',
  241. },
  242. {
  243. name: 'covotheme',
  244. path: '/admin/theme',
  245. icon: 'smile',
  246. authority: ['Pages.ConvetionTheme'],
  247. routes: [
  248. {
  249. name: 'list',
  250. path: '/admin/theme',
  251. icon: 'smile',
  252. authority: ['Pages.ConvetionTheme'],
  253. component: './ConvetionTheme',
  254. },
  255. {
  256. name: 'design',
  257. path: '/admin/theme/edit/:id',
  258. icon: 'smile',
  259. authority: ['Pages.ConvetionTheme.Edit'],
  260. component: './ConvetionTheme/designmodal',
  261. hideInMenu: true,
  262. },
  263. ],
  264. },
  265. {
  266. path: '/admin/log',
  267. name: 'syslog',
  268. icon: 'block',
  269. authority: ['Pages.UserExport', 'Pages.UserSms'],
  270. routes: [
  271. {
  272. path: '/admin/log/sms',
  273. name: 'sms',
  274. authority: ['Pages.UserSms'],
  275. component: './UserSms',
  276. },
  277. {
  278. path: '/admin/log/exports',
  279. name: 'exports',
  280. authority: ['Pages.UserExport'],
  281. component: './UserExport',
  282. },
  283. ],
  284. },
  285. {
  286. path: '/admin/album',
  287. name: 'album',
  288. icon: 'smile',
  289. authority: ['Pages.Roles'],
  290. routes: [
  291. {
  292. path: '/admin/album/manage',
  293. name: 'manage',
  294. icon: 'smile',
  295. authority: ['Pages.Roles'],
  296. component: './Album',
  297. },
  298. ],
  299. },
  300. {
  301. path: '/admin/wxuser',
  302. name: 'wxuser',
  303. icon: 'user',
  304. // authority: ['Pages.Users.WxUserCurrent', 'Pages.Users.WxUser'],
  305. authority: ['Pages.Users.WxUserCurrent'],
  306. routes: [
  307. {
  308. path: '/admin/wxuser/manage',
  309. name: 'manage',
  310. icon: 'user',
  311. authority: ['Pages.Users.WxUserCurrent'],
  312. component: './WxUser',
  313. },
  314. {
  315. path: '/admin/wxuser/current',
  316. name: 'current',
  317. icon: 'user',
  318. authority: ['Pages.Users.WxUserCurrent'],
  319. component: './WxUser/personal',
  320. },
  321. {
  322. path: '/admin/wxuser/black',
  323. name: 'black',
  324. icon: 'user',
  325. authority: ['Pages.Users.WxUserCurrent'],
  326. component: './WxUser/black',
  327. },
  328. ],
  329. },
  330. {
  331. path: '/admin/carousel',
  332. name: 'carousel',
  333. icon: 'user',
  334. authority: ['Pages.Carousel'],
  335. routes: [
  336. {
  337. path: '/admin/carousel/manage',
  338. name: 'manage',
  339. icon: 'user',
  340. authority: ['Pages.Carousel'],
  341. component: './Carousel',
  342. },
  343. ],
  344. },
  345. {
  346. path: '/admin/display',
  347. name: 'display',
  348. icon: 'user',
  349. authority: ['Pages.Display'],
  350. routes: [
  351. {
  352. path: '/admin/display/manage',
  353. name: 'manage',
  354. icon: 'user',
  355. authority: ['Pages.Display'],
  356. component: './Display',
  357. },
  358. ],
  359. },
  360. {
  361. path: '/admin/albumsettings',
  362. name: 'albumsettings',
  363. icon: 'user',
  364. authority: ['Pages.AlbumBorder', 'Pages.AlbumDecorator'],
  365. routes: [
  366. {
  367. path: '/admin/albumsettings/albumborder',
  368. name: 'manageborder',
  369. icon: 'user',
  370. authority: ['Pages.AlbumBorder'],
  371. component: './AlbumBorder',
  372. },
  373. {
  374. path: '/admin/albumsettings/albumdecorator',
  375. name: 'managedecorator',
  376. icon: 'user',
  377. authority: ['Pages.AlbumDecorator'],
  378. component: './AlbumDecorator',
  379. },
  380. ],
  381. },
  382. {
  383. path: '/admin/app/goodcategory',
  384. name: 'wxgoodcategory',
  385. icon: 'laptop',
  386. authority: ['Pages.WxGoodCategory'],
  387. component: './app/GoodCategory',
  388. },
  389. {
  390. path: '/admin/app/goodcategoryadv',
  391. name: 'wxgoodcategoryadv',
  392. icon: 'laptop',
  393. authority: ['Pages.WxGoodCategoryAdv'],
  394. component: './app/GoodCategoryAdv',
  395. },
  396. {
  397. path: '/admin/app/goodborder',
  398. name: 'wxgoodborders',
  399. icon: 'laptop',
  400. authority: ['Pages.WxGoodBorder'],
  401. component: './app/GoodBorder',
  402. },
  403. {
  404. path: '/admin/app/goods',
  405. name: 'wxgoods',
  406. icon: 'laptop',
  407. authority: ['Pages.WxGood'],
  408. component: './app/Goods',
  409. },
  410. {
  411. path: '/admin/app/goodorders',
  412. name: 'wxgoodorders',
  413. icon: 'laptop',
  414. authority: ['Pages.WxGoodOrder'],
  415. component: './app/GoodOrder',
  416. },
  417. {
  418. path: '/admin/app/myorders',
  419. name: 'mywxgoodorders',
  420. icon: 'laptop',
  421. authority: ['Pages.WxGoodOrder.PersonalQuery'],
  422. component: './app/GoodOrder',
  423. mode: 'personal',
  424. },
  425. {
  426. path: '/admin/app/actives',
  427. name: 'mywxactives',
  428. icon: 'laptop',
  429. authority: ['Pages.WxActive'],
  430. component: './app/Actives',
  431. },
  432. {
  433. path: '/admin/app/wxalbum',
  434. name: 'wxalbums',
  435. icon: 'laptop',
  436. authority: ['Pages.WxAlbumCate'],
  437. component: './app/AlbumCate',
  438. },
  439. {
  440. path: '/admin/app/wxarousel',
  441. name: 'wxarousels',
  442. icon: 'laptop',
  443. authority: ['Pages.WxCarousel'],
  444. component: './app/Carousel',
  445. },
  446. {
  447. path: '/admin/app/extra',
  448. name: 'wxhomeextra',
  449. icon: 'laptop',
  450. authority: ['Pages.WxHomeExtra'],
  451. component: './WxHomeExtra',
  452. },
  453. {
  454. path: '/admin/app/account',
  455. name: 'wxappaccount',
  456. icon: 'laptop',
  457. authority: ['Pages.Users.WxOpenUser'],
  458. component: './WxOpenUser',
  459. },
  460. {
  461. component: './404',
  462. },
  463. ],
  464. },
  465. {
  466. component: './404',
  467. },
  468. ],
  469. },
  470. ],
  471. },
  472. {
  473. component: './404',
  474. },
  475. ]