index.scss 2.5 KB

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