No Description

goods.css 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. body{width: 100%;background: #F4F4F4;min-height: 100vh;}
  2. #container{
  3. /*padding-bottom: 0.25rem;*/
  4. padding-top: 0.06rem;
  5. }
  6. /* 热门 */
  7. .hot{
  8. width:3.65rem;
  9. /*height:2.15rem;*/
  10. margin:0 auto;
  11. background:#ffffff;
  12. border-radius:0.08rem;
  13. box-shadow:0px 0.015rem 0.035rem 0px rgba(122,121,121,0.19);
  14. margin-bottom: 0.09rem;
  15. }
  16. .title{
  17. width: 1.5rem;
  18. height: 0.405rem;
  19. color: #58E6FC;
  20. margin: auto;
  21. display: flex;
  22. flex-direction: row;
  23. justify-content: center;
  24. align-items: center;
  25. }
  26. .hot .title img{
  27. width: 0.16rem;
  28. height: 0.145rem;
  29. margin: 0 0.075rem;
  30. }
  31. .hot .hot_bottom{
  32. width: 100%;
  33. display: flex;
  34. flex-direction: row;
  35. justify-content: space-around;
  36. }
  37. /*热门商品展示*/
  38. .special{
  39. width: 1.15rem;
  40. margin-right: 0.05rem;
  41. border-radius: 0.04rem;
  42. }
  43. .special .show{
  44. width: 1.15rem;
  45. height: 1.15rem;
  46. border-radius: 0.04rem 0.04rem 0 0;
  47. }
  48. .special .name{
  49. color: #333333;
  50. font-size: 0.14rem;
  51. padding: 0 0.04rem;
  52. overflow: hidden;
  53. text-overflow: ellipsis;
  54. white-space: nowrap;
  55. padding-top: 0.08rem;
  56. padding-bottom: 0.1rem;
  57. }
  58. .special .price{
  59. overflow: hidden;
  60. padding-bottom: 0.15rem;
  61. }
  62. .special .new_price{
  63. color: #FF1E00;
  64. font-size: 0.15rem;
  65. padding: 0 0.04rem;
  66. }
  67. .special .old_price{
  68. color: #999999;
  69. font-size: 0.11rem;
  70. text-decoration: line-through;
  71. }
  72. .goodsList{
  73. width: 3.65rem;
  74. display: -webkit-flex;
  75. display: flex;
  76. flex-wrap: wrap;
  77. justify-content: space-between;
  78. margin: auto;
  79. }
  80. .goods_item{
  81. float: left;
  82. width:1.8rem;
  83. /*height:3.025rem;*/
  84. background:#ffffff;
  85. border:0.005rem solid #E7E7E7;
  86. border-radius:0.05rem;
  87. margin-bottom: 0.0615rem;
  88. }
  89. .goods_img{
  90. width:100%;
  91. height:1.8rem;
  92. background: #CCCCCC;
  93. border-radius:0.05rem 0.05rem 0 0;
  94. }
  95. .goods_name{
  96. /* height: 0.69rem; */
  97. height: 0.32rem;
  98. font-size: 0.13rem;
  99. padding: 0 0.06rem;
  100. padding-top: 0.1rem;
  101. line-height: 0.18rem;
  102. text-overflow: -o-ellipsis-lastline;
  103. overflow: hidden;
  104. text-overflow: ellipsis;
  105. display: -webkit-box;
  106. -webkit-line-clamp: 2;
  107. -webkit-box-orient: vertical;
  108. }
  109. .goods_name .icon{
  110. width:0.14rem;
  111. height:0.14rem;
  112. margin-top: 0.02rem;
  113. margin-right: 0.02rem;
  114. display: inline-block;
  115. vertical-align: sub;
  116. }
  117. .quan{
  118. padding: 0 0 0 0.06rem;
  119. height: 35px;
  120. display: flex;
  121. align-items: center;
  122. }
  123. .goods_coupon{
  124. width: 0.64rem;
  125. height: 0.14rem;
  126. color: #ffffff;
  127. font-size: 0.11rem;
  128. background: url(../imgs/quan.png) no-repeat ;
  129. background-size:0.64rem 0.14rem;
  130. }
  131. .goods_coupon span:nth-child(1){
  132. display: block;
  133. float: left;
  134. width: 0.195rem;
  135. height: 0.14rem;
  136. line-height: 0.14rem;
  137. text-align: center;
  138. }
  139. .goods_coupon span:nth-child(2){
  140. display: block;
  141. width: 0.445rem;
  142. height: 0.14rem;
  143. float: left;
  144. line-height: 0.14rem;
  145. text-align: center;
  146. }
  147. .goods_price{
  148. font-size: 0.1rem;
  149. color: #FF014F;
  150. padding-left: 0.05rem;
  151. padding-bottom: 0.15rem;
  152. }
  153. .goods_price .new_price{
  154. font-size: 0.15rem;
  155. padding-left: 0.03rem;
  156. padding-right: 0.1rem;
  157. }
  158. .goods_price .old_price{
  159. color: #BEBDBD;
  160. text-decoration: line-through;
  161. }
  162. .loading {
  163. font-size: 0.12rem;
  164. color: #333;
  165. text-align: center;
  166. line-height: 0.3rem;
  167. cursor: pointer;
  168. margin: 0.2rem auto 0;
  169. /*box-shadow: 0 0 0.04rem rgba(0, 0, 0, 0.1);*/
  170. }
  171. .banner img{
  172. width: 3.65rem;
  173. margin: auto;
  174. border-radius: 0.08rem;
  175. box-shadow: 0px 0.15rem 0.35rem 0px rgba(122,121,121,0.19);
  176. margin-bottom: 0.09rem;
  177. }