index.less 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664
  1. /**index.less**/
  2. .firstConainer {
  3. height: 100vh;
  4. }
  5. .firstPageContainer {
  6. position: relative;
  7. background: url('https://oss.dayaedu.com/ktyq/1733123043908.png') no-repeat center;
  8. background-size: cover;
  9. .weui-navigation-bar {
  10. color: #FFF;
  11. }
  12. .fistSwiperSection {
  13. height: 1142rpx;
  14. padding-top: 48rpx;
  15. swiper-item {
  16. display: flex;
  17. align-items: center;
  18. justify-content: center;
  19. }
  20. }
  21. .swiper-item {
  22. transition: all 0.15s ease;
  23. /* 调整过渡动画的时长和缓动函数,影响淡入淡出和缩放的速度 */
  24. transform-origin: center center;
  25. /* 明确缩放的中心点位置 */
  26. max-width: 90%;
  27. /* 适当增大最大宽度,让缩放效果更明显 */
  28. max-height: 90%;
  29. /* 适当增大最大高度,让缩放效果更明显 */
  30. width: 592rpx;
  31. height: 1142rpx;
  32. &.current {
  33. transition: all 0.2s ease;
  34. max-width: 100%;
  35. max-height: 100%;
  36. }
  37. image {
  38. display: block;
  39. margin: 0 auto;
  40. height: 100%;
  41. width: 100%;
  42. background: #FFFFFF;
  43. border-radius: 32rpx;
  44. }
  45. }
  46. .pageDot {
  47. display: flex;
  48. align-items: center;
  49. justify-content: center;
  50. padding-top: 32rpx;
  51. display: none;
  52. .dot-item {
  53. width: 12rpx;
  54. height: 12rpx;
  55. background: #FFFFFF;
  56. border-radius: 6rpx;
  57. opacity: 0.5;
  58. margin: 0 8rpx;
  59. transition: all 0.15s ease;
  60. &.current {
  61. width: 36rpx;
  62. height: 12rpx;
  63. background: #FFFFFF;
  64. border-radius: 6rpx;
  65. opacity: 1;
  66. }
  67. }
  68. }
  69. .upArrow {
  70. position: absolute;
  71. bottom: 40rpx;
  72. left: 50%;
  73. width: 75.2rpx;
  74. height: 86.4rpx;
  75. z-index: 1;
  76. transform: translateX(-50%);
  77. animation: breathe 2s infinite cubic-bezier(0, 0.21, 0, 0.88);
  78. }
  79. @keyframes breathe {
  80. 0% {
  81. opacity: 1;
  82. transform: translateX(-50%) translateY(0rpx);
  83. }
  84. 75% {
  85. opacity: 1;
  86. }
  87. 100% {
  88. opacity: 0;
  89. transform: translateX(-50%) translateY(-40rpx);
  90. }
  91. }
  92. }
  93. .pageContainer {
  94. height: 100vh;
  95. width: 100%;
  96. }
  97. page {
  98. height: 100vh;
  99. display: flex;
  100. flex-direction: column;
  101. background: #F5F6F7;
  102. }
  103. .scrollarea {
  104. flex: 1;
  105. overflow-y: hidden;
  106. height: 100%;
  107. }
  108. .container {
  109. position: relative;
  110. .topShadow {
  111. position: absolute;
  112. top: 0;
  113. z-index: 1;
  114. width: 100%;
  115. height: 200rpx;
  116. background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
  117. }
  118. .slider-count {
  119. position: absolute;
  120. top: 674rpx;
  121. right: 32rpx;
  122. background: rgba(0, 0, 0, 0.4);
  123. border-radius: 26rpx;
  124. border: 2rpx solid rgba(255, 255, 255, 0.3);
  125. font-weight: 600;
  126. font-size: 28rpx;
  127. color: #FFFFFF;
  128. line-height: 40rpx;
  129. text-align: center;
  130. padding: 2rpx 26rpx;
  131. z-index: 1;
  132. }
  133. swiper {
  134. height: 750rpx;
  135. }
  136. .swiper-item {
  137. width: 100%;
  138. height: 100%;
  139. image {
  140. width: 100%;
  141. height: 100%;
  142. }
  143. }
  144. .demo-text-1 {
  145. background-color: red;
  146. }
  147. .demo-text-2 {
  148. background-color: black;
  149. }
  150. .demo-text-3 {
  151. background-color: gray;
  152. }
  153. }
  154. .shop-section {
  155. background: #FFFFFF;
  156. border-radius: 20rpx;
  157. margin: 16rpx 16rpx 0;
  158. padding: 24rpx 24rpx 40rpx;
  159. .showPrice {
  160. display: flex;
  161. justify-content: space-between;
  162. align-items: center;
  163. }
  164. .left {
  165. flex: 1 auto;
  166. display: flex;
  167. align-items: flex-end;
  168. }
  169. .currentPrice {
  170. font-weight: bold;
  171. color: #FE2451;
  172. font-family: DINAlternate, DINAlternate;
  173. .stuff {
  174. padding-right: 2rpx;
  175. font-size: 36rpx;
  176. }
  177. .priceZ {
  178. font-size: 60rpx;
  179. }
  180. .priceF {
  181. font-size: 36rpx;
  182. }
  183. .after {
  184. padding-left: 4rpx;
  185. font-size: 28rpx;
  186. line-height: 48rpx;
  187. }
  188. }
  189. .originPrice {
  190. padding-left: 16rpx;
  191. font-size: 32rpx;
  192. color: #AAAAAA;
  193. line-height: 44rpx;
  194. text-decoration: line-through;
  195. padding-bottom: 12rpx;
  196. }
  197. .right {
  198. padding-top: 14rpx;
  199. font-weight: 400;
  200. font-size: 28rpx;
  201. color: #777777;
  202. line-height: 40rpx;
  203. }
  204. }
  205. .shopName {
  206. font-weight: 600;
  207. font-size: 32rpx;
  208. color: #131415;
  209. line-height: 44rpx;
  210. padding: 24rpx 0 14rpx;
  211. }
  212. .shopInfo {
  213. font-size: 24rpx;
  214. color: #999999;
  215. line-height: 38rpx;
  216. padding-bottom: 40rpx;
  217. }
  218. .shop-btn {
  219. button {
  220. line-height: 88rpx;
  221. background: linear-gradient(270deg, #FF204B 0%, #FE5B71 100%);
  222. border-radius: 44rpx;
  223. text-align: center;
  224. font-weight: 500;
  225. font-size: 32rpx;
  226. color: #FFFFFF;
  227. padding: 0 !important;
  228. margin: 0 !important;
  229. width: 100%;
  230. }
  231. }
  232. .goodsInfo {
  233. display: flex;
  234. .goodsList {
  235. display: flex;
  236. align-items: center;
  237. flex-wrap: wrap;
  238. }
  239. .goodsItem {
  240. line-height: 68rpx;
  241. background: #F4F4F5;
  242. border-radius: 12rpx;
  243. padding: 0 32rpx;
  244. margin-right: 24rpx;
  245. font-size: 28rpx;
  246. color: #131415;
  247. position: relative;
  248. margin-top: 24rpx;
  249. &.selected {
  250. background: #FEEDF0;
  251. font-weight: 600;
  252. color: #FE2451;
  253. }
  254. &.nosale {
  255. background: #F4F4F5;
  256. color: #B1B1B1;
  257. }
  258. image {
  259. position: absolute;
  260. top: -14rpx;
  261. right: -14rpx;
  262. width: 56rpx;
  263. height: 28rpx;
  264. display: block;
  265. z-index: 1;
  266. }
  267. }
  268. }
  269. .goodsSection {
  270. // margin-bottom: 156rpx;
  271. padding-bottom: 154rpx;
  272. }
  273. .goodsIntro {
  274. background: #FFFFFF;
  275. border-radius: 20rpx;
  276. overflow: hidden;
  277. margin: 16rpx 16rpx 8rpx;
  278. .title {
  279. font-weight: 600;
  280. font-size: 32rpx;
  281. color: #131415;
  282. line-height: 44rpx;
  283. padding: 28rpx 24rpx;
  284. }
  285. .images {
  286. image {
  287. display: block;
  288. width: 100%;
  289. }
  290. .img1 {
  291. height: 1128rpx;
  292. }
  293. .img2 {
  294. height: 1810rpx
  295. }
  296. .img3 {
  297. height: 1336rpx;
  298. }
  299. .img4 {
  300. height: 1750rpx;
  301. }
  302. }
  303. }
  304. .bottom-section {
  305. position: fixed;
  306. bottom: 0;
  307. left: 0;
  308. width: 100%;
  309. background-color: #FFFFFF;
  310. box-shadow: inset 0rpx 2rpx 0rpx 0rpx #F0F0F0;
  311. padding: 20rpx 32rpx 58rpx 32rpx;
  312. display: flex;
  313. align-items: center;
  314. box-sizing: border-box;
  315. justify-content: space-around;
  316. .orders {
  317. display: flex;
  318. align-items: center;
  319. margin-right: 40rpx;
  320. padding: 8rpx 0 16rpx;
  321. &.active {
  322. text {
  323. color: #131415;
  324. }
  325. }
  326. image {
  327. width: 44rpx;
  328. height: 44rpx;
  329. }
  330. text {
  331. padding-left: 16rpx;
  332. font-weight: 500;
  333. font-size: 28rpx;
  334. color: #AAAAAA;
  335. line-height: 44rpx;
  336. text-align: center;
  337. }
  338. }
  339. .btnSection {
  340. flex: 1 auto;
  341. button {
  342. width: 100%;
  343. line-height: 88rpx;
  344. background: linear-gradient(270deg, #FF204B 0%, #FE5B71 100%);
  345. border-radius: 44rpx;
  346. font-weight: 500;
  347. font-size: 32rpx;
  348. color: #FFFFFF;
  349. padding-top: 0;
  350. padding-bottom: 0;
  351. &[disabled][type=primary] {
  352. opacity: 0.7;
  353. }
  354. }
  355. }
  356. }
  357. // 'demo-text-1', 'demo-text-2', 'demo-text-3'
  358. .popup-section {
  359. max-height: 86vh;
  360. overflow-x: hidden;
  361. overflow-y: auto;
  362. &.hidden {
  363. display: none;
  364. }
  365. .popup-mask {
  366. position: fixed;
  367. top: 0;
  368. left: 0;
  369. right: 0;
  370. bottom: 0;
  371. background-color: rgba(0, 0, 0, 0.6);
  372. z-index: 9;
  373. }
  374. .popup-container {
  375. position: fixed;
  376. bottom: 0;
  377. left: 0;
  378. right: 0;
  379. z-index: 10;
  380. width: 100%;
  381. background: #FFFFFF;
  382. border-radius: 32rpx 32rpx 0rpx 0rpx;
  383. // padding: 40rpx 0 0;
  384. box-sizing: border-box;
  385. .popup-scroll {
  386. max-height: 66vh;
  387. overflow-x: hidden;
  388. overflow-y: scroll;
  389. border-radius: 32rpx 32rpx 0rpx 0rpx;
  390. }
  391. .top-vip-img {
  392. width: 100%;
  393. }
  394. .goodsInfo {
  395. padding: 0 40rpx 48rpx;
  396. }
  397. }
  398. .addBuyer {
  399. margin: 40rpx 40rpx;
  400. background: #F6F6F6;
  401. border-radius: 20rpx;
  402. display: flex;
  403. align-items: center;
  404. justify-content: space-between;
  405. padding: 28rpx 24rpx;
  406. .icon-man {
  407. width: 28rpx;
  408. height: 36rpx;
  409. margin-right: 16rpx;
  410. }
  411. .addBuyer-left {
  412. display: flex;
  413. }
  414. .users {
  415. font-weight: 600;
  416. font-size: 28rpx;
  417. color: #131415;
  418. line-height: 40rpx;
  419. text {
  420. padding-right: 24rpx;
  421. }
  422. }
  423. .address {
  424. padding-top: 12rpx;
  425. font-size: 24rpx;
  426. color: rgba(19, 20, 21, 0.4);
  427. line-height: 34rpx;
  428. }
  429. .arrow-right {
  430. width: 32rpx;
  431. height: 32rpx;
  432. }
  433. }
  434. .iconClose {
  435. position: absolute;
  436. right: 0;
  437. top: 0;
  438. padding: 24rpx;
  439. width: 44rpx;
  440. height: 44rpx;
  441. }
  442. .product-section {
  443. display: flex;
  444. padding-bottom: 60rpx;
  445. .product-img {
  446. width: 160rpx;
  447. height: 160rpx;
  448. flex-shrink: 0;
  449. margin-right: 32rpx;
  450. border-radius: 6px;
  451. overflow: hidden;
  452. image {
  453. width: 100%;
  454. height: 100%;
  455. }
  456. }
  457. .product-left {
  458. display: flex;
  459. align-items: flex-start;
  460. .currentPrice {
  461. font-weight: bold;
  462. color: #FE2451;
  463. font-family: DINAlternate, DINAlternate;
  464. .stuff {
  465. padding-right: 2rpx;
  466. font-size: 36rpx;
  467. }
  468. .priceZ {
  469. font-size: 60rpx;
  470. }
  471. .priceF {
  472. font-size: 36rpx;
  473. }
  474. }
  475. .originPrice {
  476. padding-left: 16rpx;
  477. font-size: 32rpx;
  478. color: #AAAAAA;
  479. line-height: 44rpx;
  480. text-decoration: line-through;
  481. padding-top: 32rpx;
  482. }
  483. }
  484. }
  485. .goodsInfo {
  486. flex-direction: column;
  487. align-items: flex-start;
  488. padding-bottom: 90rpx;
  489. .desc {
  490. font-size: 28rpx;
  491. color: #131415;
  492. line-height: 40rpx;
  493. text {
  494. padding-left: 8rpx;
  495. font-size: 28rpx;
  496. color: #AAAAAA;
  497. line-height: 40rpx;
  498. }
  499. }
  500. }
  501. button {
  502. width: 100%;
  503. line-height: 88rpx;
  504. background: linear-gradient(270deg, #FF204B 0%, #FE5B71 100%);
  505. border-radius: 44rpx;
  506. font-weight: 500;
  507. font-size: 32rpx;
  508. color: #FFFFFF;
  509. padding-top: 0;
  510. padding-bottom: 0;
  511. }
  512. }
  513. .popupBottom {
  514. background: #ffffff;
  515. border-top: 2rpx solid #F0F0F0;
  516. padding: 0 32rpx 58rpx;
  517. }
  518. .current-item {
  519. font-size: 24rpx;
  520. color: #999999;
  521. line-height: 40rpx;
  522. padding: 12rpx 12rpx 20rpx;
  523. .current-select-text {
  524. padding-top: 10rpx;
  525. font-size: 26rpx;
  526. line-height: 36rpx;
  527. }
  528. text {
  529. color: #ff0047;
  530. // font-weight: bold;
  531. }
  532. font-family: DINAlternate,
  533. DINAlternate;
  534. .current-top {
  535. display: flex;
  536. align-items: flex-end;
  537. line-height: 42rpx;
  538. }
  539. .line {
  540. color: #D2D2D2;
  541. padding: 0 12rpx;
  542. }
  543. .prices {
  544. display: flex;
  545. align-items: flex-end;
  546. padding-left: 8rpx;
  547. font-weight: bold;
  548. }
  549. .stuff {
  550. padding-right: 2rpx;
  551. font-size: 36rpx;
  552. }
  553. .priceZ {
  554. font-size: 60rpx;
  555. line-height: 1;
  556. }
  557. .priceF {
  558. font-size: 36rpx;
  559. }
  560. }