catalog.wxss 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365
  1. page {
  2. height: 100vh;
  3. }
  4. .container {
  5. height: 100%;
  6. width: 100%;
  7. display: flex;
  8. flex-direction: column;
  9. }
  10. .adv{
  11. position: fixed;
  12. left: 0rpx;
  13. bottom: 0;
  14. z-index: 100;
  15. width: 750rpx;
  16. height: 165rpx;
  17. display: flex;
  18. /* border: 1px solid red; */
  19. }
  20. .search {
  21. height: 98rpx;
  22. width: 100%;
  23. padding: 0 24rpx;
  24. display: flex;
  25. align-items: center;
  26. }
  27. .search .input {
  28. width: 700rpx;
  29. height: 54rpx;
  30. background: #fff;
  31. border-radius: 28rpx;
  32. display: flex;
  33. align-items: center;
  34. justify-content: center;
  35. color:#85868A;
  36. }
  37. .search .txt {
  38. font-size: 24rpx;
  39. padding:0 0 0 14rpx;
  40. }
  41. .login{
  42. height: 100%;
  43. /* margin-bottom: 380rpx; */
  44. }
  45. .catalog {
  46. flex: 1;
  47. width: 100%;
  48. /* background: #fff; */
  49. display: flex;
  50. /* border-top: 1px solid #fafafa; */
  51. height:100%;
  52. /* line-height: 100%; */
  53. }
  54. .catalog .nav {
  55. width: 162rpx;
  56. height: 100%;
  57. background:#EDEDED;
  58. }
  59. .catalog .nav .item {
  60. text-align: center;
  61. line-height: 88rpx;
  62. width: 162rpx;
  63. overflow: hidden;
  64. text-overflow: ellipsis;
  65. height: 88rpx;
  66. color: #333;
  67. font-size: 26rpx;
  68. border-left: 4rpx solid #fff;
  69. white-space: nowrap;
  70. }
  71. .catalog .nav .item.active {
  72. font-size: 28rpx;
  73. /*border-left: 6rpx solid #ab956d;*/
  74. /* border-left: 6rpx solid #333;
  75. color: #ab956d; */
  76. border-left: 4rpx solid #09afff;
  77. color: #09afff;
  78. background:#f5f5f5;
  79. }
  80. .catalog .cate {
  81. /* border-left: 1px solid #fafafa; */
  82. flex: 1;
  83. height: 100%;
  84. padding: 0 0rpx 0 10rpx;
  85. box-sizing: border-box;
  86. overflow-x: hidden;
  87. }
  88. .banner {
  89. display: block;
  90. height: 212rpx;
  91. width: 100%;
  92. position: relative;
  93. }
  94. .banner .category-banner {
  95. /* position: absolute;
  96. top: 30rpx;
  97. left: 0; */
  98. border-radius: 8rpx;
  99. height: 212rpx;
  100. width: 566rpx;
  101. }
  102. .banner .txt {
  103. position: absolute;
  104. top: 30rpx;
  105. text-align: center;
  106. color: #fff;
  107. font-size: 28rpx;
  108. left: 0;
  109. height: 192rpx;
  110. line-height: 192rpx;
  111. width: 100%;
  112. }
  113. .catalog .hd {
  114. /* height: 64rpx; */
  115. width: 568rpx;
  116. display: flex;
  117. align-items: center;
  118. margin:20rpx 0 24rpx ;
  119. flex-direction: column;
  120. }
  121. .grey-devide{
  122. width:568rpx;
  123. height:2rpx;
  124. background: #D3D2C7;
  125. }
  126. .blue-devide{
  127. width:98rpx;
  128. height:2rpx;
  129. background: #09AFFF;
  130. margin-top:-2rpx;
  131. }
  132. .catalog .hd .txt {
  133. font-size: 26rpx;
  134. padding: 0 6rpx;
  135. height:30rpx;
  136. margin-bottom:8rpx;
  137. line-height: 30rpx;
  138. }
  139. .catalog .hd .line {
  140. width: 100%;
  141. height: 1px;
  142. background: #d9d9d9;
  143. position: absolute;
  144. z-index: 1;
  145. }
  146. .catalog .bd {
  147. height: auto;
  148. width: 100%;
  149. overflow: hidden;
  150. }
  151. .catalog .bd .item {
  152. display: block;
  153. float: left;
  154. height: 216rpx;
  155. width: 144rpx;
  156. margin-right: 34rpx;
  157. }
  158. .catalog .bd .item.last {
  159. margin-right: 0;
  160. }
  161. .catalog .bd .item .icon {
  162. height: 144rpx;
  163. width: 144rpx;
  164. }
  165. .catalog .bd .item .txt {
  166. display: block;
  167. text-align: center;
  168. font-size: 24rpx;
  169. color: #333;
  170. height: 72rpx;
  171. width: 144rpx;
  172. }
  173. .no-login {
  174. width: 100%;
  175. height: auto;
  176. margin: 0 auto;
  177. background-color: #fff;
  178. }
  179. .no-login .c {
  180. width: 100%;
  181. height: auto;
  182. margin-top: 400rpx;
  183. }
  184. .no-login .c text {
  185. margin: 0 auto;
  186. display: block;
  187. width: 258rpx;
  188. height: 59rpx;
  189. line-height: 29rpx;
  190. text-align: center;
  191. font-size: 35rpx;
  192. }
  193. .no-login button {
  194. width: 90%;
  195. margin: 0 auto;
  196. color: #fff;
  197. font-size: 30rpx;
  198. height: 96rpx;
  199. line-height: 96rpx;
  200. right: 0;
  201. display: flex;
  202. justify-content: center;
  203. align-items: center;
  204. position: flex;
  205. bottom: 0;
  206. left: 0;
  207. border-radius: 0;
  208. padding: 0;
  209. margin-left: 5%;
  210. text-align: center;
  211. border-top-left-radius: 50rpx;
  212. border-bottom-left-radius: 50rpx;
  213. border-top-right-radius: 50rpx;
  214. border-bottom-right-radius: 50rpx;
  215. letter-spacing: 3rpx;
  216. background-image: linear-gradient(to right, #9a9ba1 0%, #9a9ba1 100%);
  217. }
  218. .a-popular {
  219. width: 570rpx;
  220. height: auto;
  221. overflow: hidden;
  222. }
  223. /* .a-popular .b .item {
  224. border-bottom: 1px solid #d9d9d9;
  225. margin: 0 20rpx;
  226. height: 284rpx;
  227. width: 588rpx;
  228. padding-top: 20rpx;
  229. } */
  230. .a-popular .b .img {
  231. width: 170rpx;
  232. height: 174rpx;
  233. border-radius: 10rpx;
  234. margin:0 0 10rpx 0;
  235. }
  236. .a-popular .b .right {
  237. float: left;
  238. height: 264rpx;
  239. width: 336rpx;
  240. display: flex;
  241. flex-flow: row nowrap;
  242. }
  243. .a-popular .b .text {
  244. display: flex;
  245. flex-wrap: nowrap;
  246. flex-direction: column;
  247. /* justify-content: center; */
  248. overflow: hidden;
  249. height: 264rpx;
  250. width: 280rpx;
  251. }
  252. .a-popular .b .name {
  253. width: 280rpx;
  254. display: block;
  255. color: #333;
  256. line-height: 72rpx;
  257. font-size: 36rpx;
  258. }
  259. .a-popular .b .desc {
  260. width: 280rpx;
  261. display: block;
  262. color: #a98f76;
  263. line-height: 50rpx;
  264. font-size: 25rpx;
  265. height: 120rpx;
  266. }
  267. .a-popular .b .price {
  268. width: 280rpx;
  269. display: block;
  270. color: darkred;
  271. /*color: #a81d28;*/
  272. line-height: 50rpx;
  273. font-size: 33rpx;
  274. }
  275. .a-popular .b .price span {
  276. font-size: 24rpx;
  277. color: gray;
  278. }
  279. .a-popular .b .price .btn {
  280. width: 120rpx;
  281. border-radius: 30rpx;
  282. height: 54rpx;
  283. line-height: 54rpx;
  284. font-size:28rpx;
  285. background-color: #09AFFF;
  286. color: #fff;
  287. text-align: center;
  288. float: right;
  289. /* margin-right: 10rpx; */
  290. margin-top: -10rpx;
  291. }
  292. .a-popular .b .brand {
  293. font-size: 20rpx;
  294. color:#a98f76 ;
  295. display: block;
  296. line-height: 30rpx;
  297. padding: 2rpx;
  298. }
  299. .category-line{
  300. display: flex;
  301. flex-wrap: wrap;
  302. }
  303. .product-item{
  304. display: flex;
  305. flex-direction: column;
  306. align-items: center;
  307. width:170rpx;
  308. margin:0 20rpx 40rpx 0;
  309. }
  310. .product-name{
  311. width:166rpx;
  312. display: -webkit-box;
  313. -webkit-box-orient: vertical;
  314. -webkit-line-clamp: 2;
  315. text-overflow: ellipsis;
  316. overflow: hidden;
  317. font-size: 20rpx;
  318. text-align: center;
  319. }