index.wxss 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /* custom-tab-bar/index.js.wxss */
  2. .tab-bar {
  3. position: fixed;
  4. bottom: 0;
  5. left: 0;
  6. right: 0;
  7. height: 112rpx;
  8. background-color: rgb(255, 255, 255);
  9. display: flex;
  10. width: 750rpx;
  11. z-index: 10000;
  12. padding-bottom: env(safe-area-inset-bottom);
  13. }
  14. .tab-bar-item {
  15. position: relative;
  16. width: 187.5rpx;
  17. height: 112rpx;
  18. text-align: center;
  19. display: flex;
  20. justify-content: center;
  21. align-items: center;
  22. flex-direction: column;
  23. }
  24. .tab-bar-item>image:nth-child(1){
  25. width: 48rpx;
  26. height: 48rpx;
  27. }
  28. .tab-bar-item>view:nth-child(2){
  29. margin-top: 8rpx;
  30. width: 250rpx;
  31. height: 28rpx;
  32. font-size: 20rpx;
  33. font-weight: 500;
  34. color: rgba(0, 0, 0, 0.87);
  35. line-height: 28rpx;
  36. text-align: center;
  37. }
  38. .tab-bar-item>text:nth-child(3){
  39. position: absolute;
  40. top: 8rpx;
  41. right: 52rpx;
  42. width: 24rpx;
  43. height: 24rpx;
  44. line-height: 24rpx;
  45. text-align: center;
  46. font-size: 18rpx;
  47. font-weight: 600;
  48. color: #FFFFFF;
  49. background-color: #FF5700;
  50. border-radius: 50%;
  51. border: 3px solid #FFFFFF;
  52. z-index: 10001;
  53. }