index.acss 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. page{
  2. background-color: #F5F5F5;
  3. }
  4. .swiper-banner{
  5. width: 750rpx;
  6. height: 560rpx;
  7. }
  8. .swiper-view{
  9. width: 750rpx;
  10. height: 560rpx;
  11. }
  12. .product-list{
  13. width: 750rpx;
  14. height: auto;
  15. display: flex;
  16. flex-direction: row;
  17. flex-wrap: wrap;
  18. }
  19. .product-view{
  20. display: flex;
  21. flex-direction: column;
  22. width: 346rpx;
  23. height: auto;
  24. background: #FFFFFF;
  25. border-radius: 4px;
  26. margin: 20rpx 0 0 20rpx;
  27. }
  28. .product-view>image:nth-child(1){
  29. width: 346rpx;
  30. height: 346rpx;
  31. border-radius: 4px 4px 0px 0px;
  32. }
  33. .product-view>text:nth-child(2){
  34. width: 314rpx;
  35. padding: 16rpx;
  36. padding-bottom: 8rpx;
  37. height: 88rpx;
  38. font-size: 30rpx;
  39. font-weight: 400;
  40. color: rgba(0, 0, 0, 0.87);
  41. line-height: 44rpx;
  42. }
  43. .product-view>text:nth-child(3){
  44. width: 314rpx;
  45. padding: 0 16rpx 16rpx;
  46. height: 32rpx;
  47. font-size: 24rpx;
  48. font-weight: 400;
  49. color: rgba(0, 0, 0, 0.4);
  50. line-height: 32rpx;
  51. }
  52. .product-price{
  53. width: 314rpx;
  54. padding: 0 16rpx 16rpx;
  55. height: 48rpx;
  56. font-weight: 500;
  57. color: rgba(0, 0, 0, 0.87);
  58. line-height: 48rpx;
  59. color: rgb(251, 110, 0);
  60. }
  61. .product-price>text:nth-child(3){
  62. font-size: 26rpx;
  63. margin-left: 20rpx;
  64. text-decoration : line-through;
  65. color: rgba(0, 0, 0, 0.4);
  66. }
  67. .slogn{
  68. width: 750rpx;
  69. height: 32rpx;
  70. line-height: 32rpx;
  71. font-weight: 400;
  72. color: rgba(0, 0, 0, 0.24);
  73. font-size: 26rpx;
  74. text-align: center;
  75. padding-top: 68rpx;
  76. margin-bottom: 34rpx;
  77. padding-bottom: constant(safe-area-inset-bottom); /*兼容 IOS<11.2*/
  78. padding-bottom: env(safe-area-inset-bottom); /*兼容 IOS>11.2*/
  79. }