index.wxss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. .goods-card {
  2. box-sizing: border-box;
  3. font-size: 24rpx;
  4. border-radius: 0 0 16rpx 16rpx;
  5. border-bottom: none;
  6. }
  7. .goods-card__main {
  8. position: relative;
  9. display: flex;
  10. line-height: 1;
  11. padding: 0;
  12. background: transparent;
  13. width: 342rpx;
  14. border-radius: 0 0 16rpx 16rpx;
  15. align-items: center;
  16. justify-content: center;
  17. margin-bottom: 16rpx;
  18. flex-direction: column;
  19. }
  20. .goods-card__thumb {
  21. flex-shrink: 0;
  22. position: relative;
  23. width: 340rpx;
  24. height: 340rpx;
  25. }
  26. .goods-card__thumb:empty {
  27. display: none;
  28. margin: 0;
  29. }
  30. .goods-card__img {
  31. display: block;
  32. width: 100%;
  33. height: 100%;
  34. border-radius: 16rpx 16rpx 0 0;
  35. overflow: hidden;
  36. }
  37. .goods-card__body {
  38. display: flex;
  39. flex: 1 1 auto;
  40. background: #fff;
  41. border-radius: 0 0 16rpx 16rpx;
  42. padding: 16rpx 24rpx 18rpx;
  43. flex-direction: column;
  44. }
  45. .goods-card__upper {
  46. display: flex;
  47. flex-direction: column;
  48. overflow: hidden;
  49. flex: 1 1 auto;
  50. }
  51. .goods-card__title {
  52. flex-shrink: 0;
  53. font-size: 28rpx;
  54. color: #333;
  55. font-weight: 400;
  56. display: -webkit-box;
  57. height: 72rpx;
  58. -webkit-box-orient: vertical;
  59. -webkit-line-clamp: 2;
  60. overflow: hidden;
  61. word-break: break-word;
  62. line-height: 36rpx;
  63. }
  64. .goods-card__tags {
  65. display: flex;
  66. flex-direction: row;
  67. flex-wrap: wrap;
  68. margin: 8rpx 0 0 0;
  69. }
  70. .goods-card__tag {
  71. color: #fa4126;
  72. background: transparent;
  73. font-size: 20rpx;
  74. border: 1rpx solid #fa4126;
  75. padding: 0 8rpx;
  76. border-radius: 16rpx;
  77. line-height: 30rpx;
  78. margin: 0 8rpx 8rpx 0;
  79. display: block;
  80. overflow: hidden;
  81. white-space: nowrap;
  82. word-break: keep-all;
  83. text-overflow: ellipsis;
  84. }
  85. .goods-card__down {
  86. display: flex;
  87. position: relative;
  88. flex-direction: row;
  89. justify-content: flex-start;
  90. align-items: baseline;
  91. line-height: 32rpx;
  92. margin: 8rpx 0 0 0;
  93. }
  94. .goods-card__origin-price {
  95. white-space: nowrap;
  96. font-weight: 700;
  97. order: 2;
  98. color: #bbbbbb;
  99. font-size: 24rpx;
  100. margin: 0 0 0 8rpx;
  101. }
  102. .goods-card__add-cart {
  103. order: 3;
  104. margin: auto 0 0 auto;
  105. position: absolute;
  106. bottom: 0;
  107. right: 0;
  108. }
  109. .spec-for-price {
  110. font-size: 36rpx;
  111. white-space: nowrap;
  112. font-weight: 700;
  113. order: 1;
  114. color: #fa4126;
  115. margin: 0;
  116. }
  117. .spec-for-symbol {
  118. font-size: 24rpx;
  119. }