category.wxss 4.6 KB

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