color.js 268 B

123456789101112131415161718
  1. export default {
  2. data() {
  3. return {
  4. colorStyle: '',
  5. colorStatus: ''
  6. };
  7. },
  8. created() {
  9. this.colorStyle = uni.getStorageSync('viewColor')
  10. uni.$on('ok', (data, status) => {
  11. this.colorStyle = data
  12. this.colorStatus = status
  13. })
  14. },
  15. methods: {}
  16. };