index.wxss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. .diy-sharpGoods .sharp-top .sharp-modular {
  2. font-size: 30rpx;
  3. color: #fff;
  4. background: #fb571d;
  5. padding: 10rpx 30rpx 10rpx 24rpx;
  6. border-bottom-right-radius: 30rpx;
  7. border-top-right-radius: 30rpx;
  8. }
  9. .diy-sharpGoods .sharp-top .sharp-modular .modular-name {
  10. margin-left: 10rpx;
  11. }
  12. .diy-sharpGoods .sharp-top .sharp-active-status {
  13. color: #616161;
  14. font-size: 28rpx;
  15. margin-left: 20rpx;
  16. }
  17. .diy-sharpGoods .sharp-top .active-count-down {
  18. font-size: 26rpx;
  19. height: 40rpx;
  20. margin-left: 16rpx;
  21. }
  22. .diy-sharpGoods .sharp-top .active-count-down .clock-text {
  23. margin-right: 10rpx;
  24. }
  25. .diy-sharpGoods .sharp-top .active-count-down .clock-time {
  26. background: #252525;
  27. color: #fff;
  28. padding: 0 6rpx;
  29. line-height: 40rpx;
  30. border-radius: 8rpx;
  31. }
  32. .diy-sharpGoods .sharp-top .active-count-down .clock-symbol {
  33. padding: 0 8rpx;
  34. }
  35. .diy-sharpGoods .sharp-top .sharp-more {
  36. padding-right: 24rpx;
  37. color: #616161;
  38. font-size: 28rpx;
  39. }
  40. .diy-sharpGoods .sharp-top .sharp-more .sharp-more-arrow {
  41. font-size: 24rpx;
  42. }
  43. /* 商品组 */
  44. .diy-sharpGoods .goods-list {
  45. padding: 4rpx;
  46. box-sizing: border-box;
  47. }
  48. .diy-sharpGoods .goods-list .goods-item {
  49. box-sizing: border-box;
  50. padding: 6rpx;
  51. }
  52. .diy-sharpGoods .goods-list.display__list .goods-item {
  53. float: left;
  54. }
  55. .diy-sharpGoods .goods-list.column__2 .goods-item {
  56. width: 50%;
  57. }
  58. .diy-sharpGoods .goods-list.column__3 .goods-item {
  59. width: 33.33333%;
  60. }
  61. .diy-sharpGoods .goods-list .goods-item .goods-image {
  62. position: relative;
  63. width: 100%;
  64. height: 0;
  65. padding-bottom: 100%;
  66. overflow: hidden;
  67. background: #fff;
  68. }
  69. .diy-sharpGoods .goods-list .goods-item .goods-image:after {
  70. content: '';
  71. display: block;
  72. margin-top: 100%; /* margin 百分比相对父元素宽度计算 */
  73. }
  74. .diy-sharpGoods .goods-list .goods-item .goods-image .image {
  75. position: absolute;
  76. width: 100%;
  77. height: 100%;
  78. top: 0;
  79. left: 0;
  80. -o-object-fit: cover;
  81. object-fit: cover;
  82. }
  83. .diy-sharpGoods .goods-list .goods-item .detail {
  84. padding: 4rpx;
  85. background: #fff;
  86. }
  87. .diy-sharpGoods .goods-list .goods-item .detail .goods-name {
  88. height: 72rpx;
  89. font-size: 28rpx;
  90. line-height: 1.3;
  91. overflow: hidden;
  92. }
  93. .diy-sharpGoods .goods-list .goods-item .detail .detail-price {
  94. line-height: 40rpx;
  95. }
  96. .diy-sharpGoods .goods-list .goods-item .detail .goods-price {
  97. font-size: 30rpx;
  98. }
  99. .diy-sharpGoods .goods-list .goods-item .detail .line-price {
  100. margin-left: 8rpx;
  101. font-size: 24rpx;
  102. text-decoration: line-through;
  103. color: #999;
  104. }
  105. .diy-sharpGoods .goods-list .goods-item .detail .selling-point {
  106. font-size: 24rpx;
  107. color: #f20c59;
  108. }