1
0

category.wxss 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. .container{
  2. background: #f9f9f9;
  3. }
  4. .cate-nav{
  5. position: fixed;
  6. left:0;
  7. top:0;
  8. z-index: 100;
  9. width: 100%;
  10. white-space: nowrap;
  11. }
  12. .cate-nav-body{
  13. width: auto;
  14. height: 84rpx;
  15. /* white-space: nowrap; */
  16. background: #fff;
  17. border-top: 1px solid rgba(0,0,0,.15);
  18. overflow: hidden;
  19. }
  20. ::-webkit-scrollbar{
  21. width: 0;
  22. height: 0;
  23. color: transparent;
  24. }
  25. /* scroll-view隐藏滚动条方法 */
  26. .cate-nav .item{
  27. display: inline-block;
  28. height: 84rpx;
  29. /* min-width: 130rpx; */
  30. padding: 0 15rpx;
  31. }
  32. .cate-nav .item .name{
  33. display: block;
  34. height: 84rpx;
  35. padding: 0 20rpx;
  36. line-height: 84rpx;
  37. color: #333;
  38. font-size: 30rpx;
  39. width: auto;
  40. }
  41. .cate-nav .item.active .name{
  42. color: #ab2b2b;
  43. border-bottom: 2px solid #ab2b2b;
  44. }
  45. .cate-item{
  46. margin-top: 94rpx;
  47. height: 100%;
  48. overflow: hidden;
  49. }
  50. .cate-item .h{
  51. height: 145rpx;
  52. width: 750rpx;
  53. display: flex;
  54. flex-direction: column;
  55. align-items: center;
  56. justify-content: center;
  57. }
  58. .cate-item .h .name{
  59. display: block;
  60. height: 35rpx;
  61. margin-bottom: 18rpx;
  62. font-size: 30rpx;
  63. color: #333;
  64. }
  65. .cate-item .h .desc{
  66. display: block;
  67. height: 24rpx;
  68. font-size: 24rpx;
  69. color: #999;
  70. }
  71. .cate-item .b{
  72. width: 750rpx;
  73. padding: 0 6.25rpx;
  74. height: auto;
  75. overflow: hidden;
  76. margin-bottom: 400rpx;
  77. }
  78. .cate-item .b .item{
  79. float: left;
  80. background: #fff;
  81. width: 365rpx;
  82. margin-bottom: 6.25rpx;
  83. padding-bottom: 33.333rpx;
  84. height: auto;
  85. overflow: hidden;
  86. text-align: center;
  87. }
  88. .cate-item .b .item-b{
  89. margin-left: 6.25rpx;
  90. }
  91. .cate-item .item .img{
  92. width: 302rpx;
  93. height: 302rpx;
  94. background-size: 202rpx 202rpx;
  95. }
  96. .cate-item .item .name{
  97. display: block;
  98. width: 365.625rpx;
  99. height: 70rpx;
  100. margin: 11.5rpx 0 22rpx 0;
  101. text-align: center;
  102. padding: 0 20rpx;
  103. font-size: 26rpx;
  104. color: #333;
  105. }
  106. .cate-item .item .price{
  107. display: block;
  108. width: 365.625rpx;
  109. height: 30rpx;
  110. text-align: center;
  111. font-size: 30rpx;
  112. color: #b4282d;
  113. }
  114. .cate-item .item .price .cart{
  115. margin-left: 20rpx;
  116. width: 35rpx;
  117. height: 35rpx;
  118. vertical-align: -6rpx;
  119. }
  120. .attr-pop {
  121. width: 100%;
  122. height: auto;
  123. padding: 31.25rpx;
  124. background: #fff;
  125. position: fixed;
  126. bottom: 100rpx;
  127. z-index: 500;
  128. }
  129. .attr-close{
  130. float: right;
  131. width: 40rpx;
  132. height: 40rpx;
  133. line-height: 40rpx;
  134. border-radius: 50%;
  135. font-size: 40rpx;
  136. text-align: center;
  137. overflow: hidden;
  138. }
  139. .attr-pop .img-info {
  140. width: 687.5rpx;
  141. height: 177rpx;
  142. overflow: hidden;
  143. margin-bottom: 41.5rpx;
  144. }
  145. .attr-pop .img {
  146. float: left;
  147. height: 177rpx;
  148. width: 177rpx;
  149. background: #f4f4f4;
  150. margin-right: 31.25rpx;
  151. }
  152. .attr-pop .info {
  153. float: left;
  154. height: 177rpx;
  155. display: flex;
  156. align-items: flex-start;
  157. }
  158. .attr-pop .p {
  159. font-size: 33rpx;
  160. color: #333;
  161. height: 33rpx;
  162. line-height: 33rpx;
  163. margin-bottom: 10rpx;
  164. }
  165. .attr-pop .a {
  166. font-size: 29rpx;
  167. color: #333;
  168. height: 40rpx;
  169. line-height: 40rpx;
  170. width: 260px;
  171. display:block;
  172. word-break: break-all;
  173. word-wrap: break-word;
  174. }
  175. .spec-con {
  176. width: 100%;
  177. height: auto;
  178. overflow: hidden;
  179. }
  180. .spec-con .name {
  181. height: 32rpx;
  182. margin-bottom: 22rpx;
  183. font-size: 29rpx;
  184. color: #333;
  185. }
  186. .spec-con .values {
  187. height: auto;
  188. margin-bottom: 31.25rpx;
  189. font-size: 0;
  190. }
  191. .spec-con .value {
  192. display: inline-block;
  193. height: 62rpx;
  194. padding: 0 35rpx;
  195. line-height: 56rpx;
  196. text-align: center;
  197. margin-right: 25rpx;
  198. margin-bottom: 16.5rpx;
  199. border: 1px solid #333;
  200. font-size: 25rpx;
  201. color: #333;
  202. }
  203. .spec-con .value.disable {
  204. border: 1px solid #ccc;
  205. color: #ccc;
  206. }
  207. .spec-con .value.selected {
  208. border: 1px solid #b4282d;
  209. color: #b4282d;
  210. }
  211. .number-item .selnum {
  212. width: 322rpx;
  213. height: 71rpx;
  214. border: 1px solid #ccc;
  215. display: flex;
  216. }
  217. .number-item .cut {
  218. width: 93.75rpx;
  219. height: 100%;
  220. text-align: center;
  221. line-height: 65rpx;
  222. }
  223. .number-item .number {
  224. flex: 1;
  225. height: 100%;
  226. text-align: center;
  227. line-height: 68.75rpx;
  228. border-left: 1px solid #ccc;
  229. border-right: 1px solid #ccc;
  230. float: left;
  231. }
  232. .number-item .add {
  233. width: 93.75rpx;
  234. height: 100%;
  235. text-align: center;
  236. line-height: 65rpx;
  237. }
  238. .bottom-btn {
  239. position: fixed;
  240. left: 0;
  241. bottom: 0;
  242. z-index: 10;
  243. width: 750rpx;
  244. height: 100rpx;
  245. display: flex;
  246. background: #fff;
  247. }
  248. .bottom-btn .r {
  249. border: 1px solid #b4282d;
  250. background: #b4282d;
  251. float: left;
  252. height: 100rpx;
  253. line-height: 96rpx;
  254. flex: 1;
  255. text-align: center;
  256. color: #fff;
  257. }