12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- import store from '@/store';
- const colorMatching = [
- {
- main: '#3479FF',
- background: 'rgba(52, 121, 255, 0.05)',
- border: 'rgba(52, 121, 255, 0.15)'
- },
- {
- main: '#754BEE',
- background: 'rgba(117, 75, 238, 0.05)',
- border: 'rgba(117, 75, 238, 0.15)'
- },
- {
- main: '#FF7134',
- background: 'rgba(255, 52, 52, 0.05)',
- border: 'rgba(255, 52, 52, 0.15)'
- },
- {
- main: '#56BD05',
- background: 'rgba(86, 189, 5, 0.05)',
- border: 'rgba(86, 189, 5, 0.15)'
- },
- {
- main: '#00BD84',
- background: 'rgba(0, 189, 132, 0.05)',
- border: 'rgba(0, 189, 132, 0.15)'
- },
- {
- main: '#DF339A',
- background: 'rgba(223, 51, 154, 0.05)',
- border: 'rgba(223, 51, 154, 0.15)'
- },
- {
- main: '#CF7B18',
- background: 'rgba(207, 123, 24, 0.05)',
- border: 'rgba(207, 123, 24, 0.15)'
- }
- ];
- const buttonColorList = new Map([
- [0, '#63A1FF'],
- [1, '#f90'],
- [2, '#00CD8F']
- ]);
- function getMenuList() {
- let popedom_code_list = store.state.user.popedom_code_list;
- let isStudent = store.state.user.user_type === 'STUDENT';
- return [
- {
- name: 'Key289',
- tab: 'TaskList',
- isShow: isStudent || popedom_code_list.includes(2000001)
- },
- {
- name: 'Key215',
- tab: 'CurriculaList',
- isShow: isStudent || popedom_code_list.includes(2000001)
- },
- {
- name: 'Key290',
- tab: 'TemplateList',
- isShow: !isStudent && popedom_code_list.includes(2000002)
- }
- ];
- }
- export { colorMatching, getMenuList, buttonColorList };
|