index.vue 795 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <template>
  2. <view>
  3. <view class="u-page">
  4. 1
  5. </view>
  6. <!-- 与包裹页面所有内容的元素u-page同级,且在它的下方 -->
  7. <u-tabbar v-model="current" :list="list" :mid-button="true"></u-tabbar>
  8. </view>
  9. </template>
  10. <script>
  11. export default {
  12. data() {
  13. return {
  14. list: [{
  15. iconPath: "home",
  16. selectedIconPath: "home-fill",
  17. text: '首页',
  18. count: 2,
  19. customIcon: false,
  20. },
  21. {
  22. iconPath: "home",
  23. selectedIconPath: "home-fill",
  24. text: '消息',
  25. count: 2,
  26. isDot: false,
  27. customIcon: false,
  28. },
  29. {
  30. iconPath: "account",
  31. selectedIconPath: "account-fill",
  32. text: '我的',
  33. customIcon: false,
  34. },
  35. ],
  36. current: 0
  37. };
  38. }
  39. }
  40. </script>
  41. <style lang="scss">
  42. </style>