index.less 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876
  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. text-align: justify;
  398. }
  399. .content2 {
  400. font-size: 24rpx;
  401. color: #131415;
  402. line-height: 48rpx;
  403. text-align: center;
  404. }
  405. }
  406. .titleSwiper {
  407. position: relative;
  408. padding: 24rpx 0 40rpx;
  409. swiper {
  410. height: 472rpx;
  411. }
  412. .swiper-item-detail {
  413. height: 368rpx;
  414. padding: 0 48rpx;
  415. image {
  416. width: 100%;
  417. height: 100%;
  418. box-shadow: 4rpx 8rpx 24rpx 1rpx rgba(96, 168, 223, 0.45);
  419. border-radius: 24rpx;
  420. }
  421. .text {
  422. padding: 20rpx 0;
  423. font-size: 24rpx;
  424. color: #131415;
  425. line-height: 48rpx;
  426. text-align: center;
  427. }
  428. }
  429. .title-dot {
  430. display: flex;
  431. align-items: center;
  432. justify-content: center;
  433. .title-dot--item {
  434. width: 16rpx;
  435. height: 16rpx;
  436. border-radius: 50%;
  437. margin: 0 11rpx;
  438. background: #d1d1d1;
  439. }
  440. .title-dot--item-active {
  441. background: #78cafe;
  442. }
  443. }
  444. }
  445. }
  446. .bottom-section {
  447. position: fixed;
  448. bottom: 0;
  449. left: 0;
  450. z-index: 2;
  451. width: 100%;
  452. background-color: #ffffff;
  453. // box-shadow: inset 0rpx 2rpx 0rpx 0rpx #F0F0F0;
  454. padding: 20rpx 32rpx 58rpx 32rpx;
  455. display: flex;
  456. align-items: center;
  457. box-sizing: border-box;
  458. .orders {
  459. display: flex;
  460. flex-direction: column;
  461. padding-right: 40rpx;
  462. image {
  463. width: 48rpx;
  464. height: 48rpx;
  465. }
  466. text {
  467. font-size: 24rpx;
  468. color: #777777;
  469. line-height: 34rpx;
  470. text-align: center;
  471. }
  472. }
  473. .btnSection {
  474. flex: 1 auto;
  475. position: relative;
  476. button {
  477. width: 100%;
  478. line-height: 88rpx;
  479. background: linear-gradient(90deg, #544f4a 0%, #302f2b 100%);
  480. border-radius: 44rpx;
  481. font-weight: 500;
  482. font-size: 32rpx;
  483. color: #fbeac9;
  484. padding-top: 0;
  485. padding-bottom: 0;
  486. &[disabled][type="primary"] {
  487. opacity: 0.7;
  488. }
  489. }
  490. }
  491. }
  492. .scroll-header {
  493. position: fixed;
  494. top: 0;
  495. left: 0;
  496. width: 100%;
  497. z-index: 9;
  498. background-color: #fff;
  499. .product-catagory {
  500. border-top: 1px solid #f2f2f2;
  501. display: flex;
  502. align-items: center;
  503. justify-content: center;
  504. padding: 20rpx 0 28rpx;
  505. .item {
  506. position: relative;
  507. padding: 0 40rpx;
  508. font-size: 28rpx;
  509. color: #999999;
  510. line-height: 40rpx;
  511. }
  512. .selected {
  513. color: #131415;
  514. font-weight: 600;
  515. &::after {
  516. position: absolute;
  517. left: 50%;
  518. bottom: -8rpx;
  519. transform: translateX(-50%);
  520. content: "";
  521. display: block;
  522. width: 34rpx;
  523. height: 4rpx;
  524. background: #534e49;
  525. }
  526. }
  527. }
  528. }
  529. .combo-section {
  530. max-height: 556rpx;
  531. overflow-x: hidden;
  532. overflow-y: auto;
  533. &::-webkit-scrollbar {
  534. display: none;
  535. }
  536. }
  537. .combo-title {
  538. padding-bottom: 8rpx;
  539. font-weight: 600;
  540. font-size: 26rpx;
  541. color: #502f00;
  542. line-height: 36rpx;
  543. .select-one {
  544. color: #ff0047;
  545. }
  546. }
  547. .combo-tips {
  548. padding-bottom: 20rpx;
  549. font-size: 24rpx;
  550. color: rgba(80, 47, 0, 0.5);
  551. line-height: 34rpx;
  552. }
  553. .combo-list {
  554. display: flex;
  555. flex-wrap: wrap;
  556. }
  557. .combo-item {
  558. width: 31%;
  559. display: flex;
  560. align-items: center;
  561. flex-direction: column;
  562. padding: 20rpx 10rpx;
  563. margin-right: 2.3333%;
  564. margin-bottom: 20rpx;
  565. position: relative;
  566. box-sizing: border-box;
  567. .check-good {
  568. width: 28rpx;
  569. height: 28rpx;
  570. position: absolute;
  571. top: 16rpx;
  572. right: 16rpx;
  573. }
  574. &:nth-child(3n + 3) {
  575. margin-right: 0;
  576. }
  577. &.active {
  578. background: #fff8ee;
  579. border-radius: 20rpx;
  580. }
  581. .combo-item-img {
  582. width: 128rpx;
  583. height: 128rpx;
  584. padding-bottom: 20rpx;
  585. }
  586. .combo-item-name {
  587. font-weight: 400;
  588. font-size: 24rpx;
  589. color: #000000;
  590. line-height: 34rpx;
  591. max-width: 200rpx;
  592. white-space: nowrap;
  593. overflow: hidden;
  594. text-overflow: ellipsis;
  595. }
  596. .combo-item-price {
  597. font-family: DINAlternate, DINAlternate;
  598. font-weight: bold;
  599. font-size: 28rpx;
  600. color: #ff0047;
  601. line-height: 40rpx;
  602. }
  603. .combo-item-origin {
  604. font-family: DINAlternate, DINAlternate;
  605. font-weight: 400;
  606. font-size: 24rpx;
  607. color: #6d4718;
  608. line-height: 34rpx;
  609. }
  610. }
  611. .popupBottom {
  612. background: #ffffff;
  613. // box-shadow: 0 2rpx 8rpx 0rpx rgba(0, 0, 0, 0.5);
  614. box-shadow: 0rpx 2rpx 8rpx 0rpx rgba(0,0,0,0.25);
  615. padding: 0 32rpx 58rpx;
  616. position: relative;
  617. z-index: 1;
  618. }
  619. .current-item {
  620. font-size: 24rpx;
  621. color: #502f00;
  622. line-height: 40rpx;
  623. padding: 12rpx 12rpx 28rpx;
  624. .current-item-text {
  625. font-weight: 600;
  626. font-size: 26rpx;
  627. color: #502f00;
  628. line-height: 36rpx;
  629. padding-bottom: 4rpx;
  630. }
  631. text {
  632. color: #ff0047;
  633. font-weight: bold;
  634. }
  635. }
  636. // 'demo-text-1', 'demo-text-2', 'demo-text-3'
  637. .popup-section {
  638. &.hidden {
  639. display: none;
  640. }
  641. .popup-mask {
  642. position: fixed;
  643. top: 0;
  644. left: 0;
  645. right: 0;
  646. bottom: 0;
  647. background-color: rgba(0, 0, 0, 0.6);
  648. z-index: 9;
  649. }
  650. .popup-container {
  651. position: fixed;
  652. bottom: 0;
  653. left: 0;
  654. right: 0;
  655. z-index: 10;
  656. width: 100%;
  657. background: #ffffff;
  658. border-radius: 32rpx 32rpx 0rpx 0rpx;
  659. padding: 48rpx 0 0;
  660. box-sizing: border-box;
  661. &::before {
  662. content: "";
  663. position: absolute;
  664. top: 0;
  665. left: 0;
  666. right: 0;
  667. width: 100%;
  668. height: 30rpx;
  669. background: linear-gradient(180deg, #fbead0 0%, #ffffff 100%);
  670. border-radius: 32rpx 32rpx 0rpx 0rpx;
  671. }
  672. }
  673. .shop-section {
  674. padding: 0 32rpx;
  675. }
  676. .iconClose {
  677. position: absolute;
  678. // right: 32rpx;
  679. // top: 32rpx;
  680. top: 0;
  681. right: 0;
  682. padding: 32rpx;
  683. width: 30rpx;
  684. height: 30rpx;
  685. box-sizing: content-box;
  686. }
  687. button {
  688. width: 164rpx;
  689. height: 64rpx;
  690. line-height: 64rpx;
  691. background: #fbeac9 !important;
  692. border-radius: 32rpx;
  693. font-weight: 500;
  694. font-size: 32rpx;
  695. color: #3a3834 !important;
  696. text-align: center;
  697. padding: 0;
  698. margin: 0;
  699. }
  700. .btnGroup {
  701. position: relative;
  702. display: flex;
  703. justify-content: space-between;
  704. align-items: center;
  705. position: relative;
  706. padding: 0 12rpx;
  707. height: 88rpx;
  708. background: linear-gradient(90deg, #544f4a 0%, #302f2b 100%);
  709. border-radius: 44rpx;
  710. .left-section {
  711. position: relative;
  712. display: flex;
  713. .icon1 {
  714. position: absolute;
  715. top: -22rpx;
  716. left: 28rpx;
  717. width: 102rpx;
  718. height: 102rpx;
  719. }
  720. .currentPrice2 {
  721. padding-left: 138rpx;
  722. font-weight: bold;
  723. color: #FBEAC9;
  724. font-family: DINAlternate, DINAlternate;
  725. .stuff {
  726. font-size: 36rpx;
  727. padding-right: 4rpx;
  728. }
  729. .priceZ {
  730. font-size: 60rpx;
  731. }
  732. .priceF {
  733. font-size: 36rpx;
  734. }
  735. }
  736. }
  737. }
  738. }
  739. .btnInnerFree {
  740. position: absolute;
  741. right: 0;
  742. z-index: 2;
  743. top: -28rpx;
  744. background: linear-gradient(180deg, #ff5181 0%, #ff0047 100%);
  745. border-radius: 150rpx 200rpx 200rpx 0rpx;
  746. border: 2rpx solid #ffffff;
  747. padding: 0 8rpx;
  748. font-size: 24rpx;
  749. color: #ffffff;
  750. padding-top: 2rpx;
  751. line-height: 34rpx;
  752. overflow: hidden;
  753. font-weight: bold;
  754. text {
  755. font-weight: bold;
  756. }
  757. }