setTheme.js 1002 B

1234567891011121314151617181920212223242526272829303132
  1. // +----------------------------------------------------------------------
  2. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  3. // +----------------------------------------------------------------------
  4. // | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
  5. // +----------------------------------------------------------------------
  6. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  7. // +----------------------------------------------------------------------
  8. // | Author: CRMEB Team <admin@crmeb.com>
  9. // +----------------------------------------------------------------------
  10. import Cache from '@/utils/cache.js';
  11. let app = getApp();
  12. export function setThemeColor(){
  13. switch (app.globalData.theme) {
  14. case 'theme1':
  15. return '#e93323';
  16. break;
  17. case 'theme2':
  18. return '#FE5C2D';
  19. break;
  20. case 'theme3':
  21. return '#42CA4D';
  22. break;
  23. case 'theme4':
  24. return '#1DB0FC';
  25. break;
  26. case 'theme5':
  27. return '#FF448F';
  28. break;
  29. }
  30. }