detail.scss 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  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: 20rpx;
  93. font-size: 30rpx;
  94. }
  95. .goods-content .goods-content-detail {
  96. padding: 20rpx;
  97. min-height: 400rpx;
  98. }
  99. /* 底部操作栏 */
  100. .footer-fixed {
  101. position: fixed;
  102. bottom: var(--window-bottom);
  103. left: 0;
  104. right: 0;
  105. display: flex;
  106. height: 180rpx;
  107. z-index: 11;
  108. box-shadow: 0 -4rpx 40rpx 0 rgba(144, 52, 52, 0.1);
  109. background: #fff;
  110. }
  111. .footer-container {
  112. width: 100%;
  113. display: flex;
  114. margin-bottom: 40rpx;
  115. }
  116. // 快捷菜单
  117. .foo-item-fast {
  118. box-sizing: border-box;
  119. width: 256rpx;
  120. line-height: 1;
  121. display: flex;
  122. justify-content: center;
  123. align-items: center;
  124. .fast-item {
  125. position: relative;
  126. padding: 4rpx 10rpx;
  127. line-height: 1;
  128. // text-align: center;
  129. .fast-icon {
  130. margin-bottom: 6rpx;
  131. }
  132. &--home {
  133. margin-right: 30rpx;
  134. }
  135. &--cart {
  136. .fast-icon { padding-left: 3px; }
  137. }
  138. // 角标
  139. .fast-badge {
  140. display: inline-block;
  141. box-sizing: border-box;
  142. min-width: 46rpx;
  143. padding: 5rpx;
  144. color: #fff;
  145. font-weight: 500;
  146. font-size: 22rpx;
  147. font-family: -apple-system-font, Helvetica Neue, Arial, sans-serif;
  148. line-height: 36rpx;
  149. text-align: center;
  150. background-color: #fa5151;
  151. border: 1px solid #fff;
  152. border-radius: 999px;
  153. }
  154. .fast-badge--fixed {
  155. position: absolute;
  156. top: 0;
  157. right: 0;
  158. transform-origin: 100%
  159. }
  160. .fast-icon {
  161. font-size: 46rpx;
  162. }
  163. .fast-text {
  164. font-size: 24rpx;
  165. }
  166. }
  167. }
  168. // 操作按钮
  169. .foo-item-btn {
  170. flex: 1;
  171. .btn-wrapper {
  172. height: 100%;
  173. display: flex;
  174. align-items: center;
  175. }
  176. .btn-item {
  177. flex: 1;
  178. font-size: 28rpx;
  179. height: 90rpx;
  180. line-height: 90rpx;
  181. margin-right: 5rpx;
  182. text-align: center;
  183. color: #fff;
  184. border-radius: 8rpx;
  185. }
  186. // 立即购买按钮
  187. .btn-item-main {
  188. background: linear-gradient(to right, #f9211c, #ff6335);
  189. }
  190. // 购物车按钮
  191. .btn-item-deputy {
  192. background: linear-gradient(to right, $fuint-theme, $fuint-theme);
  193. }
  194. }