background.js 347 B

12345678910111213141516171819202122232425
  1. // pages/components/background.js
  2. const util = require("../../../utils/util");
  3. Component({
  4. /**
  5. * 组件的属性列表
  6. */
  7. properties: {
  8. background:{
  9. type: String,
  10. value: util.getBackground()
  11. }
  12. },
  13. /**
  14. * 组件的初始数据
  15. */
  16. data: {
  17. },
  18. /**
  19. * 组件的方法列表
  20. */
  21. methods: {
  22. }
  23. })