menuGoodsItem.wxss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. .spu {
  2. position: relative;
  3. width: 580rpx;
  4. box-sizing: border-box;
  5. display: block;
  6. border: .1rpx solid #eee;
  7. border-radius: 10rpx;
  8. margin-left: 20rpx;
  9. padding: 20rpx 10rpx;
  10. }
  11. .spu .spu-content {
  12. display: flex;
  13. }
  14. .spu .img-class {
  15. width: 160rpx;
  16. height: 160rpx;
  17. border-radius: 10rpx;
  18. image-rendering: crisp-edges;
  19. margin-right: 20rpx;
  20. overflow: hidden;
  21. }
  22. .spu-title {
  23. font-size: 30rpx;
  24. font-weight: bold;
  25. color: #333;
  26. }
  27. .spu-desc {
  28. font-size: 26rpx;
  29. color: #666;
  30. }
  31. .item-bottom {
  32. flex: 1;
  33. width: 0;
  34. display: flex;
  35. flex-direction: column;
  36. justify-content: space-between;
  37. }
  38. .spu .spu-content .item-bottom .spu-price {
  39. display: flex;
  40. align-items: flex-end;
  41. font-size: 26rpx;
  42. line-height: 26rpx;
  43. overflow: hidden;
  44. margin-bottom: 10rpx;
  45. margin-top: 10rpx;
  46. }
  47. .spu .spu-content .item-bottom .spu-price .sale-price {
  48. color: #ff5344;
  49. margin-right: 12rpx;
  50. }
  51. .spu .spu-content .item-bottom .spu-price .sale-price .span {
  52. font-size: 46rpx;
  53. line-height: 42rpx;
  54. margin: 0;
  55. font-weight: bold;
  56. }
  57. .spu .spu-content .item-bottom .spu-price .market-price {
  58. text-decoration: line-through;
  59. color: #999;
  60. margin-right: 20rpx;
  61. }
  62. .spu .spu-content .add-cart {
  63. width: 68rpx;
  64. height: 68rpx;
  65. padding: 0;
  66. margin: 0;
  67. position: absolute;
  68. right: 20rpx;
  69. bottom: 20rpx;
  70. display: flex;
  71. align-items: center;
  72. justify-content: center;
  73. }
  74. .spu .spu-content .add-cart .img {
  75. width: 54rpx;
  76. height: 54rpx;
  77. display: block;
  78. }
  79. .spu .act-end {
  80. position: absolute;
  81. height: 60rpx;
  82. border-radius: 10rpx;
  83. background: rgba(0, 0, 0, 0.5);
  84. color: #fff;
  85. font-size: 28rpx;
  86. text-align: center;
  87. line-height: 60rpx;
  88. left: 30rpx;
  89. top: 60rpx;
  90. padding: 0 12rpx;
  91. }
  92. .spu-play {
  93. position: absolute;
  94. left: 55rpx;
  95. top: 50%;
  96. width: 60rpx;
  97. height: 60rpx;
  98. margin-top: -30rpx;
  99. }
  100. .spu-play .img {
  101. width: 100%;
  102. height: 100%;
  103. }
  104. .col-input-number {
  105. position: absolute;
  106. right: 20rpx;
  107. bottom: 20rpx;
  108. }
  109. .col-input-number .input-number-view {
  110. width: 40rpx !important;
  111. height: 40rpx !important;
  112. }
  113. .col-input-number .input-number-img{
  114. width: 40rpx !important;
  115. height: 40rpx !important;
  116. }
  117. .col-input-number .input-number-input {
  118. height: 40rpx !important;
  119. width: 60rpx !important;
  120. font-size: 26rpx;
  121. line-height: 40rpx !important;
  122. }
  123. .text-overflow1 {
  124. overflow: hidden;
  125. text-overflow:ellipsis;
  126. white-space: nowrap;
  127. }