1
0

category.wxss 4.8 KB

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