index.less 15 KB

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