category.wxss 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485
  1. /* pages/category/category.wxss */
  2. @import "./category.skeleton.wxss";
  3. page {
  4. /* height: auto !important; */
  5. background-color: #F8F8F8;
  6. }
  7. .page {
  8. /* background-color: rgba(0, 0, 0, 0); */
  9. /* background-color: #F8F8F8; */
  10. }
  11. .custom {
  12. position: sticky;
  13. width: 100%;
  14. top: 0;
  15. left: 0;
  16. z-index: 999;
  17. height: 80rpx;
  18. display: flex;
  19. align-items: center;
  20. justify-content: center;
  21. background-color: rgba(0, 0, 0, 0);
  22. /* padding-left: 40rpx; */
  23. background: #FFFFFF;
  24. text-align: center;
  25. }
  26. .customBg {
  27. background: #FFFFFF;
  28. transition: all .5s;
  29. }
  30. .search {
  31. height: 68rpx;
  32. background: #FFFFFF;
  33. margin: 24rpx 20rpx 24rpx 20rpx;
  34. position: relative;
  35. }
  36. .search input {
  37. width: 100%;
  38. height: 100%;
  39. font-weight: 500;
  40. font-size: 28rpx;
  41. padding: 20rpx;
  42. padding-right: 60rpx;
  43. box-sizing: border-box;
  44. }
  45. .search icon {
  46. position: absolute;
  47. right: 15rpx;
  48. top: 14rpx;
  49. font-size: 28rpx;
  50. }
  51. .menu {
  52. padding: 10rpx 24rpx;
  53. background: #FFFFFF;
  54. overflow: hidden;
  55. overflow-x: auto;
  56. white-space: nowrap;
  57. }
  58. .menu-item {
  59. display: inline-block;
  60. width: 108rpx;
  61. margin: 0 22rpx;
  62. box-sizing: border-box;
  63. text-align: center;
  64. padding: 20rpx 0;
  65. }
  66. .menu-item image {
  67. width: 64rpx;
  68. height: 64rpx;
  69. }
  70. .menu-item .text {
  71. font-size: 24rpx;
  72. color: #0D0D0D;
  73. }
  74. .menu-item.active {
  75. /* background: #F8F8F8; */
  76. border-bottom: 10rpx solid #00BC8A;
  77. }
  78. .categoryMain {
  79. /* position: sticky; */
  80. /* top: 0; */
  81. height: calc(100vh - 130rpx);
  82. }
  83. .floorTitle {
  84. height: 80rpx;
  85. line-height: 80rpx;
  86. font-weight: 600;
  87. font-size: 28rpx;
  88. color: #000000;
  89. text-align: center;
  90. }
  91. .categotyPanel {
  92. display: flex;
  93. flex-flow: row;
  94. flex-wrap: nowrap;
  95. background: #FFFFFF;
  96. justify-content: space-between;
  97. height: calc(100% - 80rpx);
  98. }
  99. .category {
  100. flex: none;
  101. width: 161rpx;
  102. background: #F8F8F8;
  103. }
  104. .categoryItem {
  105. width: 161rpx;
  106. height: 101rpx;
  107. padding: 18rpx 0;
  108. box-sizing: border-box;
  109. background: #F8F8F8;
  110. }
  111. .categoryItem.active {
  112. background: #FFFFFF;
  113. }
  114. .categoryText {
  115. line-height: 65rpx;
  116. font-size: 24rpx;
  117. color: #000000;
  118. text-align: center;
  119. border-left: 10rpx solid #F8F8F8;
  120. }
  121. .categoryItem.active .categoryText {
  122. background: #FFFFFF;
  123. border-left: 10rpx solid #00BC8A;
  124. }
  125. .categoryBody {
  126. flex: 1;
  127. height: 100%;
  128. overflow: hidden;
  129. display: flex;
  130. flex-flow: column;
  131. }
  132. .goodsQuery {
  133. /* position: sticky; */
  134. /* top: 116rpx; */
  135. height: 58rpx;
  136. background: #FFFFFF;
  137. text-align: right;
  138. padding: 0 24rpx;
  139. }
  140. .queryItem {
  141. display: inline-block;
  142. font-size: 24rpx;
  143. line-height: 58rpx;
  144. margin-right: 30rpx;
  145. }
  146. .queryItem:nth-child(2) {
  147. content: "\e617";
  148. }
  149. .queryItem:last-child {
  150. /* float: right; */
  151. margin-right: 0;
  152. vertical-align: middle;
  153. top: 0;
  154. }
  155. .queryItem icon {
  156. vertical-align: middle;
  157. /* height: 62rpx; */
  158. }
  159. .zonghe {
  160. color: #A2A2A2;
  161. }
  162. .zonghe::after {
  163. content: '' !important;
  164. }
  165. .xiaoliang {
  166. vertical-align: middle;
  167. color: #A2A2A2;
  168. }
  169. .xiaoliang::after {
  170. vertical-align: middle;
  171. padding-left: 5rpx;
  172. color: #D9D9D9;
  173. content: "\e625";
  174. }
  175. .xiaoliang.ups::after {
  176. content: "\e623" !important;
  177. }
  178. .xiaoliang.downs::after {
  179. content: "\e624" !important;
  180. }
  181. .jiage {
  182. vertical-align: middle;
  183. }
  184. .jiage::after {
  185. vertical-align: middle;
  186. padding-left: 5rpx;
  187. content: "\e625";
  188. }
  189. .shaixuan {
  190. vertical-align: middle;
  191. position: relative;
  192. color: #A2A2A2;
  193. /* padding-right: 36rpx; */
  194. }
  195. .shaixuan::after {
  196. vertical-align: middle;
  197. padding-left: 10rpx;
  198. content: "\e61e";
  199. }
  200. .zonghe.ups,
  201. .shaixuan.ups,
  202. .xiaoliang.ups,
  203. .xiaoliang.downs {
  204. color: #000000;
  205. }
  206. .categoryItemTool {
  207. height: 84rpx;
  208. overflow: hidden;
  209. overflow-x: auto;
  210. white-space: nowrap;
  211. padding: 24rpx;
  212. box-sizing: border-box;
  213. padding-bottom: 12rpx;
  214. }
  215. .categoryItemToolItem {
  216. font-weight: 500;
  217. font-size: 22rpx;
  218. background: #F2F2F2;
  219. color: #0D0D0D;
  220. line-height: 48rpx;
  221. display: inline-block;
  222. margin-right: 16rpx;
  223. padding: 0 25rpx;
  224. box-sizing: border-box;
  225. border-radius: 47rpx;
  226. }
  227. .categoryItemToolItem:last-child {
  228. margin-right: 0 !important;
  229. }
  230. .categoryItemToolItem.active {
  231. color: #FFFFFF;
  232. background: #4F4F4F;
  233. }
  234. .goodsList {
  235. flex: 1;
  236. overflow: auto;
  237. /* display: flex; */
  238. /* flex-flow: row; */
  239. /* justify-content: space-between; */
  240. }
  241. .goodsScroll {
  242. overflow-y: auto;
  243. }
  244. .goods {
  245. height: 228rpx;
  246. padding: 24rpx;
  247. box-sizing: border-box;
  248. display: flex;
  249. flex-wrap: nowrap;
  250. flex-flow: row;
  251. justify-content: space-between;
  252. }
  253. .goods image {
  254. width: 180rpx;
  255. height: 180rpx;
  256. }
  257. .goodsInfo {
  258. flex: 1;
  259. display: flex;
  260. flex-flow: row;
  261. flex-wrap: wrap;
  262. flex-direction: column;
  263. padding-left: 16rpx;
  264. box-sizing: border-box;
  265. align-content: baseline;
  266. }
  267. .goodsInfo .name {
  268. font-weight: 500;
  269. font-size: 24rpx;
  270. color: #0D0D0D;
  271. line-height: 36rpx;
  272. height: 75rpx;
  273. }
  274. .goodsInfo .brief {
  275. flex: 1;
  276. font-weight: 400;
  277. font-size: 18rpx;
  278. color: #A2A2A2;
  279. line-height: 25rpx;
  280. }
  281. .goodsInfo .bar {
  282. width: 100%;
  283. height: 34rpx;
  284. display: flex;
  285. flex-flow: row;
  286. flex-wrap: nowrap;
  287. align-items: center;
  288. justify-content: space-between;
  289. }
  290. .goodsInfo .bar .price {
  291. flex: 1;
  292. font-weight: bold;
  293. font-size: 24rpx;
  294. line-height: 34rpx;
  295. color: #202020;
  296. float: left;
  297. }
  298. .goodsInfo .bar .icon {
  299. font-size: 34rpx;
  300. color: #00BC8A;
  301. }
  302. .goods:last-child {
  303. width: 100%;
  304. height: auto;
  305. display: inline-block;
  306. text-align: center;
  307. }
  308. .listEmpty {
  309. width: 208rpx;
  310. height: 208rpx;
  311. }
  312. .loadMore {
  313. text-align: center;
  314. font-size: 18rpx;
  315. color: #000000;
  316. line-height: 25rpx;
  317. /* background: #F8F8F8; */
  318. }
  319. .noMore {
  320. text-align: center;
  321. font-size: 18rpx;
  322. color: #A2A2A2;
  323. line-height: 25rpx;
  324. }
  325. .icon-shouye {
  326. position: absolute;
  327. left: 40rpx;
  328. }
  329. .shaixuanBox {
  330. padding: 0 24rpx;
  331. }
  332. .shaixuanBoxTitle {
  333. font-weight: 600;
  334. font-size: 32rpx;
  335. color: #000000;
  336. }
  337. .shaixuanBoxBrand {
  338. padding: 40rpx 0;
  339. display: flex;
  340. justify-content: space-between;
  341. flex-wrap: wrap;
  342. }
  343. .shaixuanBoxBrand::after {
  344. min-width: 214rpx;
  345. content: "";
  346. }
  347. .shaixuanBoxBrand view {
  348. width: 214rpx;
  349. height: 68rpx;
  350. font-weight: 400;
  351. font-size: 28rpx;
  352. text-align: center;
  353. color: #000000;
  354. line-height: 68rpx;
  355. background: #F8F8F8;
  356. border-radius: 8rpx 8rpx 8rpx 8rpx;
  357. margin-bottom: 16rpx;
  358. padding: 0 10rpx;
  359. box-sizing: border-box;
  360. }
  361. .shaixuanBoxBrand view.active {
  362. color: #FFFFFF;
  363. background: linear-gradient(180deg, #0D0D0D 0%, #4F4F4F 100%);
  364. }
  365. .shaixuanBoxPrice {
  366. padding: 40rpx 0;
  367. display: flex;
  368. justify-content: space-between;
  369. flex-wrap: nowrap;
  370. }
  371. .shaixuanBoxPrice input {
  372. width: 324rpx;
  373. height: 68rpx;
  374. border-radius: 8rpx 8rpx 8rpx 8rpx;
  375. border: 1rpx solid #A2A2A2;
  376. padding: 0 20rpx;
  377. box-sizing: border-box;
  378. text-align: center;
  379. }
  380. .shaixuanBoxBtn {
  381. display: flex;
  382. justify-content: space-between;
  383. flex-wrap: nowrap;
  384. margin-bottom: 70rpx;
  385. }
  386. .shaixuanBoxBtn button {
  387. width: 264rpx;
  388. height: 92rpx;
  389. background: #EEEEEE;
  390. border-radius: 8rpx 8rpx 8rpx 8rpx;
  391. text-align: center;
  392. line-height: 92rpx;
  393. font-weight: 500;
  394. font-size: 32rpx;
  395. padding: 0;
  396. margin: 0;
  397. }
  398. .shaixuanBoxBtn button:last-child {
  399. /* width: 407rpx; */
  400. color: white !important;
  401. background: #00BC8A !important;
  402. border-radius: 8rpx 8rpx 8rpx 8rpx;
  403. }
  404. .icon-guanbi {
  405. position: absolute;
  406. top: 22rpx;
  407. right: 42rpx;
  408. color: #D9D9D9;
  409. }