1
0

catalog.wxss 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453
  1. page {
  2. height: 100%;
  3. }
  4. .container {
  5. background: #f9f9f9;
  6. height: 100%;
  7. width: 100%;
  8. display: flex;
  9. flex-direction: column;
  10. }
  11. .search {
  12. height: 88rpx;
  13. width: 100%;
  14. padding: 0 30rpx;
  15. background: #fff;
  16. display: flex;
  17. align-items: center;
  18. }
  19. .search .input {
  20. width: 690rpx;
  21. height: 56rpx;
  22. background: #ededed;
  23. border-radius: 8rpx;
  24. display: flex;
  25. align-items: center;
  26. justify-content: center;
  27. }
  28. .search .icon {
  29. background: url(http://120.76.26.84:80/group1/M00/00/02/rBJEdVvr2eOAETvOAAABevWIuCY300.png) center no-repeat;
  30. background-size: 100%;
  31. width: 28rpx;
  32. height: 28rpx;
  33. }
  34. .search .txt {
  35. height: 42rpx;
  36. line-height: 42rpx;
  37. color: #666;
  38. padding-left: 10rpx;
  39. font-size: 30rpx;
  40. }
  41. .catalog {
  42. flex: 1;
  43. width: 100%;
  44. background: #fff;
  45. display: flex;
  46. border-top: 1px solid #fafafa;
  47. }
  48. .catalog .nav {
  49. width: 142rpx;
  50. height: 100%;
  51. }
  52. .catalog .nav .item {
  53. text-align: center;
  54. line-height: 90rpx;
  55. width: 162rpx;
  56. height: 90rpx;
  57. color: #333;
  58. font-size: 28rpx;
  59. border-left: 6rpx solid #fff;
  60. }
  61. .catalog .nav .item.active {
  62. color: #ab2b2b;
  63. font-size: 30rpx;
  64. border-left: 6rpx solid #ab2b2b;
  65. }
  66. .catalog .cate {
  67. border-left: 1px solid #fafafa;
  68. flex: 1;
  69. height: 100%;
  70. padding: 0 10rpx 0 10rpx;
  71. }
  72. .banner {
  73. display: block;
  74. height: 222rpx;
  75. width: 100%;
  76. position: relative;
  77. }
  78. .banner .image {
  79. position: absolute;
  80. top: 30rpx;
  81. left: 0;
  82. border-radius: 4rpx;
  83. height: 192rpx;
  84. width: 100%;
  85. }
  86. .banner .txt {
  87. position: absolute;
  88. top: 30rpx;
  89. text-align: center;
  90. color: #fff;
  91. font-size: 28rpx;
  92. left: 0;
  93. height: 192rpx;
  94. line-height: 192rpx;
  95. width: 100%;
  96. }
  97. .catalog .hd {
  98. height: 108rpx;
  99. width: 100%;
  100. display: flex;
  101. justify-content: center;
  102. align-items: center;
  103. }
  104. .catalog .hd .txt {
  105. font-size: 24rpx;
  106. text-align: center;
  107. color: #333;
  108. padding: 0 10rpx;
  109. width: auto;
  110. }
  111. .catalog .hd .line {
  112. width: 40rpx;
  113. height: 1px;
  114. background: #d9d9d9;
  115. }
  116. .catalog .bd {
  117. height: auto;
  118. width: 100%;
  119. overflow: hidden;
  120. text-align:center;
  121. }
  122. .catalog .bd .item {
  123. display: block;
  124. float: left;
  125. /* height: 246rpx; */
  126. /* width: 170rpx; */
  127. margin-right: 54rpx;
  128. }
  129. .catalog .bd .item.last {
  130. margin-right: 0;
  131. }
  132. .catalog .bd .item .icon {
  133. height: 90rpx;
  134. width: 100rpx;
  135. }
  136. .catalog .bd .item .txt {
  137. display: block;
  138. text-align: center;
  139. font-size: 22rpx;
  140. color: #333;
  141. height: 72rpx;
  142. width: 144rpx;
  143. }
  144. .catalog .nav .contact {
  145. text-align: center;
  146. line-height: 90rpx;
  147. width: 162rpx;
  148. height: 90rpx;
  149. color: #333;
  150. font-size: 28rpx;
  151. border-left: 6rpx solid #fff;
  152. filter: alpha(Opacity=100);
  153. -moz-opacity: 1;
  154. opacity: 1;
  155. background: url('http://120.76.26.84:80/group1/M00/00/02/rBJEdVvr2f-ATIZ6AAAh9NXovEg111.jpg') center no-repeat;
  156. background-size: 75rpx 70rpx;
  157. }
  158. .sort {
  159. position: relative;
  160. background: #fff;
  161. width: 100%;
  162. height: 78rpx;
  163. }
  164. .sort-box {
  165. background: rgb(250, 247, 247);
  166. width: 100%;
  167. height: 78rpx;
  168. overflow: hidden;
  169. /* padding: 0 30rpx; */
  170. display: flex;
  171. margin-top:20rpx;
  172. }
  173. .sort-box .item {
  174. height: 78rpx;
  175. line-height: 78rpx;
  176. text-align: center;
  177. flex: 1;
  178. color: #333;
  179. font-size: 26rpx;
  180. }
  181. .sort-box .item .txt {
  182. display: block;
  183. width: 100%;
  184. height: 100%;
  185. color: #333;
  186. }
  187. .sort-box .item.active .txt {
  188. color: #b4282d;
  189. }
  190. .sort-box .item.by-price {
  191. background: url(http://120.76.26.84:80/group1/M00/00/02/rBJEdVvr2jOAM4X6AAABD1aCMbo590.png) 135rpx center no-repeat;
  192. background-size: 20rpx 30rpx;
  193. }
  194. .sort-box .item.by-price.active.asc {
  195. background: url(http://120.76.26.84:80/group1/M00/00/02/rBJEdVvr2keASXmNAAABHU5MD_M495.png) 135rpx center no-repeat;
  196. background-size: 20rpx 30rpx;
  197. }
  198. .sort-box .item.by-price.active.desc {
  199. background: url(http://120.76.26.84:80/group1/M00/00/02/rBJEdVvr2lKAJ-QhAAABdVcSS6A874.png) 135rpx center no-repeat;
  200. background-size: 20rpx 30rpx;
  201. }
  202. .sort-box .item.by-sell {
  203. background: url(http://120.76.26.84:80/group1/M00/00/02/rBJEdVvr2jOAM4X6AAABD1aCMbo590.png) 135rpx center no-repeat;
  204. background-size: 20rpx 30rpx;
  205. }
  206. .sort-box .item.by-sell.active.asc {
  207. background: url(http://120.76.26.84:80/group1/M00/00/02/rBJEdVvr2keASXmNAAABHU5MD_M495.png) 135rpx center no-repeat;
  208. background-size: 20rpx 30rpx;
  209. }
  210. .sort-box .item.by-sell.active.desc {
  211. background: url(http://120.76.26.84:80/group1/M00/00/02/rBJEdVvr2lKAJ-QhAAABdVcSS6A874.png) 135rpx center no-repeat;
  212. background-size: 20rpx 30rpx;
  213. }
  214. /* */
  215. .cate-item {
  216. width: 100%;
  217. height: auto;
  218. overflow: hidden;
  219. border-top: 1rpx solid #f4f4f4;
  220. /* margin-top: 20rpx; */
  221. margin-bottom: 200rpx;
  222. }
  223. .cate-item .item {
  224. border-top: 1px solid #d9d9d9;
  225. margin: 0 10rpx;
  226. height: 272rpx;
  227. width: 100%;
  228. }
  229. .item-text{
  230. margin-top: 10rpx;
  231. height: 100rpx;
  232. width: 100%;
  233. color: #a8a6a6;
  234. text-align: center;
  235. }
  236. .cate-item .item .left {
  237. width: 190rpx;
  238. height: 272rpx;
  239. float: left;
  240. display: flex;
  241. justify-content: center;
  242. align-items: center;
  243. }
  244. .cate-item .item .left .img {
  245. width: 180rpx;
  246. height: 180rpx;
  247. }
  248. .cate-item .item .right {
  249. /* float: left; */
  250. height: 264rpx;
  251. width: 350rpx;
  252. display: flex;
  253. flex-flow: row nowrap;
  254. padding-left: 15rpx;
  255. }
  256. .cate-item .item .right .text {
  257. display: flex;
  258. flex-wrap: nowrap;
  259. flex-direction: column;
  260. justify-content: center;
  261. overflow: hidden;
  262. height: 264rpx;
  263. width: 456rpx;
  264. }
  265. .cate-item .item .right .name {
  266. display: block;
  267. color: #333;
  268. line-height: 50rpx;
  269. font-size: 26rpx;
  270. }
  271. .cate-item .item .right .desc {
  272. width: 456rpx;
  273. display: block;
  274. color: #999;
  275. line-height: 50rpx;
  276. font-size: 23rpx;
  277. }
  278. .cate-item .item .right .goods-do {
  279. display: inline;
  280. }
  281. .cate-item .item .right .goods-do .price {
  282. /* width: 50rpx; */
  283. /* display: block; */
  284. color: #b4282d;
  285. line-height: 50rpx;
  286. font-size:35rpx;
  287. display: inline;
  288. }
  289. .cate-item .item .right .goods-do .org-price {
  290. /* width: 40rpx; */
  291. /* display: block; */
  292. color: #333;
  293. line-height: 50rpx;
  294. font-size: 23rpx;
  295. display: inline;
  296. padding-left: 10rpx;
  297. margin-left: 16rpx;
  298. }
  299. .number-item {
  300. display: inline-flex;
  301. -webkit-box-pack: justify;
  302. align-items: center;
  303. position: absolute;
  304. right: 0;
  305. margin-right: 17rpx;
  306. }
  307. .number-item .selnum {
  308. height: 71rpx;
  309. display: flex;
  310. }
  311. .number-item .cut {
  312. background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAMAAADypuvZAAAAM1BMVEX////Z296wsLD6+vvo6evi5Obe3+Lr7O709fb5+fr3+Pjb3eDw8fLu7/Hl5+nk5ui5ubmS1nTyAAABG0lEQVRIx52WWXLEIAxEeUGSGeNl7n/aME6lUmQWm+5f+5l2A5LSC+XFPCrUcFtyuqDbFHSK6XaCzE7TvpZ8LFnWnSafPyB5g2oldSpWYXvrcgKmkQdNDpbfWDDwVwEE8cH6HMRTIAX8Y7rZofxbByydyKBfKx7MORV9Bn4CPL82EfkKlOMv+QxzuqQZfr++YemijK3Dz9Sb8mb0sib8Z4tqGlDldrA2AtnhKygjUCGOX0tDesS2sI9BO0vzuI5BK5acMgYVPAV5DMpEy71P9P71pHu/J9REDzXmBdVDSJBkTwpCilzaXOkYSQdWuRrSJZSuu1JYpBKmFEupLCsNQGk1SlOT2qfSqJWRQBg+lDFHG6j00U0fEqVx9BvALAkNabHL3QAAAABJRU5ErkJggg==);
  313. box-sizing: border-box;
  314. width: 25px;
  315. border: none;
  316. border-radius: 50%;
  317. height: 25px;
  318. background-size: 100% 100%;
  319. }
  320. .number-item .number {
  321. width: 2em;
  322. text-align: center;
  323. color: #333;
  324. }
  325. .number-item .add {
  326. background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAANlBMVEX/0WH///8zMzP/02b//fb/+u7/5qj/45z/3oz/1W1KRDj/8c//78j/7L7/6rX/2HfEo1P/3IXeVLZ3AAAA70lEQVRIx52WWQ7DIAxEJzFrNpL7X7ZIbdUUnITh/aIngW1sY6gwiwspisQU3GLq81KxaxCckLDaW8V6KHh7qRgnUBFndGWOuCTOmrLhlq1WPB7wpXLgkeNf8WjAn5UNTWw/ZUYj81cxEY1E81EcmnFvxQqaEZuVi2jt07TrUcuKhcY0jhM0bFZWaIwZaKxZCZwSBhjhFDFYwClZcKziEFglILFKQiwyOFYUOY0QnFGMMqfSo/AX63k+H+SeVPIF01OWfPHzX6zrI/Ptgm9KfOvjGyzfxvlhwY8kfvDx45Uf4vyqwC8kvWtP/3LFr3AvL0kJEWHNe5sAAAAASUVORK5CYII=);
  327. box-sizing: border-box;
  328. width: 25px;
  329. border: none;
  330. border-radius: 50%;
  331. height: 25px;
  332. background-size: 100% 100%;
  333. }
  334. .line-through {
  335. text-decoration: line-through;
  336. }
  337. /* activity */
  338. .activity {
  339. position: relative;
  340. background: #fff;
  341. width: 100%;
  342. height: 78rpx;
  343. }
  344. .activity-box {
  345. background: #fff;
  346. width: 100%;
  347. height: 78rpx;
  348. overflow: hidden;
  349. padding: 0 30rpx;
  350. display: flex;
  351. }
  352. .activity-box .item {
  353. height: 78rpx;
  354. line-height: 78rpx;
  355. text-align: center;
  356. flex: 1;
  357. color: #333;
  358. font-size: 26rpx;
  359. }
  360. .activity-box .item .txt {
  361. display: block;
  362. width: 100%;
  363. height: 100%;
  364. color: #333;
  365. }
  366. .activity-box .item.active .txt {
  367. color: #b4282d;
  368. }
  369. .attr-close{
  370. position: absolute;
  371. text-align: center;
  372. top:130rpx;
  373. right:20rpx;
  374. }
  375. .coupon .img {
  376. left: 5%;
  377. position: absolute;
  378. top: 10%;
  379. height:80%;
  380. width:90%;
  381. z-index: 999;
  382. background: #FFFFFF;
  383. filter:alpha(opacity=10);
  384. -moz-opacity:10;
  385. opacity:10;
  386. }
  387. .add2 {
  388. box-sizing:border-box;
  389. width:25px;
  390. border:none;
  391. border-radius:50%;
  392. height:25px;
  393. }