tabbar.js 658 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. export default {
  2. data() {
  3. return {
  4. tabbarList: [{
  5. text: "房间",
  6. icon: "home",
  7. path: '/pages/tabbar/room/room'
  8. },
  9. {
  10. text: "网关",
  11. icon: "order",
  12. path: '/pages/tabbar/gateway/gateway'
  13. },
  14. {
  15. text: "首页",
  16. icon: "grid",
  17. path: '/pages/tabbar/index/index'
  18. },
  19. {
  20. text: "蓝牙",
  21. icon: "play-right",
  22. path: '/pages/tabbar/Bluetooth/Bluetooth'
  23. },
  24. {
  25. text: "我的",
  26. icon: "account",
  27. path: '/pages/tabbar/mine/mine'
  28. }
  29. ]
  30. };
  31. },
  32. methods: {
  33. changeRouter(item) {
  34. console.log(item.path);
  35. uni.redirectTo({
  36. url: item.path
  37. })
  38. }
  39. }
  40. }