index.wxss 2.2 KB

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