index.less 15 KB

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