catalog.wxss 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  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:#fff;
  79. }
  80. .catalog .cate {
  81. /* border-left: 1px solid #fafafa; */
  82. flex: 1;
  83. height: 100%;
  84. padding: 0 30rpx 0 10rpx;
  85. }
  86. .banner {
  87. display: block;
  88. height: 212rpx;
  89. width: 100%;
  90. position: relative;
  91. }
  92. .banner .category-banner {
  93. /* position: absolute;
  94. top: 30rpx;
  95. left: 0; */
  96. border-radius: 8rpx;
  97. height: 212rpx;
  98. width: 566rpx;
  99. }
  100. .banner .txt {
  101. position: absolute;
  102. top: 30rpx;
  103. text-align: center;
  104. color: #fff;
  105. font-size: 28rpx;
  106. left: 0;
  107. height: 192rpx;
  108. line-height: 192rpx;
  109. width: 100%;
  110. }
  111. .catalog .hd {
  112. height: 64rpx;
  113. width: 100%;
  114. display: flex;
  115. align-items: center;
  116. margin:20rpx 0 0 ;
  117. }
  118. .catalog .hd .txt {
  119. font-size: 26rpx;
  120. padding: 0 6rpx;
  121. }
  122. .catalog .hd .line {
  123. width: 100%;
  124. height: 1px;
  125. background: #d9d9d9;
  126. position: absolute;
  127. z-index: 1;
  128. }
  129. .catalog .bd {
  130. height: auto;
  131. width: 100%;
  132. overflow: hidden;
  133. }
  134. .catalog .bd .item {
  135. display: block;
  136. float: left;
  137. height: 216rpx;
  138. width: 144rpx;
  139. margin-right: 34rpx;
  140. }
  141. .catalog .bd .item.last {
  142. margin-right: 0;
  143. }
  144. .catalog .bd .item .icon {
  145. height: 144rpx;
  146. width: 144rpx;
  147. }
  148. .catalog .bd .item .txt {
  149. display: block;
  150. text-align: center;
  151. font-size: 24rpx;
  152. color: #333;
  153. height: 72rpx;
  154. width: 144rpx;
  155. }
  156. .no-login {
  157. width: 100%;
  158. height: auto;
  159. margin: 0 auto;
  160. background-color: #fff;
  161. }
  162. .no-login .c {
  163. width: 100%;
  164. height: auto;
  165. margin-top: 400rpx;
  166. }
  167. .no-login .c text {
  168. margin: 0 auto;
  169. display: block;
  170. width: 258rpx;
  171. height: 59rpx;
  172. line-height: 29rpx;
  173. text-align: center;
  174. font-size: 35rpx;
  175. }
  176. .no-login button {
  177. width: 90%;
  178. margin: 0 auto;
  179. color: #fff;
  180. font-size: 30rpx;
  181. height: 96rpx;
  182. line-height: 96rpx;
  183. right: 0;
  184. display: flex;
  185. justify-content: center;
  186. align-items: center;
  187. position: flex;
  188. bottom: 0;
  189. left: 0;
  190. border-radius: 0;
  191. padding: 0;
  192. margin-left: 5%;
  193. text-align: center;
  194. border-top-left-radius: 50rpx;
  195. border-bottom-left-radius: 50rpx;
  196. border-top-right-radius: 50rpx;
  197. border-bottom-right-radius: 50rpx;
  198. letter-spacing: 3rpx;
  199. background-image: linear-gradient(to right, #9a9ba1 0%, #9a9ba1 100%);
  200. }
  201. .a-popular {
  202. width: 588rpx;
  203. height: auto;
  204. overflow: hidden;
  205. }
  206. /* .a-popular .b .item {
  207. border-bottom: 1px solid #d9d9d9;
  208. margin: 0 20rpx;
  209. height: 284rpx;
  210. width: 588rpx;
  211. padding-top: 20rpx;
  212. } */
  213. .a-popular .b .img {
  214. width: 170rpx;
  215. height: 174rpx;
  216. border-radius: 10rpx;
  217. margin:0 0 10rpx 0;
  218. }
  219. .a-popular .b .right {
  220. float: left;
  221. height: 264rpx;
  222. width: 336rpx;
  223. display: flex;
  224. flex-flow: row nowrap;
  225. }
  226. .a-popular .b .text {
  227. display: flex;
  228. flex-wrap: nowrap;
  229. flex-direction: column;
  230. /* justify-content: center; */
  231. overflow: hidden;
  232. height: 264rpx;
  233. width: 280rpx;
  234. }
  235. .a-popular .b .name {
  236. width: 280rpx;
  237. display: block;
  238. color: #333;
  239. line-height: 72rpx;
  240. font-size: 36rpx;
  241. }
  242. .a-popular .b .desc {
  243. width: 280rpx;
  244. display: block;
  245. color: #a98f76;
  246. line-height: 50rpx;
  247. font-size: 25rpx;
  248. height: 120rpx;
  249. }
  250. .a-popular .b .price {
  251. width: 280rpx;
  252. display: block;
  253. color: darkred;
  254. /*color: #a81d28;*/
  255. line-height: 50rpx;
  256. font-size: 33rpx;
  257. }
  258. .a-popular .b .price span {
  259. font-size: 24rpx;
  260. color: gray;
  261. }
  262. .a-popular .b .price .btn {
  263. width: 120rpx;
  264. border-radius: 30rpx;
  265. height: 54rpx;
  266. line-height: 54rpx;
  267. font-size:28rpx;
  268. background-color: #09AFFF;
  269. color: #fff;
  270. text-align: center;
  271. float: right;
  272. /* margin-right: 10rpx; */
  273. margin-top: -10rpx;
  274. }
  275. .a-popular .b .brand {
  276. font-size: 20rpx;
  277. color:#a98f76 ;
  278. display: block;
  279. line-height: 30rpx;
  280. padding: 2rpx;
  281. }
  282. .category-line{
  283. display: flex;
  284. flex-wrap: wrap;
  285. }
  286. .product-item{
  287. display: flex;
  288. flex-direction: column;
  289. align-items: center;
  290. width:174rpx;
  291. margin:0 20rpx 40rpx 0;
  292. }
  293. .product-name{
  294. width:166rpx;
  295. display: -webkit-box;
  296. -webkit-box-orient: vertical;
  297. -webkit-line-clamp: 2;
  298. text-overflow: ellipsis;
  299. overflow: hidden;
  300. font-size: 20rpx;
  301. text-align: center;
  302. }