1
0

category.wxss 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  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. }
  95. .cate-item .item .name{
  96. display: block;
  97. width: 365.625rpx;
  98. height: 70rpx;
  99. margin: 11.5rpx 0 22rpx 0;
  100. text-align: center;
  101. padding: 0 20rpx;
  102. font-size: 26rpx;
  103. color: #333;
  104. }
  105. .cate-item .item .price{
  106. display: block;
  107. width: 365.625rpx;
  108. height: 30rpx;
  109. text-align: center;
  110. font-size: 30rpx;
  111. color: #b4282d;
  112. }
  113. .cate-item .item .price .cart{
  114. margin-left: 20rpx;
  115. width: 35rpx;
  116. height: 35rpx;
  117. vertical-align: -6rpx;
  118. }
  119. .attr-pop {
  120. width: 100%;
  121. height: auto;
  122. padding: 31.25rpx;
  123. background: #fff;
  124. position: fixed;
  125. bottom: 100rpx;
  126. z-index: 500;
  127. }
  128. .attr-close{
  129. float: right;
  130. width: 40rpx;
  131. height: 40rpx;
  132. line-height: 40rpx;
  133. border-radius: 50%;
  134. font-size: 40rpx;
  135. text-align: center;
  136. overflow: hidden;
  137. }
  138. .attr-pop .img-info {
  139. width: 687.5rpx;
  140. height: 177rpx;
  141. overflow: hidden;
  142. margin-bottom: 41.5rpx;
  143. }
  144. .attr-pop .img {
  145. float: left;
  146. height: 177rpx;
  147. width: 177rpx;
  148. background: #f4f4f4;
  149. margin-right: 31.25rpx;
  150. }
  151. .attr-pop .info {
  152. float: left;
  153. height: 177rpx;
  154. display: flex;
  155. align-items: flex-start;
  156. }
  157. .attr-pop .p {
  158. font-size: 33rpx;
  159. color: #333;
  160. height: 33rpx;
  161. line-height: 33rpx;
  162. margin-bottom: 10rpx;
  163. }
  164. .attr-pop .a {
  165. font-size: 29rpx;
  166. color: #333;
  167. height: 40rpx;
  168. line-height: 40rpx;
  169. width: 260px;
  170. display:block;
  171. word-break: break-all;
  172. word-wrap: break-word;
  173. }
  174. .spec-con {
  175. width: 100%;
  176. height: auto;
  177. overflow: hidden;
  178. }
  179. .spec-con .name {
  180. height: 32rpx;
  181. margin-bottom: 22rpx;
  182. font-size: 29rpx;
  183. color: #333;
  184. }
  185. .spec-con .values {
  186. height: auto;
  187. margin-bottom: 31.25rpx;
  188. font-size: 0;
  189. }
  190. .spec-con .value {
  191. display: inline-block;
  192. height: 62rpx;
  193. padding: 0 35rpx;
  194. line-height: 56rpx;
  195. text-align: center;
  196. margin-right: 25rpx;
  197. margin-bottom: 16.5rpx;
  198. border: 1px solid #333;
  199. font-size: 25rpx;
  200. color: #333;
  201. }
  202. .spec-con .value.disable {
  203. border: 1px solid #ccc;
  204. color: #ccc;
  205. }
  206. .spec-con .value.selected {
  207. border: 1px solid #b4282d;
  208. color: #b4282d;
  209. }
  210. .number-item .selnum {
  211. width: 322rpx;
  212. height: 71rpx;
  213. border: 1px solid #ccc;
  214. display: flex;
  215. }
  216. .number-item .cut {
  217. width: 93.75rpx;
  218. height: 100%;
  219. text-align: center;
  220. line-height: 65rpx;
  221. }
  222. .number-item .number {
  223. flex: 1;
  224. height: 100%;
  225. text-align: center;
  226. line-height: 68.75rpx;
  227. border-left: 1px solid #ccc;
  228. border-right: 1px solid #ccc;
  229. float: left;
  230. }
  231. .number-item .add {
  232. width: 93.75rpx;
  233. height: 100%;
  234. text-align: center;
  235. line-height: 65rpx;
  236. }
  237. .bottom-btn {
  238. position: fixed;
  239. left: 0;
  240. bottom: 0;
  241. z-index: 10;
  242. width: 750rpx;
  243. height: 100rpx;
  244. display: flex;
  245. background: #fff;
  246. }
  247. .bottom-btn .r {
  248. border: 1px solid #b4282d;
  249. background: #b4282d;
  250. float: left;
  251. height: 100rpx;
  252. line-height: 96rpx;
  253. flex: 1;
  254. text-align: center;
  255. color: #fff;
  256. }