index.wxss 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. .scroll {
  2. position: sticky;
  3. top: 0;
  4. display: flex;
  5. flex-wrap: nowrap;
  6. width: 100vw;
  7. height: 120rpx;
  8. background-color: #ffffff;
  9. z-index: 9;
  10. box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 8rpx;
  11. }
  12. .scroll .item {
  13. flex-shrink: 0;
  14. display: flex;
  15. flex-direction: column;
  16. align-items: center;
  17. height: 100%;
  18. width: 172rpx;
  19. padding-top: 16rpx;
  20. text-align: center;
  21. box-sizing: border-box;
  22. }
  23. .scroll .item .icon {
  24. width: 46rpx;
  25. height: 46rpx;
  26. }
  27. .scroll .item .icon .iconfont {
  28. font-size: 36rpx;
  29. color: #000;
  30. }
  31. .scroll .item .num {
  32. width: 80%;
  33. height: 46rpx;
  34. font-size: 28rpx;
  35. font-family: PingFang SC-Bold, PingFang SC;
  36. font-weight: bold;
  37. color: #333333;
  38. }
  39. .scroll .item .label {
  40. height: 34rpx;
  41. font-size: 24rpx;
  42. font-family: PingFang SC-Regular, PingFang SC;
  43. color: #999999;
  44. margin-top: 8rpx;
  45. }
  46. .scroll .active {
  47. border-bottom: 4rpx solid #3874F6;
  48. }
  49. .scroll .active .label,
  50. .scroll .active .num,
  51. .scroll .active .icon {
  52. color: #3874F6 !important;
  53. }
  54. .slot-box {
  55. width: 100vw;
  56. min-height: 200rpx;
  57. }
  58. .line-1 {
  59. overflow: hidden;
  60. white-space: nowrap;
  61. text-overflow: ellipsis;
  62. }