index.less 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  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. .share-active{
  149. justify-content: center !important;
  150. align-items: center !important;
  151. }
  152. // 底部购买模块
  153. .bottom-buy {
  154. width: 100%;
  155. background-color: #fff;
  156. height: 126px;
  157. padding: 19px 35px 19px 44px;
  158. box-sizing: border-box;
  159. position: fixed;
  160. bottom: 0;
  161. display: flex;
  162. justify-content: space-between;
  163. align-items: center;
  164. .bottom-buy-left {
  165. display: flex;
  166. flex-direction: column;
  167. image {
  168. width: 38px;
  169. height: 36px;
  170. margin-bottom: 7px;
  171. }
  172. .bottom-buy-text {
  173. font-size: 22px;
  174. line-height: 32px;
  175. color: #000000;
  176. }
  177. }
  178. .bottom-buy-right {
  179. width: 576px;
  180. height: 100%;
  181. display: flex;
  182. border-radius: 60px;
  183. overflow: hidden;
  184. .bottom-buy-right-self,
  185. .bottom-buy-right-share {
  186. line-height: 43px;
  187. font-size: 30px;
  188. width: 50%;
  189. display: flex;
  190. justify-content: center;
  191. align-items: center;
  192. image {
  193. margin-right: 9px;
  194. }
  195. }
  196. .bottom-buy-right-self {
  197. background-color: #fbe00f;
  198. color: #000000;
  199. display: flex;
  200. justify-content: center;
  201. align-items: center;
  202. image {
  203. width: 47px;
  204. height: 46px;
  205. }
  206. }
  207. .bottom-buy-right-share {
  208. background-color: #ff1c14;
  209. color: #fff;
  210. image {
  211. width: 45px;
  212. height: 31px;
  213. }
  214. }
  215. }
  216. .bottom-buy-right-btn {
  217. width: 586px;
  218. height: 100%;
  219. background: linear-gradient(90deg, #ff881b 0%, #fe6234 100%);
  220. border-radius: 60px;
  221. display: flex;
  222. justify-content: center;
  223. align-items: center;
  224. .bottom-buy-text {
  225. color: #fff;
  226. font-size: 28px;
  227. line-height: 41px;
  228. font-weight: 700;
  229. }
  230. }
  231. }
  232. .back-btn {
  233. position: fixed;
  234. left: 20px;
  235. top: calc(20px + var(--taro-navigationBarHeight));
  236. width: 72px;
  237. height: 72px;
  238. padding-right: 6px;
  239. padding-top: 4px;
  240. box-sizing: border-box;
  241. background: rgba(255, 255, 255, 0.5);
  242. border-radius: 50%;
  243. display: flex;
  244. align-items: center;
  245. justify-content: center;
  246. z-index: 100;
  247. }
  248. }
  249. // 清除Button默认样式
  250. // Button {
  251. // padding: 0;
  252. // margin: 0;
  253. // background: none;
  254. // border: none;
  255. // line-height: normal;
  256. // height: 100%;
  257. // width: 100%;
  258. // display: flex;
  259. // justify-content: center;
  260. // align-items: center;
  261. // &::after {
  262. // border: none;
  263. // }
  264. // }
  265. .button-hover {
  266. background-color: transparent !important;
  267. /* 移除背景高亮 */
  268. box-shadow: none !important;
  269. /* 移除可能的阴影 */
  270. }