移动端
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

68 行
1.7 KiB

  1. <template>
  2. <div class="fotter">
  3. <router-view />
  4. <van-tabbar route active-color="#33db89" @change="onChange" class="aa">
  5. <van-tabbar-item to="/newBusinessEntity/index">
  6. <span>全部</span>
  7. <template #icon="props">
  8. <img src="../../assets/images/Newbusinessentity/001_03.jpg" />
  9. </template>
  10. </van-tabbar-item>
  11. <van-tabbar-item to="/newBusinessEntity/index">
  12. <template >
  13. <img src="../../assets/images/Newbusinessentity/001_05.jpg" />
  14. </template>
  15. <p>供求</p>
  16. </van-tabbar-item>
  17. <!-- <van-tabbar-item replace to="">
  18. 供求
  19. <template #icon="props">
  20. <img :src="props.active ? '../../assets/images/Newbusinessentity/001_05.jpg' : '../../assets/images/Newbusinessentity/001_05.jpg'" />
  21. </template>
  22. </van-tabbar-item> -->
  23. <!-- <van-tabbar-item replace to="/newBusinessEntity/index" icon="home-o">全部</van-tabbar-item> -->
  24. <!-- <van-tabbar-item replace to="/search" icon="search">供求</van-tabbar-item> -->
  25. <van-tabbar-item replace to="/newBusinessEntity/login" icon="search"
  26. >我的</van-tabbar-item
  27. >
  28. </van-tabbar>
  29. </div>
  30. </template>
  31. <script>
  32. export default {
  33. name: "conter",
  34. data() {
  35. return {
  36. active: 0,
  37. icon: {
  38. active: "../../assets/images/Newbusinessentity/001_03.jpg",
  39. inactive: "https://img01.yzcdn.cn/vant/user-inactive.png",
  40. },
  41. };
  42. },
  43. methods: {
  44. onChange(index) {
  45. this.active = index;
  46. },
  47. },
  48. };
  49. </script>
  50. <style scoped lang="scss">
  51. .fotter {
  52. position: relative;
  53. height: 0.1rem;
  54. }
  55. .aa {
  56. position: absolute;
  57. }
  58. .van-tabbar-item__text{
  59. display: flex;
  60. flex-direction:column;
  61. }
  62. </style>