detail.scss 3.8 KB

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