data.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. import store from '@/store';
  2. const colorMatching = [
  3. {
  4. main: '#3479FF',
  5. background: 'rgba(52, 121, 255, 0.05)',
  6. border: 'rgba(52, 121, 255, 0.15)'
  7. },
  8. {
  9. main: '#754BEE',
  10. background: 'rgba(117, 75, 238, 0.05)',
  11. border: 'rgba(117, 75, 238, 0.15)'
  12. },
  13. {
  14. main: '#FF7134',
  15. background: 'rgba(255, 52, 52, 0.05)',
  16. border: 'rgba(255, 52, 52, 0.15)'
  17. },
  18. {
  19. main: '#56BD05',
  20. background: 'rgba(86, 189, 5, 0.05)',
  21. border: 'rgba(86, 189, 5, 0.15)'
  22. },
  23. {
  24. main: '#00BD84',
  25. background: 'rgba(0, 189, 132, 0.05)',
  26. border: 'rgba(0, 189, 132, 0.15)'
  27. },
  28. {
  29. main: '#DF339A',
  30. background: 'rgba(223, 51, 154, 0.05)',
  31. border: 'rgba(223, 51, 154, 0.15)'
  32. },
  33. {
  34. main: '#CF7B18',
  35. background: 'rgba(207, 123, 24, 0.05)',
  36. border: 'rgba(207, 123, 24, 0.15)'
  37. }
  38. ];
  39. const buttonColorList = ['#f90', '#00CD8F', '#63A1FF'];
  40. function getMenuList() {
  41. let popedom_code_list = store.state.user.popedom_code_list;
  42. let isStudent = store.state.user.user_type === 'STUDENT';
  43. return [
  44. {
  45. name: 'Key289',
  46. tab: 'TaskList',
  47. isShow: isStudent || popedom_code_list.includes(2000001)
  48. },
  49. {
  50. name: 'Key215',
  51. tab: 'CurriculaList',
  52. isShow: isStudent || popedom_code_list.includes(2000001)
  53. },
  54. {
  55. name: 'Key290',
  56. tab: 'TemplateList',
  57. isShow: !isStudent && popedom_code_list.includes(2000002)
  58. }
  59. ];
  60. }
  61. export { colorMatching, getMenuList, buttonColorList };