index.less 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584
  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. // align-items: center;
  235. .desc {
  236. font-size: 28rpx;
  237. color: #131415;
  238. line-height: 68rpx;
  239. margin: 24rpx 0 0;
  240. flex-shrink: 0;
  241. }
  242. .goodsList {
  243. display: flex;
  244. align-items: center;
  245. flex-wrap: wrap;
  246. }
  247. .goodsItem {
  248. line-height: 68rpx;
  249. background: #F4F4F5;
  250. border-radius: 12rpx;
  251. padding: 0 32rpx;
  252. margin-right: 24rpx;
  253. font-size: 28rpx;
  254. color: #131415;
  255. position: relative;
  256. margin-top: 24rpx;
  257. &.selected {
  258. background: #FEEDF0;
  259. font-weight: 600;
  260. color: #FE2451;
  261. }
  262. &.nosale {
  263. background: #F4F4F5;
  264. color: #B1B1B1;
  265. }
  266. image {
  267. position: absolute;
  268. top: -14rpx;
  269. right: -14rpx;
  270. width: 56rpx;
  271. height: 28rpx;
  272. display: block;
  273. z-index: 1;
  274. }
  275. }
  276. }
  277. .goodsSection {
  278. // margin-bottom: 156rpx;
  279. padding-bottom: 174rpx;
  280. }
  281. .goodsIntro {
  282. background: #FFFFFF;
  283. border-radius: 20rpx;
  284. overflow: hidden;
  285. margin: 16rpx 16rpx 8rpx;
  286. .title {
  287. font-weight: 600;
  288. font-size: 32rpx;
  289. color: #131415;
  290. line-height: 44rpx;
  291. padding: 28rpx 24rpx;
  292. }
  293. .images {
  294. image {
  295. display: block;
  296. width: 100%;
  297. }
  298. .img1 {
  299. height: 1128rpx;
  300. }
  301. .img2 {
  302. height: 1810rpx
  303. }
  304. .img3 {
  305. height: 1336rpx;
  306. }
  307. .img4 {
  308. height: 1750rpx;
  309. }
  310. }
  311. }
  312. .bottom-section {
  313. position: fixed;
  314. bottom: 0;
  315. left: 0;
  316. width: 100%;
  317. background-color: #FFFFFF;
  318. box-shadow: inset 0rpx 2rpx 0rpx 0rpx #F0F0F0;
  319. padding: 20rpx 32rpx 58rpx 32rpx;
  320. display: flex;
  321. align-items: center;
  322. box-sizing: border-box;
  323. justify-content: space-around;
  324. .orders {
  325. display: flex;
  326. align-items: center;
  327. margin-right: 40rpx;
  328. padding: 8rpx 0 16rpx;
  329. &.active {
  330. text {
  331. color: #131415;
  332. }
  333. }
  334. image {
  335. width: 48rpx;
  336. height: 48rpx;
  337. }
  338. text {
  339. padding-left: 16rpx;
  340. font-weight: 500;
  341. font-size: 28rpx;
  342. color: #AAAAAA;
  343. line-height: 40rpx;
  344. text-align: center;
  345. }
  346. }
  347. .btnSection {
  348. flex: 1 auto;
  349. button {
  350. width: 100%;
  351. line-height: 88rpx;
  352. background: linear-gradient(270deg, #FF204B 0%, #FE5B71 100%);
  353. border-radius: 44rpx;
  354. font-weight: 500;
  355. font-size: 32rpx;
  356. color: #FFFFFF;
  357. padding-top: 0;
  358. padding-bottom: 0;
  359. &[disabled][type=primary] {
  360. opacity: 0.7;
  361. }
  362. }
  363. }
  364. }
  365. // 'demo-text-1', 'demo-text-2', 'demo-text-3'
  366. .popup-section {
  367. max-height: 86vh;
  368. overflow-x: hidden;
  369. overflow-y: auto;
  370. &.hidden {
  371. display: none;
  372. }
  373. .popup-mask {
  374. position: fixed;
  375. top: 0;
  376. left: 0;
  377. right: 0;
  378. bottom: 0;
  379. background-color: rgba(0, 0, 0, 0.6);
  380. z-index: 9;
  381. }
  382. .popup-container {
  383. position: fixed;
  384. bottom: 0;
  385. left: 0;
  386. right: 0;
  387. z-index: 10;
  388. width: 100%;
  389. background: #FFFFFF;
  390. border-radius: 32rpx 32rpx 0rpx 0rpx;
  391. padding: 40rpx 0 0;
  392. box-sizing: border-box;
  393. .goodsInfo {
  394. padding: 0 40rpx 48rpx;
  395. .desc {
  396. padding-bottom: 0;
  397. margin-bottom: 0;
  398. }
  399. }
  400. }
  401. .iconClose {
  402. position: absolute;
  403. right: 44rpx;
  404. top: 44rpx;
  405. width: 30rpx;
  406. height: 30rpx;
  407. }
  408. .product-section {
  409. display: flex;
  410. padding-bottom: 60rpx;
  411. .product-img {
  412. width: 160rpx;
  413. height: 160rpx;
  414. flex-shrink: 0;
  415. margin-right: 32rpx;
  416. border-radius: 6px;
  417. overflow: hidden;
  418. image {
  419. width: 100%;
  420. height: 100%;
  421. }
  422. }
  423. .product-left {
  424. display: flex;
  425. align-items: flex-start;
  426. .currentPrice {
  427. font-weight: bold;
  428. color: #FE2451;
  429. font-family: DINAlternate, DINAlternate;
  430. .stuff {
  431. padding-right: 2rpx;
  432. font-size: 36rpx;
  433. }
  434. .priceZ {
  435. font-size: 60rpx;
  436. }
  437. .priceF {
  438. font-size: 36rpx;
  439. }
  440. }
  441. .originPrice {
  442. padding-left: 16rpx;
  443. font-size: 32rpx;
  444. color: #AAAAAA;
  445. line-height: 44rpx;
  446. text-decoration: line-through;
  447. padding-top: 32rpx;
  448. }
  449. }
  450. }
  451. .goodsInfo {
  452. flex-direction: column;
  453. align-items: flex-start;
  454. padding-bottom: 90rpx;
  455. .desc {
  456. font-size: 28rpx;
  457. color: #131415;
  458. line-height: 40rpx;
  459. padding-bottom: 30rpx;
  460. }
  461. }
  462. button {
  463. width: 100%;
  464. line-height: 88rpx;
  465. background: linear-gradient(270deg, #FF204B 0%, #FE5B71 100%);
  466. border-radius: 44rpx;
  467. font-weight: 500;
  468. font-size: 32rpx;
  469. color: #FFFFFF;
  470. padding-top: 0;
  471. padding-bottom: 0;
  472. }
  473. }
  474. .popupBottom {
  475. background: #ffffff;
  476. border-top: 2rpx solid #F0F0F0;
  477. padding: 0 32rpx 58rpx;
  478. }
  479. .current-item {
  480. font-size: 24rpx;
  481. color: #502f00;
  482. line-height: 40rpx;
  483. padding: 12rpx 12rpx 28rpx;
  484. .current-item-text {
  485. font-weight: 600;
  486. font-size: 26rpx;
  487. color: #502f00;
  488. line-height: 36rpx;
  489. padding-bottom: 4rpx;
  490. }
  491. text {
  492. color: #ff0047;
  493. font-weight: bold;
  494. }
  495. }