tabbar.js 995 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. iconPath: '/static/tabbar-icon/center.png',
  19. },
  20. {
  21. text: '',
  22. count: 0,
  23. pagePath: '/pages/message/mailMessage',
  24. iconPath: '/static/tabbar-icon/message.png',
  25. selectedIconPath: '/static/tabbar-icon/messageActive.png'
  26. },
  27. {
  28. text: '',
  29. pagePath: '/pages/my/my',
  30. iconPath: '/static/tabbar-icon/mine.png',
  31. selectedIconPath: '/static/tabbar-icon/mineActive.png'
  32. }
  33. ]
  34. }
  35. },
  36. onShow() {
  37. // #ifdef APP-NVUE
  38. this.$nextTick(() => {
  39. this.$refs.tabbar && this.$refs.tabbar.payAnimation()
  40. })
  41. // #endif
  42. },
  43. }