index.wxss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. .goods-item {
  2. display: flex;
  3. flex-direction: column;
  4. width: 330rpx;
  5. border-radius: 16rpx;
  6. background: rgba(255, 255, 255, 1);
  7. box-shadow: 0 4rpx 8rpx 0 rgba(0, 0, 0, 0.2);
  8. }
  9. .goods-cover-wrap {
  10. width: 100%;
  11. height: 352rpx;
  12. border-radius: 16rpx;
  13. overflow: hidden;
  14. }
  15. .goods-cover-wrap .goods-cover {
  16. display: block;
  17. width: 100%;
  18. height: 100%;
  19. }
  20. .name-wrap {
  21. display: flex;
  22. align-items: center;
  23. padding: 15rpx 20rpx 10rpx;
  24. }
  25. .name-wrap .tag {
  26. width: 44rpx;
  27. height: 24rpx;
  28. margin-right: 10rpx;
  29. border-radius: 12rpx;
  30. background: rgba(255, 76, 44, 1);
  31. line-height: 24rpx;
  32. font-size: 16rpx;
  33. color: #FFF;
  34. text-align: center;
  35. }
  36. .name-wrap .name {
  37. width: 100%;
  38. font-size: 28rpx;
  39. color: rgba(57, 67, 87, 1);
  40. white-space: nowrap;
  41. overflow: hidden;
  42. text-overflow: ellipsis;
  43. }
  44. .name-wrap .name.has-tag {
  45. width: calc(100% - 54rpx);
  46. }
  47. .dessciption {
  48. display: -webkit-box;
  49. -webkit-box-orient: vertical;
  50. -webkit-line-clamp: 2;
  51. width: 306rpx;
  52. margin: 0 auto;
  53. overflow: hidden;
  54. font-size: 24rpx;
  55. line-height: 36rpx;
  56. color: rgba(183, 191, 206, 1);
  57. }
  58. .price-wrap {
  59. display: flex;
  60. align-items: flex-end;
  61. width: 306rpx;
  62. margin: 0 auto;
  63. padding-bottom: 10rpx;
  64. }
  65. .price-wrap .now {
  66. display: flex;
  67. align-items: flex-end;
  68. color: rgba(255, 76, 44, 1);
  69. }
  70. .price-wrap .unit,
  71. .price-wrap .yuan {
  72. font-size: 40rpx;
  73. }
  74. .price-wrap .jiao {
  75. padding-bottom: 4rpx;
  76. font-size: 28rpx;
  77. }
  78. .price-wrap .old {
  79. padding-bottom: 6rpx;
  80. margin-left: 10rpx;
  81. font-size: 22rpx;
  82. color: rgba(179, 188, 205, 1);
  83. text-decoration: line-through;
  84. }
  85. .key-words-list {
  86. display: flex;
  87. flex-flow: row wrap;
  88. width: 303rpx;
  89. padding: 10rpx 0 20rpx;
  90. margin: 0 auto;
  91. border-top: 2rpx solid rgba(248, 248, 249, 1);
  92. }
  93. .key-words-list .key-words {
  94. display: flex;
  95. align-items: center;
  96. margin-top: 10rpx;
  97. margin-left: 12rpx;
  98. }
  99. .key-words-list .key-words:nth-of-type(2n + 1) {
  100. margin-left: 0;
  101. }
  102. .key-words-list .label {
  103. width: 18rpx;
  104. height: 18rpx;
  105. }
  106. .key-words-list .value {
  107. width: 125rpx;
  108. margin-left: 2rpx;
  109. font-size: 16rpx;
  110. line-height: 24rpx;
  111. color: rgba(128, 128, 128, 1);
  112. white-space: nowrap;
  113. overflow: hidden;
  114. text-overflow: ellipsis;
  115. }