color.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // +----------------------------------------------------------------------
  2. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  3. // +----------------------------------------------------------------------
  4. // | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
  5. // +----------------------------------------------------------------------
  6. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  7. // +----------------------------------------------------------------------
  8. // | Author: CRMEB Team <admin@crmeb.com>
  9. // +----------------------------------------------------------------------
  10. export default {
  11. data() {
  12. return {
  13. colorStyle: '',
  14. navigation: 0,
  15. colorNum: 0
  16. };
  17. },
  18. created() {
  19. this.colorStyle = uni.getStorageSync('viewColor')
  20. uni.$on('ok', data => {
  21. this.colorStyle = data
  22. })
  23. this.navigation = uni.getStorageSync('navigation')
  24. uni.$on('navOk', data => {
  25. this.navigation = data
  26. })
  27. },
  28. methods: {
  29. colorData(){
  30. this.colorNum = uni.getStorageSync('statusColor')
  31. uni.$on('colorOk', data => {
  32. this.colorNum = data
  33. })
  34. }
  35. }
  36. };