categoryBrand.wxss 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  1. /* pages/categoryBrand/categoryBrand.wxss */
  2. .container{
  3. background: #f9f9f9;
  4. }
  5. .cate-nav{
  6. position: fixed;
  7. left:0;
  8. top:0;
  9. z-index: 100;
  10. width: 100%;
  11. white-space: nowrap;
  12. }
  13. .cate-nav-body{
  14. width: auto;
  15. height: 84rpx;
  16. /* white-space: nowrap; */
  17. background: #fff;
  18. border-top: 1px solid rgba(0,0,0,.15);
  19. overflow: hidden;
  20. }
  21. ::-webkit-scrollbar{
  22. width: 0;
  23. height: 0;
  24. color: transparent;
  25. }
  26. /* scroll-view隐藏滚动条方法 */
  27. .cate-nav .item{
  28. display: inline-block;
  29. height: 84rpx;
  30. /* min-width: 130rpx; */
  31. padding: 0 15rpx;
  32. }
  33. .cate-nav .item .name{
  34. display: block;
  35. height: 84rpx;
  36. padding: 0 20rpx;
  37. line-height: 84rpx;
  38. color: #333;
  39. font-size: 30rpx;
  40. width: auto;
  41. }
  42. .cate-nav .item.active .name{
  43. color: #ab2b2b;
  44. border-bottom: 2px solid #ab2b2b;
  45. }
  46. .cate-item{
  47. margin-top: 94rpx;
  48. height: 100%;
  49. overflow: hidden;
  50. }
  51. .cate-item .h{
  52. height: 145rpx;
  53. width: 750rpx;
  54. display: flex;
  55. flex-direction: column;
  56. align-items: center;
  57. justify-content: center;
  58. }
  59. .cate-item .h .name{
  60. display: block;
  61. height: 35rpx;
  62. margin-bottom: 18rpx;
  63. font-size: 30rpx;
  64. color: #333;
  65. }
  66. .cate-item .h .desc{
  67. display: block;
  68. height: 24rpx;
  69. font-size: 24rpx;
  70. color: #999;
  71. }
  72. .cate-item .b{
  73. width: 750rpx;
  74. padding: 0 6.25rpx;
  75. height: auto;
  76. overflow: hidden;
  77. margin-bottom: 400rpx;
  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. }