catalog.wxss 8.7 KB

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