index.wxss 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. .icon-shop {
  2. position: absolute;
  3. right: 20rpx;
  4. bottom: 20rpx;
  5. width: 54rpx;
  6. height: 54rpx;
  7. }
  8. .icon-shop .img {
  9. width: 54rpx;
  10. height: 54rpx;
  11. }
  12. .mask {
  13. width: 348rpx;
  14. height: 240rpx;
  15. position: absolute;
  16. left: 0;
  17. top: 30rpx;
  18. background: rgba(255, 255, 255, 0.5);
  19. display: flex;
  20. align-items: center;
  21. justify-content: center;
  22. }
  23. .mask .toast {
  24. width: 196rpx;
  25. height: 60rpx;
  26. background: rgba(0, 0, 0, 0.5);
  27. border-radius: 10rpx;
  28. text-align: center;
  29. line-height: 60rpx;
  30. color: #fff;
  31. font-weight: bold;
  32. font-size: 28rpx;
  33. }
  34. .spu-img {
  35. width: 240rpx;
  36. height: 240rpx;
  37. border-radius: 10rpx;
  38. }
  39. .comming-spu-content {
  40. width: 348rpx;
  41. height: 452rpx;
  42. border-radius: 20rpx;
  43. background: #fff;
  44. box-sizing: border-box;
  45. padding: 30rpx 26rpx 30rpx 26rpx;
  46. box-shadow: 0 0 40rpx rgba(0, 0, 0, 0.05);
  47. position: relative;
  48. }
  49. .comming-spu-content .spu-img-content {
  50. display: flex;
  51. align-items: center;
  52. justify-content: center;
  53. width: 296rpx;
  54. height: 240rpx;
  55. margin: 0 auto 34rpx;
  56. }
  57. .comming-spu-content .spu-name {
  58. font-size: 28rpx;
  59. line-height: 28rpx;
  60. height: 36rpx;
  61. color: #444;
  62. margin-bottom: 16rpx;
  63. font-weight: 500;
  64. position: relative;
  65. }
  66. .comming-spu-content .spu-name .span {
  67. width: 100%;
  68. overflow: hidden;
  69. text-overflow: ellipsis;
  70. white-space: nowrap;
  71. position: absolute;
  72. left: 0;
  73. top: -4rpx;
  74. line-height: 36rpx;
  75. }
  76. .comming-spu-content .spu-desc {
  77. color: #ffab20;
  78. font-size: 24rpx;
  79. line-height: 24rpx;
  80. margin-bottom: 14rpx;
  81. }
  82. .comming-spu-content .spu-price {
  83. display: flex;
  84. align-items: flex-end;
  85. font-size: 20rpx;
  86. }
  87. .comming-spu-content .spu-price .sale-price {
  88. color: #ff5344;
  89. margin-right: 8rpx;
  90. }
  91. .comming-spu-content .spu-price .sale-price .span {
  92. font-size: 40rpx;
  93. line-height: 40rpx;
  94. margin-left: 4rpx;
  95. font-weight: 500;
  96. }
  97. .comming-spu-content .spu-price .market-price {
  98. text-decoration: line-through;
  99. color: #999;
  100. }