index.wxss 5.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /**index.wxss**/
  2. .swiper-item{position: relative; width: 100%;}
  3. .swiper_banner swiper-item image{width: 100%; height: 400rpx;}
  4. .swiper-box .wx-swiper-dots.wx-swiper-dots-horizontal{width: 100%; padding-right: 30rpx;display: flex;justify-content:flex-end;box-sizing: border-box;}
  5. .nav{ width: 100%; padding:0 10rpx; box-sizing: border-box; height: 197rpx; align-items: center; background-color: #fff;}
  6. .nav .nav-item{width: 25%;}
  7. .nav .nav-item image{width: 80rpx; height:80rpx;}
  8. .nav .nav-item text{display: blcok;}
  9. .nav .nav-item navigator{width: 100%; flex-direction: column; align-items: center;}
  10. .nav .nav-item .nav-title{margin-top: 10rpx; font-size: 24rpx; color: #666;}
  11. .title-bar{position: relative; display: flex; height: 92rpx; border-bottom: 1px solid #eaeaea; align-items: center;justify-content: center;}
  12. /* .title-bar text{font-size: 36rpx; font-weight: bold;} */
  13. .title-bar navigator{position: absolute; right: 30rpx; top: 50%; margin-top: -15rpx; font-size: 24rpx; color: #999;align-items:flex-end;}
  14. .title-bar .iconfont{font-size: 40rpx; margin-right: 10rpx;}
  15. .title-bar .icon-xiala{vertical-align:middle;font-size:30rpx; font-weight: bold;}
  16. .new-product{margin-top: 30rpx; background-color: #fff;}
  17. .scroll-product{width: 100%; overflow: hidden; white-space: nowrap; padding:25rpx 0 35rpx 30rpx; box-sizing: border-box;}
  18. .scroll-product .item{width: 300rpx; height: 200rpx; margin-right: 28rpx; display: inline-block;}
  19. .scroll-product .item .img-box{width: 100%; height: 300rpx;}
  20. .scroll-product .item .img-box image{width: 100%; height: 300rpx;border-radius:10rpx;}
  21. .scroll-product .item .pro-info{width: 100%; padding-left: 10rpx; font-size: 28rpx;}
  22. .scroll-product .item .pro-info .pro-title{line-height: 60rpx; overflow: hidden;white-space: nowrap;text-overflow: ellipsis; }
  23. .scroll-product .item .pro-info .price-small{color: #ff3d3d;}
  24. .today-new{background-color: #fff; margin-top: 30rpx;}
  25. .new-pro-wrapper{padding: 0 30rpx;}
  26. .new-pro-wrapper .item navigator{width: 100%; padding:36rpx 25rpx; border-bottom: 1px solid #eee; justify-content: space-between; box-sizing: border-box;}
  27. .new-pro-wrapper .item .text-box{width:410rpx; flex-direction: column; justify-content: space-around;}
  28. .new-pro-wrapper .item .text-box .title{display: -webkit-box; display:-moz-box; display:box;-webkit-box-orient: vertical; -moz-box-orient: vertical; -webkit-line-clamp: 2;-moz-line-clamp: 2;overflow: hidden;}
  29. .new-pro-wrapper .item .text-box .price{color: #ff3d3d; font-size: 40rpx;}
  30. .new-pro-wrapper .item .text-box .price text{font-size: 28rpx;}
  31. .new-pro-wrapper .item .img-box image{width: 195rpx; height: 195rpx;border-radius:10rpx;}
  32. .new-pro-wrapper .item:nth-child(2) navigator{flex-direction:row-reverse;}
  33. .hot-banner image{display: block; width: 100%; height: 300rpx}
  34. .product-like .title-bar{height: 120rpx; border-bottom: 0;}
  35. .product-like .like-box{padding: 0 30rpx; flex-wrap: wrap; justify-content: space-between;}
  36. .product-like .like-box .item{width: 330rpx; background-color: #fff; margin-bottom: 28rpx;}
  37. .product-like .like-box .item .img-box image{width: 100%; height: 330rpx;border-radius:10rpx;}
  38. .product-like .like-box .item .text-info{padding: 10rpx;line-height: 1.5;}
  39. .product-like .like-box .item .text-info .title{overflow: hidden;white-space: nowrap;text-overflow: ellipsis;}
  40. .product-like .like-box .item .text-info .price{color:#ff3d3d;}
  41. .new-product2{margin-top: 30rpx; background-color: #fff;}
  42. .scroll-product2{width: 100%; overflow: hidden; white-space: nowrap; padding:25rpx 0 35rpx 30rpx; box-sizing: border-box;}
  43. .scroll-product2 .item{width: 304rpx;margin-right: 28rpx; display: inline-block;border:1rpx solid #eee;border-radius:20rpx;}
  44. .scroll-product2 .item .img-box{width: 100%; height: 304rpx;}
  45. .scroll-product2 .item .img-box image{width: 100%; height: 304rpx;border-radius:20rpx 20rpx 0 0;}
  46. .scroll-product2 .item .pro-info .price-small{color: #ff3d3d;font-size:26rpx;
  47. margin-top:10rpx;text-align:center;}
  48. .scroll-product2 .item .pro-info .pro-title{text-align:center;margin-top:25rpx;overflow:hidden;padding:0 10rpx;}
  49. .scroll-product2 .item .pro-info .buy{width:250rpx;height:54rpx;background-color:#e6413a;border-radius:50rpx;font-size:24rpx;color:#fff;align-items:center;justify-content:center;margin:17rpx auto 25rpx auto;}
  50. .scroll-product2 .item .pro-info .buy image{width:27rpx;height:26rpx;margin-right:12rpx;}
  51. .new-pro-wrapper2{padding: 0 30rpx;}
  52. .new-pro-wrapper2 .item navigator{width: 100%; padding:36rpx 0; border-bottom: 1px solid #eee; justify-content: space-between; box-sizing: border-box;flex-direction:row-reverse;}
  53. .new-pro-wrapper2 .item .text-box{width:470rpx; flex-direction: column; justify-content: space-around;}
  54. .new-pro-wrapper2 .item .text-box .salePrice{width:210rpx;height:46rpx;text-align:center;line-height:46rpx;font-size:20rpx;color:#fff;background-image:linear-gradient(to right,#ff6248 0%,#ff3e1e 100%);border-radius:30rpx 0 30rpx 0rpx;margin-top:18rpx;}
  55. .new-pro-wrapper2 .item .text-box .salePrice text{font-size:24rpx;}
  56. .new-pro-wrapper2 .item .text-box .title{display: -webkit-box; display:-moz-box; display:box;-webkit-box-orient: vertical; -moz-box-orient: vertical; -webkit-line-clamp: 1;-moz-line-clamp: 1;overflow: hidden;}
  57. .new-pro-wrapper2 .item .text-box .price{color: #999; font-size:24rpx;justify-content:space-between;align-items:center;}
  58. .new-pro-wrapper2 .item .text-box .price .dailyPrice{text-decoration:line-through;}
  59. .new-pro-wrapper2 .item .text-box .price text{font-size: 28rpx;}
  60. .new-pro-wrapper2 .item .img-box image{width:188rpx; height:188rpx;border-radius:10rpx;}