product-list.wxss 1.5 KB

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