mntabBar.vue 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <template>
  2. <view>
  3. <view style="height: 75px"></view>
  4. <view class="cu-bar tabbar bg-gray shadow foot">
  5. <view class="action" :class="footerTab == '0' ? 'text-red' : 'text-black'" @tap="clickTabPath('/pages/index/index')">
  6. <!-- <u-icon name="https://huli-app.wenlvti.net/app_static/minnanhun/image/home_a.png" color="#a49086" size="20" labelPos="bottom"></u-icon> -->
  7. <image style="width: 32rpx; height: 30rpx" src="/static/image/home_a.png" mode=""></image>
  8. <view class="">首页</view>
  9. </view>
  10. <view class="action" :class="footerTab == '1' ? 'text-red' : 'text-black'" @tap="clickTabPath('/pages/jiyi/jiyi')">
  11. <!-- <u-icon name="https://huli-app.wenlvti.net/app_static/minnanhun/image/commossion_a.png" color="#a49086" size="20" labelPos="bottom"></u-icon> -->
  12. <image style="width: 32rpx; height: 30rpx" src="/static/image/commossion_a.png" mode=""></image>
  13. <view class="">记忆</view>
  14. </view>
  15. <view class="action add-action" :class="footerTab == '2' ? 'text-red' : 'text-black'" @tap="clickTabPath('/pages/chuanCheng/chuanCheng')">
  16. <view class="cuIcon-">
  17. <u-icon
  18. size="35"
  19. labelSize="22rpx"
  20. space="10rpx"
  21. :labelColor="footerTab == '2' ? '#CA5642' : '#666666'"
  22. name="/static/image/wajue.png"
  23. label="传承"
  24. labelPos="bottom"
  25. ></u-icon>
  26. </view>
  27. </view>
  28. <view class="action" :class="footerTab == '3' ? 'text-red' : 'text-black'" @tap="clickTabPath('/pages/xueYuan/xueYuan')">
  29. <!-- <u-icon name="https://huli-app.wenlvti.net/app_static/minnanhun/image/invite_a.png" color="#a49086" size="20" labelPos="bottom"></u-icon> -->
  30. <image style="width: 40rpx; height: 36rpx" src="/static/image/invite_a.png.png" mode=""></image>
  31. <view class="">学院</view>
  32. </view>
  33. <view class="action" :class="footerTab == '4' ? 'text-red' : 'text-black'" @tap="clickTabPath('/pages/user/index')">
  34. <!-- <u-icon name="https://huli-app.wenlvti.net/app_static/minnanhun/image/mine_a.png" color="#a49086" size="20" labelPos="bottom"></u-icon> -->
  35. <image style="width: 40rpx; height: 36rpx" src="/static/image/mine_a.png" mode=""></image>
  36. <view class="">我的</view>
  37. </view>
  38. </view>
  39. </view>
  40. </template>
  41. <script>
  42. export default {
  43. name: 'colorBar',
  44. props: {
  45. footerTab: {
  46. type: String,
  47. default: 0
  48. },
  49. messageCount: {
  50. type: Number,
  51. default: 0
  52. }
  53. },
  54. data() {
  55. return {};
  56. },
  57. methods: {
  58. clickTabPath(url) {
  59. console.log(url);
  60. uni.switchTab({
  61. url: url
  62. });
  63. }
  64. }
  65. };
  66. </script>
  67. <style>
  68. .action {
  69. line-height: 25rpx !important;
  70. }
  71. </style>