list.wxss 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. @charset "UTF-8";
  2. .content,page {
  3. background: #f8f8f8;
  4. }
  5. .content {
  6. padding-top: 96rpx;
  7. }
  8. .navbar {
  9. position: fixed;
  10. left: 0;
  11. top: 0;
  12. width: 100%;
  13. height: 80rpx;
  14. background: #fff;
  15. box-shadow: 0 2rpx 10rpx rgba(0,0,0,.06);
  16. z-index: 10;
  17. }
  18. .navbar,.navbar .nav-item {
  19. display: flex;
  20. }
  21. .navbar .nav-item {
  22. -webkit-box-flex: 1;
  23. flex: 1;
  24. -webkit-box-pack: center;
  25. justify-content: center;
  26. -webkit-box-align: center;
  27. align-items: center;
  28. height: 100%;
  29. font-size: 30rpx;
  30. color: #303133;
  31. position: relative;
  32. }
  33. .navbar .nav-item.current {
  34. color: #5dbc7c;
  35. }
  36. .navbar .nav-item.current:after {
  37. content: "";
  38. position: absolute;
  39. left: 50%;
  40. bottom: 0;
  41. transform: translateX(-50%);
  42. width: 120rpx;
  43. height: 0;
  44. border-bottom: 4rpx solid #5dbc7c;
  45. }
  46. .navbar .p-box {
  47. -webkit-box-orient: vertical;
  48. -webkit-box-direction: normal;
  49. flex-direction: column;
  50. }
  51. .navbar .p-box,.navbar .p-box .iconfont {
  52. display: flex;
  53. }
  54. .navbar .p-box .iconfont {
  55. -webkit-box-align: center;
  56. align-items: center;
  57. -webkit-box-pack: center;
  58. justify-content: center;
  59. width: 30rpx;
  60. height: 14rpx;
  61. line-height: 1;
  62. margin-left: 4rpx;
  63. font-size: 26rpx;
  64. color: #888;
  65. }
  66. .navbar .p-box .iconfont.active {
  67. color: #5dbc7c;
  68. }
  69. .navbar .p-box .xia {
  70. transform: scaleY(-1);
  71. }
  72. .navbar .cate-item {
  73. display: flex;
  74. -webkit-box-pack: center;
  75. justify-content: center;
  76. -webkit-box-align: center;
  77. align-items: center;
  78. height: 100%;
  79. width: 80rpx;
  80. position: relative;
  81. font-size: 44rpx;
  82. }
  83. .navbar .cate-item:after {
  84. content: "";
  85. position: absolute;
  86. left: 0;
  87. top: 50%;
  88. transform: translateY(-50%);
  89. border-left: 1px solid #ddd;
  90. width: 0;
  91. height: 36rpx;
  92. }
  93. .cate-mask {
  94. position: fixed;
  95. left: 0;
  96. top: 0;
  97. bottom: 0;
  98. width: 100%;
  99. background: transparent;
  100. z-index: 95;
  101. }
  102. .cate-mask,.cate-mask .cate-content {
  103. transition: .3s;
  104. }
  105. .cate-mask .cate-content {
  106. width: 630rpx;
  107. height: 100%;
  108. background: #fff;
  109. float: right;
  110. transform: translateX(100%);
  111. }
  112. .cate-mask.none {
  113. display: none;
  114. }
  115. .cate-mask.show {
  116. background: rgba(0,0,0,.4);
  117. }
  118. .cate-mask.show .cate-content {
  119. transform: translateX(0);
  120. }
  121. .cate-list {
  122. -webkit-box-orient: vertical;
  123. -webkit-box-direction: normal;
  124. flex-direction: column;
  125. height: 100%;
  126. }
  127. .cate-list,.cate-list .cate-item {
  128. display: flex;
  129. }
  130. .cate-list .cate-item {
  131. -webkit-box-align: center;
  132. align-items: center;
  133. height: 90rpx;
  134. padding-left: 30rpx;
  135. font-size: 28rpx;
  136. color: #555;
  137. position: relative;
  138. }
  139. .cate-list .two {
  140. height: 64rpx;
  141. color: #303133;
  142. font-size: 30rpx;
  143. background: #f8f8f8;
  144. }
  145. .cate-list .active {
  146. color: #5dbc7c;
  147. }
  148. .goods-list {
  149. flex-wrap: wrap;
  150. padding: 0 30rpx;
  151. background: #fff;
  152. }
  153. .goods-list,.goods-list .goods-item {
  154. display: flex;
  155. }
  156. .goods-list .goods-item {
  157. -webkit-box-orient: vertical;
  158. -webkit-box-direction: normal;
  159. flex-direction: column;
  160. width: 48%;
  161. padding-bottom: 40rpx;
  162. }
  163. .goods-list .goods-item:nth-child(2n+1) {
  164. margin-right: 4%;
  165. }
  166. .goods-list .image-wrapper {
  167. width: 100%;
  168. height: 330rpx;
  169. border-radius: 3px;
  170. overflow: hidden;
  171. }
  172. .goods-list .image-wrapper image {
  173. width: 100%;
  174. height: 100%;
  175. opacity: 1;
  176. }
  177. .goods-list .title {
  178. font-size: 32rpx;
  179. color: #303133;
  180. line-height: 80rpx;
  181. }
  182. .goods-list .price-box {
  183. display: flex;
  184. -webkit-box-align: center;
  185. align-items: center;
  186. -webkit-box-pack: justify;
  187. justify-content: space-between;
  188. padding-right: 10rpx;
  189. font-size: 24rpx;
  190. color: #909399;
  191. }
  192. .goods-list .price {
  193. font-size: 32rpx;
  194. color: #dd524d;
  195. line-height: 1;
  196. }
  197. .goods-list .price:before {
  198. content: "¥";
  199. font-size: 26rpx;
  200. }