tabbar.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. export default {
  2. data() {
  3. return {
  4. tabbars: [{
  5. text: '遇见',
  6. pagePath: '/pages/index/index',
  7. iconPath: '/static/tabbar-icon/index.png',
  8. selectedIconPath: '/static/tabbar-icon/indexActive.png'
  9. },
  10. {
  11. text: '创作',
  12. pagePath: '/pages/make/index',
  13. iconPath: '/static/tabbar-icon/make.png',
  14. selectedIconPath: '/static/tabbar-icon/makeActive.png'
  15. },
  16. {
  17. type: 'midButton',
  18. pagePath: '/pages/isLand/homeLand',
  19. iconPath: '/static/tabbar-icon/center.png',
  20. selectedIconPath: '/static/tabbar-icon/center.png'
  21. },
  22. {
  23. text: '消息',
  24. count: 0,
  25. pagePath: '/pages/message/mailMessage',
  26. iconPath: '/static/tabbar-icon/message.png',
  27. selectedIconPath: '/static/tabbar-icon/messageActive.png'
  28. },
  29. {
  30. text: '我的',
  31. pagePath: '/pages/my/my',
  32. iconPath: '/static/tabbar-icon/mine.png',
  33. selectedIconPath: '/static/tabbar-icon/mineActive.png'
  34. }
  35. ]
  36. }
  37. },
  38. onShow() {
  39. // #ifdef APP-NVUE
  40. this.$nextTick(() => {
  41. this.$refs.tabbar && this.$refs.tabbar.payAnimation()
  42. })
  43. // #endif
  44. },
  45. }