index.less 15 KB

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