index.less 7.0 KB

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