index.wxss 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462
  1. /**index.wxss**/
  2. page {
  3. background: #f7f7f7;
  4. height: auto;
  5. }
  6. /* 轮播图及搜索框 */
  7. swiper {
  8. width: 100%;
  9. height: 350rpx;
  10. overflow: hidden;
  11. }
  12. swiper.pic-swiper {
  13. margin-top: 75rpx;
  14. padding: 10rpx 0;
  15. background: #fff;
  16. height: 422rpx;
  17. }
  18. swiper-item {
  19. font-size: 26rpx;
  20. font-weight: bold;
  21. }
  22. swiper.pic-swiper .img-box {
  23. font-size: 0;
  24. }
  25. .wx-swiper-dots {
  26. margin-bottom: 15rpx;
  27. }
  28. .banner-item {
  29. box-sizing: border-box;
  30. }
  31. swiper.pic-swiper .banner {
  32. position: absolute;
  33. width: 690rpx;
  34. margin: 0 10rpx;
  35. height: 402rpx;
  36. border-radius: 8rpx;
  37. display: inline-block;
  38. box-shadow: 0 4px 10px 0 rgba(83, 83, 83, 0.288);
  39. }
  40. .container .bg-sear {
  41. position: fixed;
  42. z-index: 999;
  43. width: 100%;
  44. line-height: 56rpx;
  45. background: #fff;
  46. padding-bottom: 20rpx;
  47. text-align: center;
  48. top: 0;
  49. }
  50. .bg-sear .section {
  51. display: flex;
  52. justify-content: center;
  53. align-items: center;
  54. height: 60rpx;
  55. background: #fff;
  56. z-index: 1;
  57. border-radius: 50rpx;
  58. width: 92%;
  59. margin: auto;
  60. left: 4%;
  61. background: #f7f7f7;
  62. }
  63. .bg-sear .section .placeholder {
  64. display: block;
  65. font-size: 24rpx;
  66. color: #999;
  67. }
  68. .bg-sear .section .search-img {
  69. width: 32rpx;
  70. height: 32rpx;
  71. margin-right: 10rpx;
  72. }
  73. /* 分类栏目 */
  74. .content {
  75. background: #fff;
  76. }
  77. .cat-item {
  78. display: flex;
  79. justify-content: space-between;
  80. background: #fff;
  81. padding-top: 20rpx;
  82. padding-bottom: 30rpx;
  83. }
  84. .cat-item .item {
  85. text-align: center;
  86. width: 25%;
  87. display: flex;
  88. flex-direction: column;
  89. margin: auto;
  90. align-items: center;
  91. }
  92. .cat-item .item image {
  93. width: 75rpx;
  94. height: 75rpx;
  95. }
  96. .cat-item .item text {
  97. font-size: 26rpx;
  98. margin-top: 20rpx;
  99. }
  100. /* 消息播放 */
  101. .message-play {
  102. position: relative;
  103. height: 90rpx;
  104. background: #fff;
  105. margin: auto;
  106. padding: 0 60rpx 0 100rpx;
  107. box-sizing: border-box;
  108. box-shadow: 0 16rpx 32rpx 0 rgba(7, 17, 27, 0.05);
  109. border: 2rpx solid #fafafa;
  110. }
  111. .message-play .hornpng {
  112. width: 77rpx;
  113. height: 36rpx;
  114. position: absolute;
  115. left: 20rpx;
  116. top: 27rpx;
  117. margin-right: 8rpx;
  118. }
  119. .message-play .swiper-cont {
  120. height: 90rpx;
  121. line-height: 90rpx;
  122. }
  123. .message-play .swiper-cont .items {
  124. text-overflow: ellipsis;
  125. display: -webkit-box;
  126. -webkit-line-clamp: 1;
  127. -webkit-box-orient: vertical;
  128. text-align: left;
  129. }
  130. .arrow {
  131. width: 15rpx;
  132. height: 15rpx;
  133. border-top: 3rpx solid #686868;
  134. border-right: 3rpx solid #686868;
  135. transform: rotate(45deg);
  136. position: absolute;
  137. right: 30rpx;
  138. top: 34rpx;
  139. }
  140. /* 每日上新 */
  141. .title {
  142. position: relative;
  143. height: 64rpx;
  144. line-height: 64rpx;
  145. font-size: 32rpx;
  146. padding:40rpx 0 10rpx 30rpx;
  147. color:#333;
  148. background: #fff;
  149. }
  150. .up-to-date .title{
  151. color: #fff;
  152. background: none;
  153. }
  154. .title .more-prod-cont {
  155. color: #999;
  156. display: inline-block;
  157. text-align: right;
  158. }
  159. .up-to-date .title .more-prod-cont .more {
  160. position:absolute;
  161. right:30rpx;
  162. top:48rpx;
  163. color:#fff;
  164. font-size:24rpx;
  165. background:#65addf;
  166. border-radius:30rpx;
  167. padding:0 30rpx;
  168. height:44rpx;
  169. line-height:44rpx;
  170. }
  171. .title .more-prod-cont .more{
  172. position:absolute;
  173. right:30rpx;
  174. top:48rpx;
  175. color:#666;
  176. font-size:24rpx;
  177. padding:0 20rpx;
  178. height:44rpx;
  179. line-height:44rpx;
  180. }
  181. .title .more-prod-cont .arrow {
  182. top:58rpx;
  183. right: 30rpx;
  184. border-top: 2rpx solid #666;
  185. border-right: 2rpx solid #666;
  186. }
  187. .up-to-date {
  188. background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAABxCAYAAACkwXoWAAABS2lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxMzggNzkuMTU5ODI0LCAyMDE2LzA5LzE0LTAxOjA5OjAxICAgICAgICAiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIi8+CiA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgo8P3hwYWNrZXQgZW5kPSJyIj8+IEmuOgAAAZBJREFUeJzt1DEBwCAAwLAxYfhEGXJABkcTBb065trnAwj6XwcAvGKAQJYBAlkGCGQZIJBlgECWAQJZBghkGSCQZYBAlgECWQYIZBkgkGWAQJYBAlkGCGQZIJBlgECWAQJZBghkGSCQZYBAlgECWQYIZBkgkGWAQJYBAlkGCGQZIJBlgECWAQJZBghkGSCQZYBAlgECWQYIZBkgkGWAQJYBAlkGCGQZIJBlgECWAQJZBghkGSCQZYBAlgECWQYIZBkgkGWAQJYBAlkGCGQZIJBlgECWAQJZBghkGSCQZYBAlgECWQYIZBkgkGWAQJYBAlkGCGQZIJBlgECWAQJZBghkGSCQZYBAlgECWQYIZBkgkGWAQJYBAlkGCGQZIJBlgECWAQJZBghkGSCQZYBAlgECWQYIZBkgkGWAQJYBAlkGCGQZIJBlgECWAQJZBghkGSCQZYBAlgECWQYIZBkgkGWAQJYBAlkGCGQZIJBlgECWAQJZBghkGSCQZYBAlgECWQYIZBkgkGWAQJYBAlkGCGRdKykDj9OUNYkAAAAASUVORK5CYII=");
  189. background-position: top;
  190. background-size: 100% 332rpx;
  191. background-repeat: no-repeat;
  192. background-color: #fff;
  193. }
  194. .up-to-date .item-cont {
  195. margin: auto;
  196. height: auto;
  197. width: calc(100% - 40rpx);
  198. padding:0 20rpx;
  199. display: flex;
  200. flex-wrap:wrap;
  201. justify-content: space-around;
  202. /* padding: 10rpx 0 0 0; */
  203. }
  204. .hotsale-item-cont {
  205. padding-bottom: 20rpx;
  206. background: #fff;
  207. }
  208. .up-to-date .item-cont::before {
  209. clear: both;
  210. height: 0;
  211. overflow: hidden;
  212. }
  213. .up-to-date .item-cont .prod-item {
  214. border-radius: 10rpx;
  215. width: 220rpx;
  216. background: #fff;
  217. display: inline-block;
  218. margin-bottom:20rpx;
  219. box-shadow: 0rpx 6rpx 8rpx rgba(58,134,185,0.2);
  220. }
  221. .up-to-date .item-cont .prod-item .imagecont {
  222. width: 100%;
  223. font-size: 0;
  224. }
  225. .up-to-date .item-cont .prod-item .imagecont .prodimg {
  226. width: 220rpx;
  227. height: 220rpx;
  228. vertical-align: middle;
  229. border-top-left-radius: 10rpx;
  230. border-top-right-radius: 10rpx;
  231. font-size:0;
  232. }
  233. .up-to-date .item-cont .prod-item .prod-text {
  234. font-size: 28rpx;
  235. overflow: hidden;
  236. margin: 10rpx 0;
  237. height: 68rpx;
  238. display: -webkit-box;
  239. word-break: break-all;
  240. display: -webkit-box;
  241. -webkit-line-clamp: 2;
  242. -webkit-box-orient: vertical;
  243. color: #000;
  244. padding: 0 10rpx;
  245. }
  246. .up-to-date .item-cont .prod-item .prod-price {
  247. font-size: 25rpx;
  248. color: #eb2444;
  249. font-family: Arial;
  250. padding: 0 10rpx;
  251. }
  252. .more.prod-price {
  253. position: absolute;
  254. bottom: 20rpx;
  255. }
  256. /* 商城热卖 */
  257. .hot-sale {
  258. /* margin: 15rpx 0; */
  259. }
  260. .hot-sale .prod-items {
  261. width: 345rpx;
  262. display: inline-block;
  263. background: #fff;
  264. padding-bottom: 20rpx;
  265. box-sizing: border-box;
  266. /* border: 2rpx solid #e1e1e1; */
  267. box-shadow: 0rpx 6rpx 8rpx rgba(58,134,185,0.2);
  268. }
  269. .hot-sale .prod-items:nth-child(2n-1) {
  270. margin: 20rpx 10rpx 10rpx 20rpx;
  271. }
  272. .hot-sale .prod-items:nth-child(2n) {
  273. margin: 20rpx 20rpx 10rpx 10rpx;
  274. }
  275. .prod-items .hot-imagecont .hotsaleimg {
  276. width: 341rpx;
  277. height: 341rpx;
  278. }
  279. .prod-items .hot-text .hotprod-text {
  280. font-size: 28rpx;
  281. white-space: nowrap;
  282. overflow: hidden;
  283. text-overflow: ellipsis;
  284. }
  285. .prod-items .hot-imagecont {
  286. font-size: 0;
  287. text-align: center;
  288. }
  289. .prod-items .hot-text {
  290. margin-top: 20rpx;
  291. padding: 0 10rpx;
  292. }
  293. .prod-items .hot-text .prod-info, .more-prod .prod-text-right .prod-info {
  294. font-size: 22rpx;
  295. color: #999;
  296. white-space: nowrap;
  297. overflow: hidden;
  298. text-overflow: ellipsis;
  299. }
  300. .prod-items .hot-text .prod-text-info {
  301. position: relative;
  302. height: 70rpx;
  303. line-height: 70rpx;
  304. font-family: Arial;
  305. }
  306. .prod-items .hot-text .prod-text-info .hotprod-price {
  307. display: inline;
  308. font-size: 26rpx;
  309. color: #eb2444;
  310. }
  311. .prod-items .hot-text .prod-text-info .basket-img {
  312. width: 50rpx;
  313. height: 50rpx;
  314. position: absolute;
  315. right: 0;
  316. bottom: 7rpx;
  317. /* border: 2rpx solid #eb2444;
  318. border-radius: 50%; */
  319. padding: 8rpx;
  320. }
  321. .singal-price {
  322. display: inline;
  323. font-size: 20rpx;
  324. text-decoration: line-through;
  325. color: #777;
  326. margin-left: 15rpx;
  327. }
  328. /* 更多宝贝 */
  329. .more-prod {
  330. background: #fff;
  331. }
  332. .more-prod .prod-show .show-item .more-prod-pic {
  333. width: 250rpx;
  334. height: 250rpx;
  335. }
  336. .more-prod .prod-show .show-item {
  337. position: relative;
  338. display: flex;
  339. padding: 20rpx;
  340. justify-content: start;
  341. border-top: 2rpx solid #f4f4f4;
  342. }
  343. .more-prod .prod-show .show-item .more-prod-pic .more-pic {
  344. max-width: 100%;
  345. max-height: 100%;
  346. }
  347. .more-prod .prod-show .show-item .prod-text-right {
  348. margin-left: 30rpx;
  349. width: 72%;
  350. padding-bottom: 10rpx;
  351. display: flex;
  352. flex-direction: column;
  353. justify-content: center;
  354. }
  355. .more-prod .prod-show .show-item .prod-text-right .go-to-buy {
  356. font-size: 26rpx;
  357. background: #fff2f5;
  358. color: #eb2444;
  359. border-radius: 50rpx;
  360. text-align: center;
  361. padding: 12rpx 20rpx;
  362. position: absolute;
  363. right: 20rpx;
  364. bottom: 20rpx;
  365. }
  366. .more-prod .prod-show .show-item .prod-text-right .prod-text.more {
  367. margin: 0;
  368. font-size: 28rpx;
  369. overflow: hidden;
  370. margin-bottom: 20rpx;
  371. display: -webkit-box;
  372. word-break: break-all;
  373. display: -webkit-box;
  374. -webkit-line-clamp: 2;
  375. -webkit-box-orient: vertical;
  376. }
  377. .more-prod .prod-show .show-item .prod-text-right .more.prod-price {
  378. font-size: 28rpx;
  379. font-family: arial;
  380. }
  381. .b-cart {
  382. margin-top: 30rpx;
  383. }
  384. .b-cart .basket-img {
  385. width: 50rpx;
  386. height: 50rpx;
  387. position: absolute;
  388. right: 46rpx;
  389. /* border: 2rpx solid #eb2444;
  390. border-radius: 50%; */
  391. padding: 8rpx;
  392. }