index.wxss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. /* pages/quality/index/index.wxss */
  2. page {
  3. width: 100%;
  4. height: 100%;
  5. background-color: #fff;
  6. }
  7. .container-goods {
  8. width: 100%;
  9. height: 100%;
  10. padding-top: 74rpx;
  11. }
  12. .tabs {
  13. position: fixed;
  14. top: 0;
  15. left: 0;
  16. width: 100%;
  17. height: 74rpx;
  18. background-color: #fff;
  19. /* border-bottom: 1rpx solid #e6e6e6; */
  20. z-index: 3;
  21. }
  22. .tabs .scroll-view {
  23. width: 100%;
  24. height: 100%;
  25. white-space: nowrap;
  26. line-height: 74rpx;
  27. padding: 0 32rpx;
  28. font-size: 28rpx;
  29. font-family: FZZhunYuan-M02S, FZZhunYuan-M02S-Regular;
  30. font-weight: 400;
  31. color: #666666;
  32. }
  33. .tabs .scroll-view .tab {
  34. display: inline-block;
  35. margin-right: 72rpx;
  36. font-size: 32rpx;
  37. color: #1A1A1A;
  38. }
  39. .tabs .scroll-view .tab-active {
  40. position: relative;
  41. color: #2B58A5;
  42. font-size: 34rpx;
  43. }
  44. .tabs .scroll-view .tab-active::after {
  45. position: absolute;
  46. bottom: 0;
  47. left: 0;
  48. display: block;
  49. content: "";
  50. width: 100%;
  51. height: 4rpx;
  52. background-color: #2B58A5;
  53. border-radius: 2rpx;
  54. z-index: 9;
  55. }
  56. .goods {
  57. padding: 0 30rpx 30rpx 30rpx;
  58. }
  59. .goods .goods-item {
  60. display: flex;
  61. padding: 30rpx 0;
  62. border-bottom: 1rpx solid #e6e6e6;
  63. }
  64. /* .goods .goods-item:last-child {
  65. border-bottom: 1rpx solid #ffffff !important;
  66. } */
  67. .goods .goods-item image {
  68. width: 210rpx;
  69. height: 210rpx;
  70. border-radius: 10rpx;
  71. margin-right: 30rpx;
  72. flex-shrink: 0;
  73. }
  74. .goods .goods-item .body {
  75. font-weight: 400;
  76. font-family: FZZhunYuan-M02S, FZZhunYuan-M02S-Regular;
  77. flex: 1;
  78. position: relative;
  79. }
  80. .getCouponBox{
  81. width: 100%;
  82. text-align: right;
  83. }
  84. .goods .goods-item .body .goods-title {
  85. /* display: flex;
  86. align-items: center; */
  87. padding-top: 8rpx;
  88. /* height: 80rpx; */
  89. font-size: 30rpx;
  90. /* color: #1a1a1a; */
  91. color: #1A1A1A;
  92. font-weight: 700;
  93. margin-bottom: 16rpx;
  94. word-break: break-all;
  95. overflow: hidden;
  96. text-overflow: ellipsis;
  97. display: -webkit-box;
  98. -webkit-line-clamp: 2; /* 设置行数 */
  99. -webkit-box-orient: vertical;
  100. }
  101. .goods .goods-item .body .goods-title text {
  102. flex: 1;
  103. word-break: break-all;
  104. overflow: hidden;
  105. text-overflow: ellipsis;
  106. /* display: -webkit-box; */
  107. -webkit-line-clamp: 2; /* 设置行数 */
  108. -webkit-box-orient: vertical;
  109. }
  110. .goods-classify{
  111. background: #f0f1f5;
  112. border-radius: 10rpx;
  113. width: fit-content;
  114. padding: 6rpx 14rpx;
  115. }
  116. .goods .goods-item .body .goods-classify,
  117. .goods .goods-item .body .goods-total-num {
  118. font-size: 22rpx;
  119. color: #808080;
  120. margin-bottom: 16rpx;
  121. }
  122. .goods .goods-item .body .goods-total-num {
  123. margin-bottom: 6rpx;
  124. }
  125. .goods-total-num text{
  126. color: #FF9209;
  127. }
  128. .goods .goods-item .body .goods-price {
  129. font-size: 32rpx;
  130. font-family: PingFang SC, PingFang SC-Medium;
  131. font-weight: 500;
  132. color: #ec2e26;
  133. }
  134. .goods .goods-item .body .getCoupon {
  135. display: inline-block;
  136. background-color: #2B58A5;
  137. padding: 15rpx 34rpx;
  138. border-radius: 30rpx;
  139. font-size: 24rpx;
  140. color: #FFFFFF;
  141. }
  142. /* .goods .goods-item .body .goods-price text {
  143. font-size: 32rpx;
  144. } */
  145. .getCoupon1{
  146. position: absolute;
  147. bottom: 0;
  148. right: 0;
  149. }