index.less 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885
  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. .topShadow {
  15. position: absolute;
  16. top: 0;
  17. z-index: 1;
  18. width: 100%;
  19. height: 200rpx;
  20. background: linear-gradient(180deg,
  21. rgba(0, 0, 0, 0.7) 0%,
  22. rgba(0, 0, 0, 0) 100%);
  23. }
  24. .slider-count {
  25. position: absolute;
  26. top: 678rpx;
  27. right: 0;
  28. background: rgba(0, 0, 0, 0.4);
  29. border-radius: 200rpx 0rpx 0rpx 200rpx;
  30. font-weight: 600;
  31. font-size: 28rpx;
  32. color: #ffffff;
  33. line-height: 40rpx;
  34. text-align: center;
  35. padding: 2rpx 20rpx 2rpx 28rpx;
  36. z-index: 1;
  37. }
  38. .bannerSwiper {
  39. height: 750rpx;
  40. .swiper-item {
  41. width: 100%;
  42. height: 100%;
  43. image {
  44. width: 100%;
  45. height: 100%;
  46. }
  47. }
  48. .swiper-video {
  49. display: flex;
  50. align-items: center;
  51. video {
  52. width: 100%;
  53. }
  54. wx-video .wx-video-top-bar>.wx-video-top-right-buttons {
  55. display: none;
  56. }
  57. // wx-video .wx-video-top-bar {
  58. // display: none;
  59. // }
  60. .bg {
  61. filter: blur(32rpx);
  62. }
  63. image {
  64. position: absolute;
  65. top: 0;
  66. bottom: 0;
  67. }
  68. .icon-video {
  69. width: 92rpx;
  70. height: 92rpx;
  71. top: 50%;
  72. left: 50%;
  73. transform: translate(-50%, -50%);
  74. }
  75. }
  76. }
  77. }
  78. .shop-section {
  79. background: #ffffff;
  80. // padding: 20rpx 32rpx 24rpx;
  81. padding-bottom: 80rpx;
  82. .main-goods {
  83. width: 100%;
  84. height: 160rpx;
  85. background: url("https://oss.dayaedu.com/ktyq/1733109076504.png") no-repeat center;
  86. background-size: contain;
  87. }
  88. .showPrice {
  89. display: flex;
  90. justify-content: space-between;
  91. // align-items: center;
  92. }
  93. .left {
  94. display: flex;
  95. flex-direction: column;
  96. min-width: 210rpx;
  97. padding-right: 12rpx;
  98. flex-shrink: 0;
  99. justify-content: space-between;
  100. }
  101. .left-top {
  102. .t1 {
  103. margin-top: 16rpx;
  104. margin-left: 24rpx;
  105. width: 116rpx;
  106. height: 47.5rpx;
  107. }
  108. }
  109. .left-bottom {
  110. padding-left: 24rpx;
  111. }
  112. .currentPrice {
  113. font-weight: bold;
  114. color: #502f00;
  115. font-family: DINAlternate, DINAlternate;
  116. .stuff {
  117. font-size: 36rpx;
  118. }
  119. .priceZ {
  120. font-size: 60rpx;
  121. line-height: 1;
  122. }
  123. .priceF {
  124. font-size: 36rpx;
  125. }
  126. }
  127. // .originPrice {
  128. // padding-left: 16rpx;
  129. // font-size: 32rpx;
  130. // color: #AAAAAA;
  131. // line-height: 44rpx;
  132. // text-decoration: line-through;
  133. // padding-bottom: 12rpx;
  134. // }
  135. .right {
  136. flex: 1 auto;
  137. padding-top: 24rpx;
  138. font-weight: 400;
  139. font-size: 28rpx;
  140. color: #777777;
  141. line-height: 40rpx;
  142. .right-top {
  143. display: flex;
  144. font-size: 24rpx;
  145. color: #6d4718;
  146. line-height: 34rpx;
  147. .originPrice text {
  148. text-decoration: line-through
  149. }
  150. }
  151. .right-bottom {
  152. padding-top: 46rpx;
  153. }
  154. }
  155. }
  156. .shopName {
  157. font-weight: 600;
  158. font-size: 30rpx;
  159. color: #502f00;
  160. line-height: 42rpx;
  161. max-width: 420rpx;
  162. overflow: hidden;
  163. text-overflow: ellipsis;
  164. white-space: nowrap;
  165. }
  166. .goodsInfo {
  167. display: flex;
  168. position: relative;
  169. // align-items: center;
  170. .desc {
  171. display: flex;
  172. align-items: center;
  173. justify-content: center;
  174. text-align: center;
  175. width: 84rpx;
  176. height: 84rpx;
  177. background: #f1f1f1;
  178. border-radius: 12rpx;
  179. font-size: 24rpx;
  180. color: #777777;
  181. line-height: 30rpx;
  182. flex-shrink: 0;
  183. padding: 12rpx 16rpx;
  184. box-sizing: border-box;
  185. margin-right: 16rpx;
  186. margin-top: 32rpx;
  187. }
  188. .goodsList {
  189. display: flex;
  190. align-items: center;
  191. flex-wrap: nowrap;
  192. overflow-x: auto;
  193. padding-top: 32rpx;
  194. margin-bottom: 40rpx;
  195. &::-webkit-scrollbar {
  196. display: none;
  197. }
  198. }
  199. .iconMore {
  200. position: absolute;
  201. right: -24rpx;
  202. bottom: 32rpx;
  203. width: 20rpx;
  204. height: 20rpx;
  205. }
  206. .goodsItem {
  207. display: flex;
  208. align-items: center;
  209. position: relative;
  210. height: 84rpx;
  211. background: #f8f8f8;
  212. padding-left: 10rpx;
  213. padding-right: 10rpx;
  214. margin-right: 16rpx;
  215. font-size: 28rpx;
  216. color: #131415;
  217. position: relative;
  218. border-radius: 12rpx;
  219. border: 4rpx solid #f8f8f8;
  220. box-sizing: border-box;
  221. .select-arrow {
  222. display: none;
  223. }
  224. &.selected {
  225. background: rgba(255, 255, 255, 0.7);
  226. border-radius: 12rpx;
  227. border: 4rpx solid #855f2e;
  228. .select-arrow {
  229. display: block;
  230. position: absolute;
  231. top: -40rpx;
  232. left: 50%;
  233. transform: translateX(-50%);
  234. width: 28rpx;
  235. height: 18rpx;
  236. }
  237. }
  238. &.nosale {
  239. background-color: rgba(248, 248, 248, 0.6);
  240. .pic,
  241. .nameorprice {
  242. opacity: 0.6;
  243. }
  244. }
  245. .pic {
  246. width: 64rpx;
  247. height: 64rpx;
  248. flex-shrink: 0;
  249. }
  250. .nameorprice {
  251. padding-left: 10rpx;
  252. padding-right: 12rpx;
  253. flex-shrink: 0;
  254. display: flex;
  255. flex-direction: column;
  256. justify-content: space-around;
  257. height: 64rpx;
  258. .name {
  259. font-weight: 600;
  260. font-size: 24rpx;
  261. color: #131415;
  262. line-height: 28rpx;
  263. }
  264. .price {
  265. font-family: DINAlternate, DINAlternate;
  266. font-weight: bold;
  267. font-size: 24rpx;
  268. color: #ff0047;
  269. line-height: 1.2;
  270. padding-top: 4rpx;
  271. }
  272. }
  273. .imgSale {
  274. position: absolute;
  275. top: -20rpx;
  276. right: -16rpx;
  277. width: 56rpx;
  278. height: 28rpx;
  279. display: block;
  280. z-index: 1;
  281. }
  282. }
  283. }
  284. .scroll-current-item {
  285. position: fixed;
  286. bottom: 162rpx;
  287. left: 0;
  288. z-index: 1;
  289. width: 100%;
  290. margin-top: 24rpx;
  291. font-size: 24rpx;
  292. color: #502f00;
  293. line-height: 40rpx;
  294. background: #fff3e1;
  295. border: 2rpx solid #fbe9ce;
  296. padding: 12rpx 16rpx;
  297. text-align: center;
  298. text {
  299. color: #ff0047;
  300. font-weight: bold;
  301. }
  302. }
  303. .goodsSection {
  304. // margin-bottom: 156rpx;
  305. // margin-top: 12rpx;
  306. background: #ffffff;
  307. // padding-bottom: 162rpx;
  308. .title {
  309. font-size: 28rpx;
  310. color: #333333;
  311. line-height: 40rpx;
  312. padding: 28rpx 24rpx;
  313. display: flex;
  314. align-items: center;
  315. justify-content: center;
  316. .before,
  317. .after {
  318. content: "";
  319. width: 68rpx;
  320. height: 2rpx;
  321. border-radius: 2rpx;
  322. opacity: 0.3;
  323. display: inline-block;
  324. }
  325. .before {
  326. background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000000 100%);
  327. margin-right: 24rpx;
  328. }
  329. .after {
  330. background: linear-gradient(270deg, rgba(0, 0, 0, 0) 0%, #000000 100%);
  331. margin-left: 24rpx;
  332. }
  333. }
  334. }
  335. .goodsIntro {
  336. background: #ffffff;
  337. overflow: hidden;
  338. .images {
  339. image {
  340. display: block;
  341. width: 100%;
  342. }
  343. }
  344. }
  345. .titleVideoSection {
  346. position: relative;
  347. margin: 24rpx 0;
  348. .icon-video {
  349. position: absolute;
  350. width: 92rpx !important;
  351. height: 92rpx !important;
  352. top: 50%;
  353. left: 50%;
  354. transform: translate(-50%, -50%);
  355. }
  356. wx-video .wx-video-top-bar>.wx-video-top-right-buttons {
  357. display: none;
  358. }
  359. .video-section {
  360. position: relative;
  361. width: 100%;
  362. padding-top: 56.25%;
  363. }
  364. .videoItem {
  365. position: absolute;
  366. top: 0;
  367. bottom: 0;
  368. width: 100%;
  369. height: 100%;
  370. // height: 368rpx;
  371. border-radius: 24rpx;
  372. box-shadow: 4rpx 8rpx 24rpx 1rpx rgba(96, 168, 223, 0.45);
  373. }
  374. }
  375. .liu-section {
  376. padding: 0 0 48rpx;
  377. .liu-img2 {
  378. padding: 24rpx 48rpx 0;
  379. }
  380. .liu-img1 {
  381. padding: 0 40rpx;
  382. }
  383. .titleVideoSection {
  384. padding: 0 48rpx;
  385. }
  386. }
  387. .title-section {
  388. background: #fff;
  389. overflow: hidden;
  390. .title {
  391. margin: 66rpx auto 20rpx;
  392. width: 162rpx !important;
  393. height: 88rpx;
  394. padding: 0;
  395. }
  396. .topSection {
  397. padding: 0 48rpx;
  398. .content1 {
  399. font-size: 28rpx;
  400. color: #131415;
  401. line-height: 48rpx;
  402. text-align: justify;
  403. }
  404. .content2 {
  405. font-size: 24rpx;
  406. color: #131415;
  407. line-height: 48rpx;
  408. text-align: center;
  409. }
  410. }
  411. .titleSwiper {
  412. position: relative;
  413. padding: 24rpx 0 40rpx;
  414. swiper {
  415. height: 472rpx;
  416. }
  417. .swiper-item-detail {
  418. height: 368rpx;
  419. padding: 0 48rpx;
  420. image {
  421. width: 100%;
  422. height: 100%;
  423. box-shadow: 4rpx 8rpx 24rpx 1rpx rgba(96, 168, 223, 0.45);
  424. border-radius: 24rpx;
  425. }
  426. .text {
  427. padding: 20rpx 0;
  428. font-size: 24rpx;
  429. color: #131415;
  430. line-height: 48rpx;
  431. text-align: center;
  432. }
  433. }
  434. .title-dot {
  435. display: flex;
  436. align-items: center;
  437. justify-content: center;
  438. .title-dot--item {
  439. width: 16rpx;
  440. height: 16rpx;
  441. border-radius: 50%;
  442. margin: 0 11rpx;
  443. background: #d1d1d1;
  444. }
  445. .title-dot--item-active {
  446. background: #78cafe;
  447. }
  448. }
  449. }
  450. }
  451. .bottom-section {
  452. position: fixed;
  453. bottom: 0;
  454. left: 0;
  455. z-index: 2;
  456. width: 100%;
  457. background-color: #ffffff;
  458. // box-shadow: inset 0rpx 2rpx 0rpx 0rpx #F0F0F0;
  459. padding: 20rpx 32rpx 58rpx 32rpx;
  460. display: flex;
  461. align-items: center;
  462. box-sizing: border-box;
  463. .orders {
  464. display: flex;
  465. flex-direction: column;
  466. padding-right: 40rpx;
  467. image {
  468. width: 48rpx;
  469. height: 48rpx;
  470. }
  471. text {
  472. font-size: 24rpx;
  473. color: #777777;
  474. line-height: 34rpx;
  475. text-align: center;
  476. }
  477. }
  478. .btnSection {
  479. flex: 1 auto;
  480. position: relative;
  481. button {
  482. width: 100%;
  483. line-height: 88rpx;
  484. background: linear-gradient(90deg, #544f4a 0%, #302f2b 100%);
  485. border-radius: 44rpx;
  486. font-weight: 500;
  487. font-size: 32rpx;
  488. color: #fbeac9;
  489. padding-top: 0;
  490. padding-bottom: 0;
  491. &[disabled][type="primary"] {
  492. opacity: 0.7;
  493. }
  494. }
  495. }
  496. }
  497. .scroll-header {
  498. position: fixed;
  499. top: 0;
  500. left: 0;
  501. width: 100%;
  502. z-index: 9;
  503. background-color: #fff;
  504. .product-catagory {
  505. border-top: 1px solid #f2f2f2;
  506. display: flex;
  507. align-items: center;
  508. justify-content: center;
  509. padding: 20rpx 0 28rpx;
  510. .item {
  511. position: relative;
  512. padding: 0 40rpx;
  513. font-size: 28rpx;
  514. color: #999999;
  515. line-height: 40rpx;
  516. }
  517. .selected {
  518. color: #131415;
  519. font-weight: 600;
  520. &::after {
  521. position: absolute;
  522. left: 50%;
  523. bottom: -8rpx;
  524. transform: translateX(-50%);
  525. content: "";
  526. display: block;
  527. width: 34rpx;
  528. height: 4rpx;
  529. background: #534e49;
  530. }
  531. }
  532. }
  533. }
  534. .combo-section {
  535. max-height: 556rpx;
  536. overflow-x: hidden;
  537. overflow-y: auto;
  538. &::-webkit-scrollbar {
  539. display: none;
  540. }
  541. }
  542. .combo-title {
  543. padding-bottom: 8rpx;
  544. font-weight: 600;
  545. font-size: 26rpx;
  546. color: #502f00;
  547. line-height: 36rpx;
  548. .select-one {
  549. color: #ff0047;
  550. }
  551. }
  552. .combo-tips {
  553. padding-bottom: 20rpx;
  554. font-size: 24rpx;
  555. color: rgba(80, 47, 0, 0.5);
  556. line-height: 34rpx;
  557. }
  558. .combo-list {
  559. display: flex;
  560. flex-wrap: wrap;
  561. }
  562. .combo-item {
  563. width: 31%;
  564. display: flex;
  565. align-items: center;
  566. flex-direction: column;
  567. padding: 20rpx 10rpx;
  568. margin-right: 2.3333%;
  569. margin-bottom: 20rpx;
  570. position: relative;
  571. box-sizing: border-box;
  572. .check-good {
  573. width: 28rpx;
  574. height: 28rpx;
  575. position: absolute;
  576. top: 16rpx;
  577. right: 16rpx;
  578. }
  579. &:nth-child(3n + 3) {
  580. margin-right: 0;
  581. }
  582. &.active {
  583. background: #fff8ee;
  584. border-radius: 20rpx;
  585. }
  586. .combo-item-img {
  587. width: 128rpx;
  588. height: 128rpx;
  589. padding-bottom: 20rpx;
  590. }
  591. .combo-item-name {
  592. font-weight: 400;
  593. font-size: 24rpx;
  594. color: #000000;
  595. line-height: 34rpx;
  596. max-width: 200rpx;
  597. white-space: nowrap;
  598. overflow: hidden;
  599. text-overflow: ellipsis;
  600. }
  601. .combo-item-price {
  602. font-family: DINAlternate, DINAlternate;
  603. font-weight: bold;
  604. font-size: 28rpx;
  605. color: #ff0047;
  606. line-height: 40rpx;
  607. }
  608. .combo-item-origin {
  609. font-family: DINAlternate, DINAlternate;
  610. font-weight: 400;
  611. font-size: 24rpx;
  612. color: #6d4718;
  613. line-height: 34rpx;
  614. text {
  615. text-decoration: line-through;
  616. }
  617. }
  618. }
  619. .popupBottom {
  620. background: #ffffff;
  621. // box-shadow: 0 2rpx 8rpx 0rpx rgba(0, 0, 0, 0.5);
  622. box-shadow: 0rpx 2rpx 8rpx 0rpx rgba(0,0,0,0.25);
  623. padding: 0 32rpx 58rpx;
  624. position: relative;
  625. z-index: 1;
  626. }
  627. .current-item {
  628. font-size: 24rpx;
  629. color: #502f00;
  630. line-height: 40rpx;
  631. padding: 12rpx 12rpx 28rpx;
  632. .current-item-text {
  633. font-weight: 600;
  634. font-size: 26rpx;
  635. color: #502f00;
  636. line-height: 36rpx;
  637. padding-bottom: 4rpx;
  638. }
  639. text {
  640. color: #ff0047;
  641. font-weight: bold;
  642. }
  643. }
  644. // 'demo-text-1', 'demo-text-2', 'demo-text-3'
  645. .popup-section {
  646. &.hidden {
  647. display: none;
  648. }
  649. .popup-mask {
  650. position: fixed;
  651. top: 0;
  652. left: 0;
  653. right: 0;
  654. bottom: 0;
  655. background-color: rgba(0, 0, 0, 0.6);
  656. z-index: 9;
  657. }
  658. .popup-container {
  659. position: fixed;
  660. bottom: 0;
  661. left: 0;
  662. right: 0;
  663. z-index: 10;
  664. width: 100%;
  665. background: #ffffff;
  666. border-radius: 32rpx 32rpx 0rpx 0rpx;
  667. padding: 48rpx 0 0;
  668. box-sizing: border-box;
  669. &::before {
  670. content: "";
  671. position: absolute;
  672. top: 0;
  673. left: 0;
  674. right: 0;
  675. width: 100%;
  676. height: 30rpx;
  677. background: linear-gradient(180deg, #fbead0 0%, #ffffff 100%);
  678. border-radius: 32rpx 32rpx 0rpx 0rpx;
  679. }
  680. }
  681. .shop-section {
  682. padding: 0 32rpx;
  683. }
  684. .iconClose {
  685. position: absolute;
  686. // right: 32rpx;
  687. // top: 32rpx;
  688. top: 0;
  689. right: 0;
  690. padding: 32rpx;
  691. width: 30rpx;
  692. height: 30rpx;
  693. box-sizing: content-box;
  694. }
  695. button {
  696. width: 164rpx;
  697. height: 64rpx;
  698. line-height: 64rpx;
  699. background: #fbeac9 !important;
  700. border-radius: 32rpx;
  701. font-weight: 500;
  702. font-size: 32rpx;
  703. color: #3a3834 !important;
  704. text-align: center;
  705. padding: 0;
  706. margin: 0;
  707. }
  708. .btnGroup {
  709. position: relative;
  710. display: flex;
  711. justify-content: space-between;
  712. align-items: center;
  713. position: relative;
  714. padding: 0 12rpx;
  715. height: 88rpx;
  716. background: linear-gradient(90deg, #544f4a 0%, #302f2b 100%);
  717. border-radius: 44rpx;
  718. .left-section {
  719. position: relative;
  720. display: flex;
  721. .icon1 {
  722. position: absolute;
  723. top: -22rpx;
  724. left: 28rpx;
  725. width: 102rpx;
  726. height: 102rpx;
  727. }
  728. .currentPrice2 {
  729. padding-left: 138rpx;
  730. font-weight: bold;
  731. color: #FBEAC9;
  732. font-family: DINAlternate, DINAlternate;
  733. .stuff {
  734. font-size: 36rpx;
  735. padding-right: 4rpx;
  736. }
  737. .priceZ {
  738. font-size: 60rpx;
  739. }
  740. .priceF {
  741. font-size: 36rpx;
  742. }
  743. }
  744. }
  745. }
  746. }
  747. .btnInnerFree {
  748. position: absolute;
  749. right: 0;
  750. z-index: 2;
  751. top: -28rpx;
  752. background: linear-gradient(180deg, #ff5181 0%, #ff0047 100%);
  753. border-radius: 150rpx 200rpx 200rpx 0rpx;
  754. border: 2rpx solid #ffffff;
  755. padding: 0 8rpx;
  756. font-size: 24rpx;
  757. color: #ffffff;
  758. padding-top: 2rpx;
  759. line-height: 34rpx;
  760. overflow: hidden;
  761. font-weight: bold;
  762. text {
  763. font-weight: bold;
  764. }
  765. }