tabbar.wxss 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /* components/tabbar/tabbar.wxss */
  2. .tabbar{
  3. display: flex;
  4. justify-content: space-between;
  5. padding: 34rpx 74rpx 0;
  6. width: 750rpx;
  7. height: 166rpx;
  8. background: #fff;
  9. box-sizing: border-box;
  10. position: fixed;
  11. bottom: 0;
  12. left: 0;
  13. z-index: 999999999;
  14. box-shadow: 0rpx -6rpx 12rpx 2rpx rgba(0,0,0,0.09);
  15. border-radius: 32rpx 32rpx 0rpx 0rpx;
  16. }
  17. .tabbar .tabbar-item{
  18. display: flex;
  19. flex-direction: column;
  20. align-items: center;
  21. justify-content: space-between;
  22. width: 76rpx;
  23. height: 76rpx;
  24. position: relative;
  25. }
  26. .tabbar .tabbar-item .num{
  27. position: absolute;
  28. top: 0;
  29. left: calc(100% - 25rpx) ;
  30. /* width: 30rpx; */
  31. height: 30rpx;
  32. padding: 0 10rpx;
  33. line-height: 30rpx;
  34. text-align: center;
  35. background: #FF4D3A;
  36. border-radius: 15rpx;
  37. font-size: 22rpx;
  38. color: #FFFFFF;
  39. }
  40. .tabbar .tabbar-item .icon{
  41. width: 44rpx;
  42. height: 44rpx;
  43. }
  44. .tabbar .tabbar-item.pic-item .icon{
  45. width: 76rpx;
  46. height: 76rpx;
  47. }
  48. .tabbar .tabbar-item .name{
  49. font-size: 20rpx;
  50. color: #222222;
  51. }
  52. .tabbar .tabbar-item.active .name{
  53. color: #006CE8;
  54. }