product-list.wxss 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /* components/product-list/product-list.wxss */
  2. .scrollView{
  3. height: calc(100vh - 550rpx);
  4. }
  5. .scrollViewIndex{
  6. height: 2080rpx;
  7. }
  8. .marginTop{
  9. margin-top: 350rpx;
  10. }
  11. .products{
  12. padding:0 30rpx;
  13. display: flex;
  14. flex-wrap: wrap;
  15. justify-content: space-between;
  16. }
  17. .goods-item {
  18. width: 326rpx; /* 313*1.0417 */
  19. background: #fff;
  20. border-radius: 25rpx; /* 20*1.0417 */
  21. box-shadow: 0 4rpx 16rpx rgba(0,0,0,0.05);
  22. overflow: hidden;
  23. display: flex;
  24. flex-direction: column;
  25. margin-bottom: 39rpx;
  26. border: 4rpx solid #7AC7B5;
  27. }
  28. .goods-image {
  29. width: 326rpx;
  30. height: 326rpx;
  31. background: #f7f7f7;
  32. }
  33. .goods-image-inner {
  34. width: 100%;
  35. height: 100%;
  36. object-fit: cover;
  37. }
  38. .goods-info {
  39. padding: 16rpx 21rpx 0 21rpx;
  40. }
  41. .goods-name {
  42. font-size: 18rpx;
  43. color: #333;
  44. display: block;
  45. margin-bottom: 8rpx;
  46. font-weight: bold;
  47. overflow: hidden;
  48. display: -webkit-box;
  49. -webkit-box-orient: vertical;
  50. -webkit-line-clamp: 2;
  51. text-overflow: ellipsis;
  52. }
  53. .goods-price {
  54. font-size: 30rpx;
  55. color: #40665E;
  56. }
  57. .goods-action {
  58. display: flex;
  59. align-items: center;
  60. justify-content: space-between;
  61. margin: 16rpx 21rpx 21rpx 21rpx;
  62. }
  63. .favorite {
  64. width: 32rpx;
  65. height: 32rpx;
  66. }
  67. .favorite-icon {
  68. width: 100%;
  69. height: 100%;
  70. }
  71. .shoppingCart{
  72. width: 40rpx;
  73. margin:0 20rpx 0 40rpx;
  74. }
  75. .goods-but{
  76. display: flex;
  77. }
  78. .add-to-cart,
  79. .buy-now {
  80. width: 99rpx;
  81. height: 39rpx;
  82. border-radius: 6rpx;
  83. margin-left: 8rpx;
  84. }