discountDetail.wxss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. /* pages/discountDetail/discountDetail.wxss */
  2. /* 特惠详情 */
  3. page {
  4. background: #f7f7f7;
  5. height: 100%;
  6. }
  7. .discount-detail {
  8. padding: 20rpx;
  9. position: relative;
  10. }
  11. .discount-detail .banner {
  12. width: 100%;
  13. height: 260rpx;
  14. border-radius: 10rpx;
  15. position: relative;
  16. display: flex;
  17. align-items: center;
  18. }
  19. .discount-detail .banner.no-bg {
  20. background: #999;
  21. }
  22. .discount-detail .banner .bg {
  23. position: absolute;
  24. top: 0;
  25. left: 0;
  26. border-radius: 10rpx;
  27. width: 100%;
  28. height: 100%;
  29. }
  30. .discount-detail .banner .text-box {
  31. padding: 30rpx;
  32. position: relative;
  33. }
  34. .discount-detail .banner .text-box .time {
  35. font-size: 28rpx;
  36. color: #fff;
  37. display: flex;
  38. align-items: center;
  39. margin-bottom: 30rpx;
  40. }
  41. .discount-detail .banner .text-box .text {
  42. margin-right: 20rpx;
  43. }
  44. .discount-detail .banner .text-box .time .number {
  45. font-family: arial;
  46. padding: 2rpx 6rpx;
  47. text-align: center;
  48. background: rgba(0,0,0,.7);
  49. border-radius: 4rpx;
  50. font-size: 26rpx;
  51. }
  52. .discount-detail .banner .text-box .time .colon {
  53. font-family: arial;
  54. margin: 0 10rpx;
  55. }
  56. .discount-detail .banner .info {
  57. font-size: 38rpx;
  58. font-family: arial;
  59. color: #fff;
  60. font-weight: 600;
  61. }
  62. .discount-detail .banner .shop {
  63. margin: 10rpx 0;
  64. font-size: 28rpx;
  65. color: #fff;
  66. }
  67. .discount-detail .discount-prod .item {
  68. margin-top: 20rpx;
  69. background: #fff;
  70. border-radius: 10rpx;
  71. padding: 20rpx;
  72. display: flex;
  73. align-items: center;
  74. }
  75. .discount-detail .discount-prod .item .img {
  76. font-size: 0;
  77. width: 220rpx;
  78. height: 220rpx;
  79. border-radius: 10rpx;
  80. }
  81. .discount-detail .discount-prod .item .img image {
  82. width: 100%;
  83. height: 100%;
  84. border-radius: 10rpx;
  85. }
  86. .discount-detail .discount-prod .item .msg {
  87. flex: 1;
  88. margin-left: 20rpx;
  89. }
  90. .discount-detail .discount-prod .item .msg .name-des {
  91. height: 114rpx;
  92. }
  93. .discount-detail .discount-prod .item .msg .name-des .name {
  94. font-size: 28rpx;
  95. max-height: 72rpx;
  96. line-height: 36rpx;
  97. display: -webkit-box;
  98. -webkit-box-orient: vertical;
  99. -webkit-line-clamp: 2;
  100. overflow: hidden;
  101. text-overflow: ellipsis;
  102. }
  103. .discount-detail .discount-prod .item .msg .name-des .des {
  104. font-size: 24rpx;
  105. color: #999;
  106. margin-top: 6rpx;
  107. height: 32rpx;
  108. line-height: 32rpx;
  109. display: -webkit-box;
  110. -webkit-box-orient: vertical;
  111. -webkit-line-clamp: 1;
  112. overflow: hidden;
  113. text-overflow: ellipsis;
  114. }
  115. .discount-detail .discount-prod .item .msg .price-btn {
  116. height: 82rpx;
  117. margin-top: 20rpx;
  118. padding-bottom: 4rpx;
  119. display: flex;
  120. align-items: flex-end;
  121. justify-content: space-between;
  122. }
  123. .discount-detail .discount-prod .item .msg .price-btn .price-box {
  124. margin-right: 10rpx;
  125. }
  126. .discount-detail .discount-prod .item .msg .price-btn .price-box .price {
  127. color: #e43130;
  128. font-size: 24rpx;
  129. font-weight: 600;
  130. margin-right: 10rpx;
  131. }
  132. .discount-detail .discount-prod .item .msg .price-btn .price-box .price .big {
  133. font-size: 36rpx;
  134. line-height: 36rpx;
  135. }
  136. .discount-detail .discount-prod .item .msg .price-btn .price-box .old-price {
  137. color: #999;
  138. text-decoration: line-through;
  139. font-size: 24rpx;
  140. }
  141. .discount-detail .discount-prod .item .msg .price-btn .btn {
  142. width: 152rpx;
  143. height: 52rpx;
  144. line-height: 52rpx;
  145. text-align: center;
  146. font-size: 24rpx;
  147. background: #e43130;
  148. color: #fff;
  149. border-radius: 56rpx;
  150. }
  151. /* 特惠详情 end */