index.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. @import "../../../static/common-head.scss";
  2. .product-item {
  3. position: relative;
  4. background-color: #fff;
  5. box-sizing: border-box;
  6. width: 365px;
  7. margin: 0 auto 20rpx;
  8. box-sizing: border-box;
  9. border-radius: 16rpx;
  10. .icon-guanlian-shanchu {
  11. position: absolute;
  12. right: 0;
  13. top: 0;
  14. width: 80rpx;
  15. height: 80rpx;
  16. text-align: center;
  17. line-height: 80rpx;
  18. }
  19. .product {
  20. padding: 20rpx 30rpx;
  21. box-sizing: border-box;
  22. .mian {
  23. position: relative;
  24. display: flex;
  25. width: 100%;
  26. box-sizing: border-box;
  27. .img {
  28. flex-shrink: 0;
  29. width: 112rpx;
  30. height: 112rpx;
  31. border-radius: 16rpx;
  32. margin-right: 20rpx;
  33. overflow: hidden;
  34. .err {
  35. display: flex;
  36. width: 100%;
  37. height: 100%;
  38. align-items: center;
  39. justify-content: center;
  40. font-size: 22rpx;
  41. border: 1px solid #ddd;
  42. box-sizing: border-box;
  43. color: #666;
  44. }
  45. }
  46. .dec {
  47. flex: 1;
  48. width: 0;
  49. min-height: 128rpx;
  50. height: 100%;
  51. font-size: 24rpx;
  52. font-family: PingFang SC-Regular, PingFang SC;
  53. color: #999999;
  54. .title {
  55. display: flex;
  56. width: 95%;
  57. min-height: 40rpx;
  58. font-size: 28rpx;
  59. font-weight: 600;
  60. color: #333333;
  61. .line-1 {
  62. max-width: 380rpx;
  63. }
  64. .tag {
  65. display: inline-block;
  66. color: #fff;
  67. background-color: #F80700;
  68. padding: 0 20rpx;
  69. margin-left: 20rpx;
  70. border-radius: 20rpx;
  71. font-weight: normal;
  72. font-size: 22rpx;
  73. line-height: 40rpx;
  74. }
  75. }
  76. .subfield {
  77. display: flex;
  78. margin-top: 8rpx;
  79. line-height: 34rpx;
  80. text {
  81. display: inline-block;
  82. width: 48%;
  83. }
  84. }
  85. .price {
  86. font-size: 30rpx;
  87. color: #FF3B30;
  88. }
  89. .old-price {
  90. font-size: 24rpx;
  91. font-family: PingFang SC-Regular, PingFang SC;
  92. color: #999999;
  93. margin-left: 8rpx;
  94. text-decoration-line: line-through;
  95. }
  96. }
  97. .delete {
  98. position: absolute;
  99. width: 68rpx;
  100. height: 68rpx;
  101. line-height: 68rpx;
  102. right: -30rpx;
  103. top: -20rpx;
  104. text-align: center;
  105. font-size: 32rpx;
  106. color: #999;
  107. }
  108. }
  109. }
  110. }