index.less 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623
  1. /**index.less**/
  2. page {
  3. height: 100vh;
  4. display: flex;
  5. flex-direction: column;
  6. background: #f5f6f7;
  7. }
  8. .scrollarea {
  9. flex: 1;
  10. overflow-y: hidden;
  11. }
  12. .container {
  13. position: relative;
  14. .slider-count {
  15. position: absolute;
  16. top: 678rpx;
  17. right: 0;
  18. background: rgba(0, 0, 0, 0.4);
  19. border-radius: 200rpx 0rpx 0rpx 200rpx;
  20. font-weight: 600;
  21. font-size: 28rpx;
  22. color: #ffffff;
  23. line-height: 40rpx;
  24. text-align: center;
  25. padding: 2rpx 20rpx 2rpx 28rpx;
  26. z-index: 1;
  27. }
  28. .bannerSwiper {
  29. height: 750rpx;
  30. .swiper-item {
  31. width: 100%;
  32. height: 100%;
  33. image {
  34. width: 100%;
  35. height: 100%;
  36. }
  37. }
  38. .swiper-video {
  39. display: flex;
  40. align-items: center;
  41. video {
  42. width: 100%;
  43. }
  44. wx-video .wx-video-top-bar>.wx-video-top-right-buttons {
  45. display: none;
  46. }
  47. .bg {
  48. filter: blur(32rpx);
  49. }
  50. image {
  51. position: absolute;
  52. top: 0;
  53. bottom: 0;
  54. }
  55. .icon-video {
  56. width: 92rpx;
  57. height: 92rpx;
  58. top: 50%;
  59. left: 50%;
  60. transform: translate(-50%, -50%);
  61. }
  62. }
  63. }
  64. }
  65. .goodsSection {
  66. background: #ffffff;
  67. .title {
  68. font-size: 28rpx;
  69. color: #333333;
  70. line-height: 40rpx;
  71. padding: 28rpx 24rpx;
  72. display: flex;
  73. align-items: center;
  74. justify-content: center;
  75. .before,
  76. .after {
  77. content: "";
  78. width: 68rpx;
  79. height: 2rpx;
  80. border-radius: 2rpx;
  81. opacity: 0.3;
  82. display: inline-block;
  83. }
  84. .before {
  85. background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000000 100%);
  86. margin-right: 24rpx;
  87. }
  88. .after {
  89. background: linear-gradient(270deg, rgba(0, 0, 0, 0) 0%, #000000 100%);
  90. margin-left: 24rpx;
  91. }
  92. }
  93. }
  94. .goodsIntro {
  95. background: #ffffff;
  96. overflow: hidden;
  97. .images {
  98. image {
  99. display: block;
  100. width: 100%;
  101. }
  102. }
  103. }
  104. .titleVideoSection {
  105. position: relative;
  106. margin: 24rpx 0;
  107. .icon-video {
  108. position: absolute;
  109. width: 92rpx !important;
  110. height: 92rpx !important;
  111. top: 50%;
  112. left: 50%;
  113. transform: translate(-50%, -50%);
  114. }
  115. wx-video .wx-video-top-bar>.wx-video-top-right-buttons {
  116. display: none;
  117. }
  118. .video-section {
  119. position: relative;
  120. width: 100%;
  121. image {
  122. box-shadow: 4rpx 8rpx 24rpx 1rpx rgba(96, 168, 223, 0.45);
  123. border-radius: 24rpx;
  124. }
  125. }
  126. }
  127. .title-section {
  128. background: #fff;
  129. overflow: hidden;
  130. .title {
  131. margin: 66rpx auto 20rpx;
  132. width: 162rpx !important;
  133. height: 88rpx;
  134. padding: 0;
  135. }
  136. .topSection {
  137. padding: 0 48rpx;
  138. .content1 {
  139. font-size: 28rpx;
  140. color: #131415;
  141. line-height: 48rpx;
  142. text-align: justify;
  143. }
  144. .content2 {
  145. font-size: 24rpx;
  146. color: #131415;
  147. line-height: 48rpx;
  148. text-align: center;
  149. }
  150. }
  151. .titleSwiper {
  152. position: relative;
  153. padding: 24rpx 0 40rpx;
  154. swiper {
  155. height: 472rpx;
  156. }
  157. .swiper-item-detail {
  158. height: 368rpx;
  159. padding: 0 48rpx;
  160. image {
  161. width: 100%;
  162. height: 100%;
  163. box-shadow: 4rpx 8rpx 24rpx 1rpx rgba(96, 168, 223, 0.45);
  164. border-radius: 24rpx;
  165. }
  166. .text {
  167. padding: 20rpx 0;
  168. font-size: 24rpx;
  169. color: #131415;
  170. line-height: 48rpx;
  171. text-align: center;
  172. }
  173. }
  174. .title-dot {
  175. display: flex;
  176. align-items: center;
  177. justify-content: center;
  178. .title-dot--item {
  179. width: 16rpx;
  180. height: 16rpx;
  181. border-radius: 50%;
  182. margin: 0 11rpx;
  183. background: #d1d1d1;
  184. }
  185. .title-dot--item-active {
  186. background: #78cafe;
  187. }
  188. }
  189. }
  190. }
  191. .bottom-section {
  192. position: fixed;
  193. bottom: 0;
  194. left: 0;
  195. z-index: 2;
  196. width: 100%;
  197. background-color: #ffffff;
  198. padding: 20rpx 32rpx 58rpx 32rpx;
  199. display: flex;
  200. align-items: center;
  201. box-sizing: border-box;
  202. .orders {
  203. display: flex;
  204. flex-direction: column;
  205. padding-right: 40rpx;
  206. image {
  207. width: 48rpx;
  208. height: 48rpx;
  209. }
  210. text {
  211. font-size: 24rpx;
  212. color: #777777;
  213. line-height: 34rpx;
  214. text-align: center;
  215. }
  216. }
  217. .btnSection {
  218. flex: 1 auto;
  219. position: relative;
  220. button {
  221. width: 100%;
  222. line-height: 88rpx;
  223. background: linear-gradient(90deg, #544f4a 0%, #302f2b 100%);
  224. border-radius: 44rpx;
  225. font-weight: 500;
  226. font-size: 32rpx;
  227. color: #fbeac9;
  228. padding-top: 0;
  229. padding-bottom: 0;
  230. &[disabled][type="primary"] {
  231. opacity: 0.7;
  232. }
  233. }
  234. }
  235. }
  236. .scroll-header {
  237. position: fixed;
  238. top: 0;
  239. left: 0;
  240. width: 100%;
  241. z-index: 9;
  242. background-color: #fff;
  243. .product-catagory {
  244. border-top: 1px solid #f2f2f2;
  245. display: flex;
  246. align-items: center;
  247. justify-content: center;
  248. padding: 20rpx 0 28rpx;
  249. .item {
  250. position: relative;
  251. padding: 0 40rpx;
  252. font-size: 28rpx;
  253. color: #999999;
  254. line-height: 40rpx;
  255. }
  256. .selected {
  257. color: #131415;
  258. font-weight: 600;
  259. &::after {
  260. position: absolute;
  261. left: 50%;
  262. bottom: -8rpx;
  263. transform: translateX(-50%);
  264. content: "";
  265. display: block;
  266. width: 34rpx;
  267. height: 4rpx;
  268. background: #534e49;
  269. }
  270. }
  271. }
  272. }
  273. // ==================== 购买弹窗样式 ====================
  274. .popup-section {
  275. &.hidden {
  276. display: none;
  277. }
  278. .popup-mask {
  279. position: fixed;
  280. top: 0;
  281. left: 0;
  282. right: 0;
  283. bottom: 0;
  284. background-color: rgba(0, 0, 0, 0.6);
  285. z-index: 9;
  286. }
  287. .popup-container {
  288. position: fixed;
  289. bottom: 0;
  290. left: 0;
  291. right: 0;
  292. z-index: 10;
  293. width: 100%;
  294. background: #ffffff;
  295. border-radius: 32rpx 32rpx 0 0;
  296. padding: 24rpx 32rpx 0;
  297. box-sizing: border-box;
  298. overflow: hidden;
  299. }
  300. .iconClose {
  301. position: absolute;
  302. top: 48rpx;
  303. right: 32rpx;
  304. width: 30rpx;
  305. height: 30rpx;
  306. padding: 24rpx;
  307. box-sizing: content-box;
  308. z-index: 11;
  309. }
  310. }
  311. // 用户类型切换 tabs - 连在一起的整体样式
  312. .user-type-tabs {
  313. display: flex;
  314. align-items: center;
  315. width: 442rpx;
  316. height: 76rpx;
  317. margin: 0 auto 40rpx;
  318. padding: 6rpx;
  319. box-sizing: border-box;
  320. background: rgba(21, 23, 28, 0.05);
  321. border-radius: 146rpx;
  322. .tab-item {
  323. width: 212rpx;
  324. height: 64rpx;
  325. line-height: 64rpx;
  326. font-size: 28rpx;
  327. color: #15171c;
  328. border-radius: 104rpx;
  329. transition: all 0.3s;
  330. text-align: center;
  331. &.active {
  332. background: linear-gradient(90deg, #544f4a 0%, #302f2b 100%);
  333. color: #fbeac9;
  334. font-weight: 500;
  335. }
  336. }
  337. }
  338. // 商品信息卡片
  339. .product-info-card {
  340. display: flex;
  341. align-items: center;
  342. min-height: 180rpx;
  343. margin-bottom: 48rpx;
  344. background: #ffffff;
  345. .product-image {
  346. width: 180rpx;
  347. height: 180rpx;
  348. margin-right: 24rpx;
  349. flex-shrink: 0;
  350. border-radius: 24rpx;
  351. overflow: hidden;
  352. background: #f6f6f6;
  353. }
  354. .product-detail {
  355. flex: 1;
  356. min-width: 0;
  357. display: flex;
  358. flex-direction: column;
  359. justify-content: center;
  360. .product-name {
  361. font-size: 32rpx;
  362. color: #15171c;
  363. font-weight: 500;
  364. margin-bottom: 12rpx;
  365. line-height: 44rpx;
  366. overflow: hidden;
  367. text-overflow: ellipsis;
  368. white-space: nowrap;
  369. }
  370. .price-line {
  371. display: flex;
  372. align-items: baseline;
  373. height: 58rpx;
  374. margin-bottom: 12rpx;
  375. .price-tag {
  376. width: 100rpx;
  377. height: 46rpx;
  378. line-height: 46rpx;
  379. font-size: 24rpx;
  380. color: #7d3f00;
  381. margin-right: 12rpx;
  382. background: linear-gradient(90deg, #feeac3 0%, #ffdeb0 100%);
  383. border-radius: 8rpx;
  384. text-align: center;
  385. font-weight: 500;
  386. }
  387. .price-num {
  388. font-size: 48rpx;
  389. line-height: 58rpx;
  390. color: #15171c;
  391. font-weight: 700;
  392. }
  393. }
  394. .origin-line {
  395. display: flex;
  396. align-items: center;
  397. min-width: 0;
  398. font-size: 24rpx;
  399. color: #8a8d93;
  400. line-height: 34rpx;
  401. .origin-tag {
  402. margin-right: 8rpx;
  403. }
  404. .origin-num {
  405. text-decoration: line-through;
  406. margin-right: 8rpx;
  407. }
  408. .divider {
  409. display: none;
  410. }
  411. .sold-count {
  412. color: #8a8d93;
  413. white-space: nowrap;
  414. }
  415. }
  416. }
  417. }
  418. // 选择期限
  419. .period-select-section {
  420. margin-bottom: 48rpx;
  421. .section-label {
  422. font-size: 28rpx;
  423. color: #15171c;
  424. font-weight: 500;
  425. line-height: 40rpx;
  426. margin-bottom: 16rpx;
  427. }
  428. .period-options-scroll {
  429. width: 100%;
  430. white-space: nowrap;
  431. }
  432. .period-options {
  433. display: inline-flex;
  434. align-items: center;
  435. padding-left: 4rpx;
  436. padding-right: 32rpx;
  437. box-sizing: border-box;
  438. .period-btn {
  439. flex: none;
  440. min-width: 96rpx;
  441. height: 68rpx;
  442. padding: 0 24rpx;
  443. margin-right: 16rpx;
  444. box-sizing: border-box;
  445. display: flex;
  446. align-items: center;
  447. justify-content: center;
  448. background: #f6f6f6;
  449. border-radius: 16rpx;
  450. font-size: 28rpx;
  451. color: #15171c;
  452. border: none;
  453. transition: all 0.2s;
  454. &:last-child {
  455. margin-right: 0;
  456. }
  457. &.active {
  458. background: #fff1d6;
  459. color: #15171c;
  460. font-weight: 600;
  461. }
  462. }
  463. }
  464. }
  465. // 额外赠送
  466. .gift-label {
  467. margin-bottom: 16rpx;
  468. font-weight: 500;
  469. font-size: 28rpx;
  470. color: #15171c;
  471. line-height: 40rpx;
  472. }
  473. .gift-section {
  474. display: inline-flex;
  475. align-items: center;
  476. min-width: 310rpx;
  477. height: 68rpx;
  478. padding: 0 28rpx;
  479. margin-bottom: 48rpx;
  480. box-sizing: border-box;
  481. background: #fff1d6;
  482. border-radius: 16rpx;
  483. .gift-desc {
  484. font-size: 28rpx;
  485. color: #15171c;
  486. font-weight: 500;
  487. line-height: 40rpx;
  488. }
  489. }
  490. // 底部结算栏
  491. .settlement-bar {
  492. width: 750rpx;
  493. margin-left: -32rpx;
  494. padding: 24rpx 32rpx 58rpx;
  495. box-sizing: border-box;
  496. background: #ffffff;
  497. .select-summary {
  498. display: flex;
  499. align-items: center;
  500. min-width: 0;
  501. font-size: 26rpx;
  502. color: #15171c;
  503. line-height: 36rpx;
  504. font-weight: 500;
  505. margin-bottom: 24rpx;
  506. padding: 0;
  507. .summary-label {
  508. color: #15171c;
  509. flex-shrink: 0;
  510. margin-right: 0;
  511. }
  512. .summary-content {
  513. color: #15171c;
  514. min-width: 0;
  515. overflow: hidden;
  516. text-overflow: ellipsis;
  517. white-space: nowrap;
  518. }
  519. .summary-save {
  520. color: #fd7247;
  521. flex-shrink: 0;
  522. margin-left: 6rpx;
  523. }
  524. }
  525. .submit-btn {
  526. width: 100%;
  527. height: 88rpx;
  528. line-height: 88rpx;
  529. background: linear-gradient(90deg, #544f4a 0%, #302f2b 100%);
  530. border-radius: 44rpx;
  531. font-size: 32rpx;
  532. color: #fbeac9;
  533. font-weight: 500;
  534. text-align: center;
  535. border: none;
  536. margin: 0;
  537. padding: 0;
  538. }
  539. }