catalog.wxss 5.3 KB

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