detail.scss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. .container {
  2. padding-bottom: 112rpx;
  3. }
  4. /* 商品信息 */
  5. .goods-info {
  6. background: #fff;
  7. padding: 25rpx 30rpx;
  8. }
  9. .info-item__top {
  10. min-height: 40rpx;
  11. margin-bottom: 20rpx;
  12. }
  13. .info-item__top .active-tag {
  14. width: 108rpx;
  15. color: #fff;
  16. background: #fe293f;
  17. padding: 3rpx 5rpx;
  18. border-radius: 15rpx;
  19. font-size: 24rpx;
  20. text-align: center;
  21. margin-right: 15rpx;
  22. }
  23. .floor-price__samll {
  24. font-size: 26rpx;
  25. line-height: 1;
  26. color: #FA2209;
  27. }
  28. /* 商品价 */
  29. .floor-price {
  30. color: #FA2209;
  31. margin-right: 15rpx;
  32. font-size: 38rpx;
  33. line-height: 1;
  34. margin-bottom: -2rpx;
  35. }
  36. .original-price {
  37. font-size: 24rpx;
  38. line-height: 1;
  39. text-decoration: line-through;
  40. color: #959595;
  41. }
  42. .goods-sales {
  43. font-size: 24rpx;
  44. color: #959595;
  45. }
  46. .info-item__name .goods-name {
  47. font-size: 28rpx;
  48. }
  49. /* 商品分享 */
  50. .goods-share__line {
  51. border-left: 1rpx solid #f4f4f4;
  52. height: 60rpx;
  53. margin: 0 30rpx;
  54. }
  55. .goods-share .share-btn {
  56. line-height: normal;
  57. padding: 0;
  58. background: none;
  59. border-radius: 0;
  60. box-shadow: none;
  61. font-size: 8pt;
  62. border: none;
  63. color: #191919;
  64. }
  65. .goods-share .share-btn::after {
  66. border: none;
  67. }
  68. .goods-share .share__icon {
  69. font-size: 40rpx;
  70. margin-bottom: 5rpx;
  71. }
  72. /* 商品卖点 */
  73. .info-item_selling-point {
  74. margin-top: 8rpx;
  75. font-size: 24rpx;
  76. color: #808080;
  77. }
  78. // 选择商品规格
  79. .goods-choice {
  80. padding: 26rpx 30rpx;
  81. font-size: 28rpx;
  82. .spec-list {
  83. display: flex;
  84. align-items: center;
  85. .spec-name {
  86. margin-right: 10rpx;
  87. }
  88. }
  89. }
  90. /* 商品详情 */
  91. .goods-content .item-title {
  92. padding: 26rpx 30rpx;
  93. font-size: 28rpx;
  94. }
  95. /* 底部操作栏 */
  96. .footer-fixed {
  97. position: fixed;
  98. bottom: var(--window-bottom);
  99. left: 0;
  100. right: 0;
  101. display: flex;
  102. height: 96rpx;
  103. z-index: 11;
  104. box-shadow: 0 -4rpx 40rpx 0 rgba(144, 52, 52, 0.1);
  105. background: #fff;
  106. }
  107. .footer-container {
  108. width: 100%;
  109. display: flex;
  110. }
  111. // 快捷菜单
  112. .foo-item-fast {
  113. box-sizing: border-box;
  114. width: 256rpx;
  115. line-height: 1;
  116. display: flex;
  117. justify-content: center;
  118. align-items: center;
  119. .fast-item {
  120. position: relative;
  121. padding: 4rpx 10rpx;
  122. line-height: 1;
  123. // text-align: center;
  124. .fast-icon {
  125. margin-bottom: 6rpx;
  126. }
  127. &--home {
  128. margin-right: 30rpx;
  129. }
  130. &--cart {
  131. .fast-icon { padding-left: 3px; }
  132. }
  133. // 角标
  134. .fast-badge {
  135. display: inline-block;
  136. box-sizing: border-box;
  137. min-width: 16px;
  138. padding: 0 3px;
  139. color: #fff;
  140. font-weight: 500;
  141. font-size: 12px;
  142. font-family: -apple-system-font, Helvetica Neue, Arial, sans-serif;
  143. line-height: 1.2;
  144. text-align: center;
  145. background-color: #ee0a24;
  146. border: 1px solid #fff;
  147. border-radius: 999px;
  148. }
  149. .fast-badge--fixed {
  150. position: absolute;
  151. top: 0;
  152. right: 0;
  153. transform-origin: 100%
  154. }
  155. .fast-icon {
  156. font-size: 46rpx;
  157. }
  158. .fast-text {
  159. font-size: 24rpx;
  160. }
  161. }
  162. }
  163. // 操作按钮
  164. .foo-item-btn {
  165. flex: 1;
  166. .btn-wrapper {
  167. height: 100%;
  168. display: flex;
  169. align-items: center;
  170. }
  171. .btn-item {
  172. flex: 1;
  173. font-size: 28rpx;
  174. height: 72rpx;
  175. line-height: 72rpx;
  176. margin-right: 16rpx;
  177. text-align: center;
  178. color: #fff;
  179. border-radius: 50rpx;
  180. }
  181. // 立即购买按钮
  182. .btn-item-main {
  183. background: linear-gradient(to right, #f9211c, #ff6335);
  184. }
  185. // 购物车按钮
  186. .btn-item-deputy {
  187. background: linear-gradient(to right, #ffa600, #ffbb00);
  188. }
  189. }