index.scss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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. background: pink;
  22. }
  23. }
  24. .goods-describe {
  25. width: calc(100% - 224rpx);
  26. padding-left: 24rpx;
  27. }
  28. .name-wrap {
  29. display: flex;
  30. &.has-tag {
  31. .name {
  32. max-width: calc(100% - 46rpx);
  33. }
  34. }
  35. .name {
  36. display: -webkit-box;
  37. -webkit-box-orient: vertical;
  38. -webkit-line-clamp: 2;
  39. font-size: 32rpx;
  40. line-height: 46rpx;
  41. color: rgba(31, 51, 73, 1);
  42. word-break: break-all;
  43. word-wrap: break-word;
  44. overflow: hidden;
  45. }
  46. .tag {
  47. width: 46rpx;
  48. height: 26rpx;
  49. margin-top: 10rpx;
  50. margin-left: 6rpx;
  51. border-radius: 12rpx;
  52. background: rgba(255, 76, 44, 1);
  53. font-size: 16rpx;
  54. line-height: 26rpx;
  55. color: rgba(255, 255, 255, 1);
  56. text-align: center;
  57. white-space: nowrap;
  58. overflow: hidden;
  59. text-overflow: ellipsis;
  60. }
  61. }
  62. .price-wrap {
  63. display: flex;
  64. align-items: flex-end;
  65. margin-top: 16rpx;
  66. .now {
  67. display: flex;
  68. align-items: center;
  69. .unit,
  70. .yuan,
  71. .jiao {
  72. font-size: 28rpx;
  73. line-height: 32rpx;
  74. color: rgba(31, 51, 73, 1);
  75. }
  76. }
  77. .old {
  78. margin-left: 26rpx;
  79. font-size: 20rpx;
  80. line-height: 28rpx;
  81. color: rgba(31, 51, 73, 0.6);
  82. text-decoration: line-through;
  83. }
  84. }
  85. .star-words {
  86. display: flex;
  87. flex-flow: row wrap;
  88. margin-top: 16rpx;
  89. .word {
  90. margin-left: 6rpx;
  91. font-size: 24rpx;
  92. line-height: 32rpx;
  93. color: rgba(183, 191, 206, 1);
  94. }
  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. }