index.less 15 KB

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