index.wxss 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. }
  11. .scroll .item {
  12. flex-shrink: 0;
  13. display: flex;
  14. flex-direction: column;
  15. align-items: center;
  16. height: 100%;
  17. width: 172rpx;
  18. padding-top: 16rpx;
  19. text-align: center;
  20. box-sizing: border-box;
  21. }
  22. .scroll .item .icon {
  23. width: 46rpx;
  24. height: 46rpx;
  25. border: 1px solid red;
  26. }
  27. .scroll .item .num {
  28. width: 80%;
  29. height: 46rpx;
  30. font-size: 28rpx;
  31. font-family: PingFang SC-Bold, PingFang SC;
  32. font-weight: bold;
  33. color: #333333;
  34. }
  35. .scroll .item .label {
  36. height: 34rpx;
  37. font-size: 24rpx;
  38. font-family: PingFang SC-Regular, PingFang SC;
  39. color: #999999;
  40. margin-top: 8rpx;
  41. }
  42. .scroll .active {
  43. border-bottom: 4rpx solid #3874F6;
  44. }
  45. .scroll .active .label,
  46. .scroll .active .num,
  47. .scroll .active .icon {
  48. color: #3874F6 !important;
  49. }
  50. .slot-box {
  51. width: 100vw;
  52. min-height: 200rpx;
  53. }
  54. .line-1 {
  55. overflow: hidden;
  56. white-space: nowrap;
  57. text-overflow: ellipsis;
  58. }