index.less 15 KB

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