index.wxss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. .promotion {
  2. box-sizing: border-box;
  3. height: 126rpx;
  4. padding: 0 20rpx 20rpx;
  5. background-color: #fff;
  6. }
  7. .promotion .head {
  8. font-size: 24rpx;
  9. color: #999;
  10. margin-bottom: 16rpx;
  11. }
  12. .promotion .slider {
  13. position: relative;
  14. overflow: hidden;
  15. }
  16. .promotion .slider-wraper {
  17. position: relative;
  18. width: 100%;
  19. height: 100%;
  20. display: flex;
  21. overflow-y: auto;
  22. }
  23. .promotion .list {
  24. display: flex;
  25. flex-flow: row nowrap;
  26. }
  27. .promotion .list-item {
  28. margin-right: 10rpx;
  29. }
  30. .promotion .list-item:last-child {
  31. margin-right: 0px;
  32. }
  33. .promotion .card-content {
  34. height: 106rpx;
  35. border-radius: 3rpx;
  36. position: relative;
  37. overflow: hidden;
  38. background-size: cover;
  39. background-repeat: no-repeat;
  40. background-image: url(https://mall.shiziyu888.com/Common/image/117603130_6i5767h706g683dj35febbc2c37a4_176x116.png);
  41. }
  42. .promotion .card {
  43. position: relative;
  44. overflow: hidden;
  45. display: flex;
  46. flex-flow: column nowrap;
  47. align-items: center;
  48. justify-content: center;
  49. color: #fff;
  50. border-radius: 4rpx;
  51. height: 88rpx;
  52. width: 180rpx;
  53. padding: 8rpx;
  54. }
  55. .promotion .card-price {
  56. flex-flow: row nowrap;
  57. align-items: flex-start;
  58. }
  59. .promotion .card-price--unit, .card-price {
  60. display: flex;
  61. }
  62. .promotion .card-price--unit {
  63. font-size: 18rpx;
  64. }
  65. .promotion .card-price--num {
  66. font-size: 48rpx;
  67. line-height: 48rpx;
  68. }
  69. .promotion .card-desc, .card-price--num {
  70. display: flex;
  71. }
  72. .promotion .card-desc {
  73. font-size: 20rpx;
  74. }
  75. .promotion .card-tag {
  76. display: none;
  77. justify-content: center;
  78. align-items: center;
  79. width: 64rpx;
  80. height: 64rpx;
  81. position: absolute;
  82. bottom: -16rpx;
  83. right: -10rpx;
  84. transform: rotate(-20deg);
  85. border: 1px solid #666;
  86. border-radius: 50%;
  87. }
  88. .promotion .card-tag--text {
  89. font-size: 20rpx;
  90. color: #666;
  91. margin-bottom: 10rpx;
  92. text-align: center;
  93. }
  94. .promotion .card-tag--get {
  95. display: flex;
  96. }
  97. .promotion .card-content.get {
  98. background-image: none;
  99. background-color: #c7c7c7;
  100. }