index.js 658 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. // components/navbar/index.js
  2. Component({
  3. /**
  4. * 组件的属性列表
  5. */
  6. properties: {
  7. },
  8. /**
  9. * 组件的初始数据
  10. */
  11. data: {
  12. activeMenu: 'index',
  13. menus: [{
  14. name: '首页',
  15. img: 'https://t18.9026.com/mini/index',
  16. key: 'index',
  17. url: '/pages/index/index'
  18. }, {
  19. name: '数据中心',
  20. img: 'https://t18.9026.com/mini/data',
  21. key: 'data',
  22. url: '/pages/data/index'
  23. }, {
  24. name: '个人中心',
  25. img: 'https://t18.9026.com/mini/account',
  26. key: 'account',
  27. url: '/pages/account/index'
  28. }]
  29. },
  30. /**
  31. * 组件的方法列表
  32. */
  33. methods: {
  34. }
  35. })