index.less 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584
  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: 32rpx 32rpx 40rpx;
  297. box-sizing: border-box;
  298. }
  299. .iconClose {
  300. position: absolute;
  301. top: 24rpx;
  302. right: 24rpx;
  303. width: 44rpx;
  304. height: 44rpx;
  305. padding: 20rpx;
  306. box-sizing: content-box;
  307. z-index: 11;
  308. }
  309. }
  310. // 用户类型切换 tabs - 连在一起的整体样式
  311. .user-type-tabs {
  312. display: flex;
  313. align-items: center;
  314. justify-content: center;
  315. margin-bottom: 32rpx;
  316. background: #f0f0f0;
  317. border-radius: 32rpx;
  318. padding: 4rpx;
  319. width: fit-content;
  320. margin-left: auto;
  321. margin-right: auto;
  322. .tab-item {
  323. padding: 16rpx 56rpx;
  324. font-size: 28rpx;
  325. color: #666666;
  326. border-radius: 28rpx;
  327. transition: all 0.3s;
  328. min-width: 120rpx;
  329. text-align: center;
  330. &.active {
  331. background: linear-gradient(90deg, #544f4a 0%, #302f2b 100%);
  332. color: #fbeac9;
  333. font-weight: 500;
  334. }
  335. }
  336. }
  337. // 商品信息卡片
  338. .product-info-card {
  339. display: flex;
  340. background: #faf8f5;
  341. border-radius: 16rpx;
  342. padding: 24rpx;
  343. margin-bottom: 32rpx;
  344. .product-badge {
  345. display: flex;
  346. flex-direction: column;
  347. align-items: center;
  348. justify-content: center;
  349. margin-right: 24rpx;
  350. flex-shrink: 0;
  351. .duration-text {
  352. width: 88rpx;
  353. height: 88rpx;
  354. background: linear-gradient(135deg, #ff9a76 0%, #ff6b6b 100%);
  355. border-radius: 16rpx;
  356. display: flex;
  357. align-items: center;
  358. justify-content: center;
  359. font-size: 26rpx;
  360. color: #ffffff;
  361. font-weight: 600;
  362. }
  363. .user-label {
  364. font-size: 22rpx;
  365. color: #ff6b6b;
  366. background: rgba(255, 107, 107, 0.1);
  367. padding: 4rpx 16rpx;
  368. border-radius: 8rpx;
  369. margin-top: 8rpx;
  370. }
  371. }
  372. .product-detail {
  373. flex: 1;
  374. display: flex;
  375. flex-direction: column;
  376. .product-name {
  377. font-size: 28rpx;
  378. color: #333333;
  379. font-weight: 600;
  380. margin-bottom: 12rpx;
  381. line-height: 40rpx;
  382. }
  383. .price-line {
  384. display: flex;
  385. align-items: baseline;
  386. margin-bottom: 8rpx;
  387. .price-tag {
  388. font-size: 24rpx;
  389. color: #ff6b6b;
  390. margin-right: 8rpx;
  391. background: rgba(255, 107, 107, 0.1);
  392. padding: 2rpx 8rpx;
  393. border-radius: 4rpx;
  394. }
  395. .price-num {
  396. font-size: 36rpx;
  397. color: #333333;
  398. font-weight: 700;
  399. }
  400. }
  401. .origin-line {
  402. display: flex;
  403. align-items: center;
  404. font-size: 22rpx;
  405. color: #999999;
  406. .origin-tag {
  407. margin-right: 4rpx;
  408. }
  409. .origin-num {
  410. text-decoration: line-through;
  411. margin-right: 12rpx;
  412. }
  413. .divider {
  414. margin: 0 12rpx;
  415. color: #cccccc;
  416. }
  417. .sold-count {
  418. color: #999999;
  419. }
  420. }
  421. }
  422. }
  423. // 选择期限
  424. .period-select-section {
  425. margin-bottom: 24rpx;
  426. .section-label {
  427. font-size: 28rpx;
  428. color: #333333;
  429. font-weight: 500;
  430. margin-bottom: 20rpx;
  431. }
  432. .period-options {
  433. display: flex;
  434. gap: 16rpx;
  435. .period-btn {
  436. flex: 1;
  437. height: 72rpx;
  438. display: flex;
  439. align-items: center;
  440. justify-content: center;
  441. background: #f5f5f5;
  442. border-radius: 12rpx;
  443. font-size: 26rpx;
  444. color: #666666;
  445. border: 2rpx solid transparent;
  446. transition: all 0.2s;
  447. &.active {
  448. background: #ffffff;
  449. border: 2rpx solid #333333;
  450. color: #333333;
  451. font-weight: 600;
  452. }
  453. }
  454. }
  455. }
  456. // 额外赠送
  457. .gift-section {
  458. background: #f5f5f5;
  459. border-radius: 12rpx;
  460. padding: 20rpx 24rpx;
  461. margin-bottom: 32rpx;
  462. .gift-desc {
  463. font-size: 26rpx;
  464. color: #666666;
  465. }
  466. }
  467. // 底部结算栏
  468. .settlement-bar {
  469. .select-summary {
  470. display: flex;
  471. align-items: center;
  472. font-size: 24rpx;
  473. color: #666666;
  474. margin-bottom: 20rpx;
  475. padding: 0 8rpx;
  476. .summary-label {
  477. color: #999999;
  478. margin-right: 8rpx;
  479. }
  480. .summary-content {
  481. color: #333333;
  482. }
  483. .summary-save {
  484. color: #ff6b6b;
  485. margin-left: 4rpx;
  486. }
  487. }
  488. .submit-btn {
  489. width: 100%;
  490. height: 88rpx;
  491. line-height: 88rpx;
  492. background: linear-gradient(90deg, #544f4a 0%, #302f2b 100%);
  493. border-radius: 44rpx;
  494. font-size: 32rpx;
  495. color: #fbeac9;
  496. font-weight: 500;
  497. text-align: center;
  498. border: none;
  499. margin: 0;
  500. padding: 0;
  501. }
  502. }