暫無描述

index.css 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. body{
  2. width: 100%;
  3. min-height: 100vh;
  4. background: #F2F2F2;
  5. }
  6. .search{
  7. background: #FFFFFF;
  8. font-size: 0.14rem;
  9. padding-bottom: 0.1rem;
  10. }
  11. .search div {
  12. display: flex;
  13. align-items: center;
  14. border-bottom: 0.01rem solid #f2f2f2;
  15. height: 0.4rem;
  16. }
  17. .search div label{
  18. display: inline-block;
  19. width: 1.2rem;
  20. text-align: right;
  21. }
  22. .search div input{
  23. flex: 1;
  24. border: none;
  25. }
  26. .search button{
  27. display: block;
  28. width: 60%;
  29. height: 0.35rem;
  30. border: none;
  31. background:linear-gradient(270deg,rgba(255,80,0,1) 0%,rgba(255,144,0,1) 100%);
  32. font-size: 0.16rem;
  33. color: #FFFFFF;
  34. border-radius: 0.35rem;
  35. margin: 0.1rem auto 0;
  36. }
  37. /*商品列表*/
  38. .commodityList{
  39. margin-top: 0.1rem;
  40. display: flex;
  41. flex-wrap: wrap;
  42. }
  43. .goodsItem{
  44. width: 50%;
  45. }
  46. .goods_item{
  47. width:1.8rem;
  48. /*height:3.025rem;*/
  49. background:#ffffff;
  50. border-radius:0.05rem;
  51. margin: auto;
  52. margin-bottom: 0.0615rem;
  53. }
  54. .goods_coupon span:nth-child(1){
  55. display: block;
  56. float: left;
  57. width: 0.195rem;
  58. height: 0.14rem;
  59. line-height: 0.14rem;
  60. text-align: center;
  61. }
  62. .goods_coupon span:nth-child(2){
  63. display: block;
  64. width: 0.445rem;
  65. height: 0.14rem;
  66. float: left;
  67. line-height: 0.14rem;
  68. text-align: center;
  69. }
  70. .goods_price{
  71. font-size: 0.1rem;
  72. color: #FF014F;
  73. padding-left: 0.05rem;
  74. padding-bottom: 0.15rem;
  75. }
  76. .goods_price .new_price{
  77. font-size: 0.15rem;
  78. padding-right: 0.1rem;
  79. }
  80. .goods_price .old_price{
  81. color: #BEBDBD;
  82. /* text-decoration: line-through;*/
  83. }
  84. .goods_coupon{
  85. width: 0.64rem;
  86. height: 0.14rem;
  87. color: #ffffff;
  88. font-size: 0.11rem;
  89. background: url(imgs/quan.png) no-repeat ;
  90. background-size:0.64rem 0.14rem;
  91. }
  92. .goods_img{
  93. width:100%;
  94. height:1.8rem;
  95. background: #CCCCCC;
  96. border-radius:0.05rem 0.05rem 0 0;
  97. }
  98. .goods_name{
  99. /* height: 0.69rem; */
  100. height: 0.32rem;
  101. font-size: 0.13rem;
  102. padding: 0 0.06rem;
  103. padding-top: 0.1rem;
  104. line-height: 0.18rem;
  105. text-overflow: -o-ellipsis-lastline;
  106. overflow: hidden;
  107. text-overflow: ellipsis;
  108. display: -webkit-box;
  109. -webkit-line-clamp: 2;
  110. -webkit-box-orient: vertical;
  111. }
  112. .goods_name .icon{
  113. width:0.14rem;
  114. height:0.14rem;
  115. margin-top: 0.02rem;
  116. margin-right: 0.02rem;
  117. display: inline-block;
  118. vertical-align: sub;
  119. }
  120. .quan{
  121. padding: 0 0 0 0.06rem;
  122. height: 35px;
  123. display: flex;
  124. align-items: center;
  125. }
  126. .quan .volume{
  127. color: #797878;
  128. font-size: 0.12rem;
  129. padding-left: 0.1rem;
  130. }
  131. .alert-info {
  132. position: fixed;
  133. top: 1.74rem;
  134. right: 0;
  135. left: 0;
  136. bottom: 0;
  137. text-align: center;
  138. }
  139. .alert-info p {
  140. display: inline-block;
  141. height: 0.38rem;
  142. color: #fff;
  143. font-size: 0.14rem;
  144. line-height: 0.38rem;
  145. padding: 0 0.10rem;
  146. background-color: rgba(0, 0, 0, 0.7);
  147. border-radius: 5px;
  148. }
  149. .loading {
  150. position: fixed;
  151. top: 0;
  152. left: 0;
  153. display: none;
  154. width: 100%;
  155. height: 100vh;
  156. }
  157. .loading img {
  158. position: absolute;
  159. top: 0;
  160. bottom: 0;
  161. left: 0;
  162. right: 0;
  163. margin: auto;
  164. width: 0.3rem;
  165. height: 0.3rem;
  166. }