index.less 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. .index {
  2. background-color: #f9f9f9;
  3. min-height: 100vh;
  4. padding-bottom: 140px;
  5. .swiper {
  6. width: 100%;
  7. height: 730px;
  8. background-color: red;
  9. .swiper-img {
  10. width: 100%;
  11. height: 100%;
  12. }
  13. }
  14. // 商品详情
  15. .product-info {
  16. padding: 17px;
  17. border-radius: 20px;
  18. background-color: #fff;
  19. margin: 16px 16px 0 16px;
  20. .product-name {
  21. font-size: 32px;
  22. line-height: 46px;
  23. font-weight: 700;
  24. .self-tag {
  25. display: inline-block;
  26. padding: 2px 8px;
  27. background: #FFD43A;
  28. border-radius: 4px;
  29. color: #803A04;
  30. font-size: 24px;
  31. line-height: 28px;
  32. margin-right: 8px;
  33. vertical-align: middle;
  34. }
  35. }
  36. .price-tag-row {
  37. margin-top: 16px;
  38. display: flex;
  39. justify-content: space-between;
  40. align-items: center;
  41. .price-box {
  42. .current-price {
  43. font-size: 36px;
  44. color: #FF1D17;
  45. margin-right: 7px;
  46. line-height: 35px;
  47. .currency {
  48. font-size: 24px;
  49. }
  50. }
  51. .original-price {
  52. font-size: 26px;
  53. line-height: 38px;
  54. color: #ABABAB;
  55. text-decoration: line-through;
  56. }
  57. }
  58. .tag-box {
  59. .tag {
  60. padding: 2px 17px;
  61. border-radius: 20px;
  62. font-size: 24px;
  63. line-height: 38px;
  64. border: 1px solid #FF1D17;
  65. color: #FF1D17;
  66. }
  67. }
  68. }
  69. .divider {
  70. height: 1px;
  71. background: #D8D8D8;
  72. margin: 12px 0;
  73. }
  74. .product-number-row {
  75. display: flex;
  76. align-items: center;
  77. .number-label {
  78. color: #ABABAB;
  79. font-size: 26px;
  80. margin-right: 10px;
  81. }
  82. .copy-btn {
  83. color: #FF311B;
  84. font-size: 28px;
  85. }
  86. }
  87. }
  88. // 商品标签
  89. .product-tag-row {
  90. margin: 20px 16px 0 16px;
  91. display: flex;
  92. justify-content: space-between;
  93. padding: 22px 17px;
  94. box-sizing: border-box;
  95. background-color: #fff;
  96. border-radius: 20px;
  97. .tag-item {
  98. display: flex;
  99. align-items: center;
  100. .tag-text {
  101. font-size: 24px;
  102. color: #666666;
  103. line-height: 35px;
  104. }
  105. image {
  106. width: 24px;
  107. height: 24px;
  108. margin-right: 4px;
  109. }
  110. }
  111. }
  112. // 猜你喜欢
  113. .guess-you-like {
  114. display: flex;
  115. align-items: center;
  116. justify-content: center;
  117. padding: 20px 0;
  118. margin: 20px 16px 0 16px;
  119. background-color: #fff;
  120. border-radius: 20px;
  121. image {
  122. width: 34px;
  123. height: 34px;
  124. margin-right: 5px;
  125. }
  126. .title {
  127. color: #000000;
  128. line-height: 36px;
  129. font-size: 31px;
  130. font-weight: 500;
  131. }
  132. }
  133. // 底部购买模块
  134. .bottom-buy {
  135. width: 100%;
  136. background-color: #fff;
  137. height: 126px;
  138. padding: 19px 35px 19px 44px;
  139. box-sizing: border-box;
  140. position: fixed;
  141. bottom: 0;
  142. display: flex;
  143. justify-content: space-between;
  144. align-items: center;
  145. .bottom-buy-left {
  146. display: flex;
  147. flex-direction: column;
  148. image {
  149. width: 38px;
  150. height: 36px;
  151. margin-bottom: 7px;
  152. }
  153. .bottom-buy-text {
  154. font-size: 22px;
  155. line-height: 32px;
  156. color: #000000;
  157. }
  158. }
  159. .bottom-buy-right {
  160. width: 576px;
  161. height: 100%;
  162. display: flex;
  163. border-radius: 60px;
  164. overflow: hidden;
  165. .bottom-buy-right-self,.bottom-buy-right-share{
  166. line-height: 43px;
  167. font-size: 30px;
  168. width: 50%;
  169. display: flex;
  170. justify-content: center;
  171. align-items: center;
  172. image{
  173. margin-right: 9px;
  174. }
  175. }
  176. .bottom-buy-right-self{
  177. background-color: #fbe00f;
  178. color: #000000;
  179. image{
  180. width: 47px;
  181. height: 46px;
  182. }
  183. }
  184. .bottom-buy-right-share{
  185. background-color: #ff1c14;
  186. color: #fff;
  187. image{
  188. width: 45px;
  189. height: 31px;
  190. }
  191. }
  192. }
  193. .bottom-buy-right-btn{
  194. width: 586px;
  195. height: 100%;
  196. background: linear-gradient(90deg, #ff881b 0%, #fe6234 100%);
  197. border-radius: 60px;
  198. display: flex;
  199. justify-content: center;
  200. align-items: center;
  201. .bottom-buy-text{
  202. color: #fff;
  203. font-size: 28px;
  204. line-height: 41px;
  205. font-weight: 700;
  206. }
  207. }
  208. }
  209. .back-btn {
  210. position: fixed;
  211. left: 20px;
  212. top: calc(20px + var(--taro-navigationBarHeight));
  213. width: 72px;
  214. height: 72px;
  215. padding-right: 6px;
  216. padding-top: 4px;
  217. box-sizing: border-box;
  218. background: rgba(255, 255, 255, 0.5);
  219. border-radius: 50%;
  220. display: flex;
  221. align-items: center;
  222. justify-content: center;
  223. z-index: 100;
  224. }
  225. }