index.wxss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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. background: pink;
  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. 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: calc(100% - 54rpx);
  38. margin-left: 10rpx;
  39. font-size: 28rpx;
  40. color: rgba(57, 67, 87, 1);
  41. white-space: nowrap;
  42. overflow: hidden;
  43. text-overflow: ellipsis;
  44. }
  45. .dessciption {
  46. display: -webkit-box;
  47. -webkit-box-orient: vertical;
  48. -webkit-line-clamp: 2;
  49. width: 306rpx;
  50. margin: 0 auto;
  51. overflow: hidden;
  52. font-size: 24rpx;
  53. line-height: 36rpx;
  54. color: rgba(183, 191, 206, 1);
  55. }
  56. .price-wrap {
  57. display: flex;
  58. align-items: flex-end;
  59. width: 306rpx;
  60. margin: 0 auto;
  61. padding-bottom: 10rpx;
  62. }
  63. .price-wrap .now {
  64. display: flex;
  65. align-items: flex-end;
  66. color: rgba(255, 76, 44, 1);
  67. }
  68. .price-wrap .unit,
  69. .price-wrap .yuan {
  70. font-size: 40rpx;
  71. }
  72. .price-wrap .jiao {
  73. padding-bottom: 4rpx;
  74. font-size: 28rpx;
  75. }
  76. .price-wrap .old {
  77. padding-bottom: 6rpx;
  78. margin-left: 10rpx;
  79. font-size: 22rpx;
  80. color: rgba(179, 188, 205, 1);
  81. text-decoration: line-through;
  82. }
  83. .key-words-list {
  84. display: flex;
  85. flex-flow: row wrap;
  86. width: 303rpx;
  87. padding: 10rpx 0 20rpx;
  88. margin: 0 auto;
  89. border-top: 2rpx solid rgba(248, 248, 249, 1);
  90. }
  91. .key-words-list .list {
  92. display: flex;
  93. align-items: center;
  94. margin-top: 10rpx;
  95. margin-left: 12rpx;
  96. }
  97. .key-words-list .list:nth-of-type(2n + 1) {
  98. margin-left: 0;
  99. }
  100. .key-words-list .label {
  101. width: 12rpx;
  102. height: 16rpx;
  103. background-color: pink;
  104. }
  105. .key-words-list .value{
  106. width: 125rpx;
  107. margin-left: 2rpx;
  108. font-size: 16rpx;
  109. color: rgba(128, 128, 128, 1);
  110. white-space: nowrap;
  111. overflow: hidden;
  112. text-overflow: ellipsis;
  113. }