index.less 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762
  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, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
  21. }
  22. .slider-count {
  23. position: absolute;
  24. top: 678rpx;
  25. right: 0;
  26. background: rgba(0, 0, 0, 0.4);
  27. border-radius: 200rpx 0rpx 0rpx 200rpx;
  28. font-weight: 600;
  29. font-size: 28rpx;
  30. color: #FFFFFF;
  31. line-height: 40rpx;
  32. text-align: center;
  33. padding: 2rpx 20rpx 2rpx 28rpx;
  34. z-index: 1;
  35. }
  36. .bannerSwiper {
  37. height: 750rpx;
  38. .swiper-item {
  39. width: 100%;
  40. height: 100%;
  41. image {
  42. width: 100%;
  43. height: 100%;
  44. }
  45. }
  46. .swiper-video {
  47. display: flex;
  48. align-items: center;
  49. video {
  50. width: 100%
  51. }
  52. wx-video .wx-video-top-bar>.wx-video-top-right-buttons {
  53. display: none;
  54. }
  55. // wx-video .wx-video-top-bar {
  56. // display: none;
  57. // }
  58. .bg {
  59. filter: blur(32rpx);
  60. }
  61. image {
  62. position: absolute;
  63. top: 0;
  64. bottom: 0;
  65. }
  66. .icon-video {
  67. width: 92rpx;
  68. height: 92rpx;
  69. top: 50%;
  70. left: 50%;
  71. transform: translate(-50%, -50%);
  72. }
  73. }
  74. }
  75. }
  76. .shop-section {
  77. background: #FFFFFF;
  78. // padding: 20rpx 32rpx 24rpx;
  79. padding-bottom: 80rpx;
  80. .main-goods {
  81. width: 100%;
  82. height: 160rpx;
  83. background: url('https://oss.dayaedu.com/ktyq/1733109076504.png') no-repeat center;
  84. background-size: contain;
  85. }
  86. .showPrice {
  87. display: flex;
  88. justify-content: space-between;
  89. // align-items: center;
  90. }
  91. .left {
  92. display: flex;
  93. flex-direction: column;
  94. min-width: 210rpx;
  95. padding-right: 12rpx;
  96. flex-shrink: 0;
  97. }
  98. .left-top {
  99. .t1 {
  100. margin-top: 16rpx;
  101. margin-left: 24rpx;
  102. width: 116rpx;
  103. height: 47.5rpx;
  104. }
  105. }
  106. .left-bottom {
  107. padding-left: 24rpx;
  108. }
  109. .currentPrice {
  110. font-weight: bold;
  111. color: #502F00;
  112. font-family: DINAlternate, DINAlternate;
  113. .stuff {
  114. font-size: 36rpx;
  115. }
  116. .priceZ {
  117. font-size: 60rpx;
  118. }
  119. .priceF {
  120. font-size: 36rpx;
  121. }
  122. }
  123. // .originPrice {
  124. // padding-left: 16rpx;
  125. // font-size: 32rpx;
  126. // color: #AAAAAA;
  127. // line-height: 44rpx;
  128. // text-decoration: line-through;
  129. // padding-bottom: 12rpx;
  130. // }
  131. .right {
  132. flex: 1 auto;
  133. padding-top: 24rpx;
  134. font-weight: 400;
  135. font-size: 28rpx;
  136. color: #777777;
  137. line-height: 40rpx;
  138. .right-top {
  139. display: flex;
  140. font-size: 24rpx;
  141. color: #6D4718;
  142. line-height: 34rpx;
  143. }
  144. .right-bottom {
  145. padding-top: 46rpx;
  146. }
  147. }
  148. }
  149. .shopName {
  150. font-weight: 600;
  151. font-size: 30rpx;
  152. color: #502F00;
  153. line-height: 42rpx;
  154. max-width: 420rpx;
  155. overflow: hidden;
  156. text-overflow: ellipsis;
  157. white-space: nowrap;
  158. }
  159. .goodsInfo {
  160. display: flex;
  161. position: relative;
  162. // align-items: center;
  163. .desc {
  164. display: flex;
  165. align-items: center;
  166. justify-content: center;
  167. text-align: center;
  168. width: 84rpx;
  169. height: 84rpx;
  170. background: #F1F1F1;
  171. border-radius: 12rpx;
  172. font-size: 24rpx;
  173. color: #777777;
  174. line-height: 30rpx;
  175. flex-shrink: 0;
  176. padding: 12rpx 16rpx;
  177. box-sizing: border-box;
  178. margin-right: 16rpx;
  179. margin-top: 32rpx;
  180. }
  181. .goodsList {
  182. display: flex;
  183. align-items: center;
  184. flex-wrap: nowrap;
  185. overflow-x: auto;
  186. padding-top: 32rpx;
  187. &::-webkit-scrollbar {
  188. display: none;
  189. }
  190. }
  191. .iconMore {
  192. position: absolute;
  193. right: -24rpx;
  194. bottom: 32rpx;
  195. width: 20rpx;
  196. height: 20rpx;
  197. }
  198. .goodsItem {
  199. display: flex;
  200. align-items: center;
  201. position: relative;
  202. height: 84rpx;
  203. background: #F8F8F8;
  204. padding-left: 10rpx;
  205. margin-right: 16rpx;
  206. font-size: 28rpx;
  207. color: #131415;
  208. position: relative;
  209. border-radius: 12rpx;
  210. border: 4rpx solid #F8F8F8;
  211. box-sizing: border-box;
  212. .select-arrow {
  213. display: none;
  214. }
  215. &.selected {
  216. background: rgba(255, 255, 255, 0.7);
  217. border-radius: 12rpx;
  218. border: 4rpx solid #855F2E;
  219. .select-arrow {
  220. display: block;
  221. position: absolute;
  222. top: -40rpx;
  223. left: 50%;
  224. transform: translateX(-50%);
  225. width: 28rpx;
  226. height: 18rpx;
  227. }
  228. }
  229. &.nosale {
  230. background-color: rgba(248, 248, 248, 0.6);
  231. .pic,
  232. .nameorprice {
  233. opacity: 0.6;
  234. }
  235. }
  236. .pic {
  237. width: 64rpx;
  238. height: 64rpx;
  239. flex-shrink: 0;
  240. }
  241. .nameorprice {
  242. padding-left: 10rpx;
  243. padding-right: 12rpx;
  244. flex-shrink: 0;
  245. display: flex;
  246. flex-direction: column;
  247. justify-content: space-around;
  248. height: 64rpx;
  249. .name {
  250. font-weight: 600;
  251. font-size: 24rpx;
  252. color: #131415;
  253. line-height: 28rpx;
  254. }
  255. .price {
  256. font-family: DINAlternate, DINAlternate;
  257. font-weight: bold;
  258. font-size: 24rpx;
  259. color: #FF0047;
  260. line-height: 1.2;
  261. padding-top: 4rpx;
  262. }
  263. }
  264. .imgSale {
  265. position: absolute;
  266. top: -20rpx;
  267. right: -16rpx;
  268. width: 56rpx;
  269. height: 28rpx;
  270. display: block;
  271. z-index: 1;
  272. }
  273. }
  274. }
  275. .current-item {
  276. margin-top: 24rpx;
  277. font-size: 24rpx;
  278. color: #502F00;
  279. line-height: 40rpx;
  280. background: linear-gradient(180deg, rgba(254, 248, 241, 0.4) 0%, rgba(251, 233, 205, 0.4) 100%);
  281. border: 2rpx solid #FBE9CE;
  282. border-radius: 10rpx;
  283. padding: 12rpx 16rpx;
  284. text {
  285. color: #FF0047;
  286. font-weight: bold;
  287. }
  288. }
  289. .scroll-current-item {
  290. position: fixed;
  291. bottom: 162rpx;
  292. left: 0;
  293. width: 100%;
  294. margin-top: 24rpx;
  295. font-size: 24rpx;
  296. color: #502F00;
  297. line-height: 40rpx;
  298. background: #FFF3E1;
  299. border: 2rpx solid #FBE9CE;
  300. padding: 12rpx 16rpx;
  301. text-align: center;
  302. text {
  303. color: #FF0047;
  304. font-weight: bold;
  305. }
  306. }
  307. .goodsSection {
  308. // margin-bottom: 156rpx;
  309. // margin-top: 12rpx;
  310. background: #FFFFFF;
  311. padding-bottom: 162rpx;
  312. .title {
  313. font-size: 28rpx;
  314. color: #333333;
  315. line-height: 40rpx;
  316. padding: 28rpx 24rpx;
  317. display: flex;
  318. align-items: center;
  319. justify-content: center;
  320. .before,
  321. .after {
  322. content: '';
  323. width: 68rpx;
  324. height: 2rpx;
  325. border-radius: 2rpx;
  326. opacity: 0.3;
  327. display: inline-block;
  328. }
  329. .before {
  330. background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000000 100%);
  331. margin-right: 24rpx;
  332. }
  333. .after {
  334. background: linear-gradient(270deg, rgba(0, 0, 0, 0) 0%, #000000 100%);
  335. margin-left: 24rpx;
  336. }
  337. }
  338. }
  339. .goodsIntro {
  340. background: #FFFFFF;
  341. overflow: hidden;
  342. .images {
  343. image {
  344. display: block;
  345. width: 100%;
  346. }
  347. }
  348. }
  349. .titleVideoSection {
  350. position: relative;
  351. margin: 24rpx 0;
  352. .icon-video {
  353. position: absolute;
  354. width: 92rpx !important;
  355. height: 92rpx !important;
  356. top: 50%;
  357. left: 50%;
  358. transform: translate(-50%, -50%);
  359. }
  360. wx-video .wx-video-top-bar>.wx-video-top-right-buttons {
  361. display: none;
  362. }
  363. .videoItem {
  364. width: 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 48rpx 48rpx;
  372. }
  373. .title-section {
  374. background: linear-gradient( 180deg, #D9F0FF 0%, #FAF8F8 50%, #D9F0FF 100%);
  375. overflow: hidden;
  376. .title {
  377. margin: 40rpx auto;
  378. width: 160rpx !important;
  379. height: 76rpx;
  380. padding: 0;
  381. }
  382. .topSection {
  383. padding: 0 48rpx;
  384. .content1 {
  385. font-size: 28rpx;
  386. color: #131415;
  387. line-height: 48rpx;
  388. }
  389. .content2 {
  390. font-size: 24rpx;
  391. color: #131415;
  392. line-height: 48rpx;
  393. text-align: center;
  394. }
  395. }
  396. .titleSwiper {
  397. position: relative;
  398. padding: 24rpx 0 40rpx;
  399. swiper {
  400. height: 472rpx;
  401. }
  402. .swiper-item-detail {
  403. height: 368rpx;
  404. padding: 0 48rpx;
  405. image {
  406. width: 100%;
  407. height: 100%;
  408. box-shadow: 4rpx 8rpx 24rpx 1rpx rgba(96, 168, 223, 0.45);
  409. border-radius: 24rpx;
  410. }
  411. .text {
  412. padding: 20rpx 0;
  413. font-size: 24rpx;
  414. color: #131415;
  415. line-height: 48rpx;
  416. text-align: center;
  417. }
  418. }
  419. .title-dot {
  420. display: flex;
  421. align-items: center;
  422. justify-content: center;
  423. .title-dot--item {
  424. width: 16rpx;
  425. height: 16rpx;
  426. border-radius: 50%;
  427. margin: 0 11rpx;
  428. background: #D1D1D1;
  429. }
  430. .title-dot--item-active {
  431. background: #78CAFE;
  432. }
  433. }
  434. }
  435. }
  436. .bottom-section {
  437. position: fixed;
  438. bottom: 0;
  439. left: 0;
  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. margin-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. button {
  465. width: 100%;
  466. line-height: 88rpx;
  467. background: linear-gradient(90deg, #544F4A 0%, #302F2B 100%);
  468. border-radius: 44rpx;
  469. font-weight: 500;
  470. font-size: 32rpx;
  471. color: #FBEAC9;
  472. padding-top: 0;
  473. padding-bottom: 0;
  474. &[disabled][type=primary] {
  475. opacity: 0.7;
  476. }
  477. }
  478. }
  479. }
  480. .scroll-header {
  481. position: fixed;
  482. top: 0;
  483. left: 0;
  484. width: 100%;
  485. z-index: 9;
  486. background-color: #fff;
  487. .product-catagory {
  488. border-top: 1px solid #F2F2F2;
  489. display: flex;
  490. align-items: center;
  491. justify-content: center;
  492. padding: 20rpx 0 28rpx;
  493. .item {
  494. position: relative;
  495. padding: 0 40rpx;
  496. font-size: 28rpx;
  497. color: #999999;
  498. line-height: 40rpx;
  499. }
  500. .selected {
  501. color: #131415;
  502. font-weight: 600;
  503. &::after {
  504. position: absolute;
  505. left: 50%;
  506. bottom: -8rpx;
  507. transform: translateX(-50%);
  508. content: '';
  509. display: block;
  510. width: 34rpx;
  511. height: 4rpx;
  512. background: #534E49;
  513. }
  514. }
  515. }
  516. }
  517. // 'demo-text-1', 'demo-text-2', 'demo-text-3'
  518. .popup-section {
  519. &.hidden {
  520. display: none;
  521. }
  522. .popup-mask {
  523. position: fixed;
  524. top: 0;
  525. left: 0;
  526. right: 0;
  527. bottom: 0;
  528. background-color: rgba(0, 0, 0, 0.6);
  529. z-index: 9;
  530. }
  531. .popup-container {
  532. position: fixed;
  533. bottom: 0;
  534. left: 0;
  535. right: 0;
  536. z-index: 10;
  537. width: 100%;
  538. background: #FFFFFF;
  539. border-radius: 32rpx 32rpx 0rpx 0rpx;
  540. padding: 48rpx 32rpx 58rpx;
  541. box-sizing: border-box;
  542. &::before {
  543. content: '';
  544. position: absolute;
  545. top: 0;
  546. left: 0;
  547. right: 0;
  548. width: 100%;
  549. height: 30rpx;
  550. background: linear-gradient( 180deg, #FBEAD0 0%, #FFFFFF 100%);
  551. border-radius: 32rpx 32rpx 0rpx 0rpx;
  552. }
  553. // .goodsInfo {
  554. // padding-bottom: 28rpx;
  555. // min-height: 300rpx;
  556. // .goodsItem {
  557. // height: 102rpx;
  558. // margin-bottom: 22rpx;
  559. // // flex: 1;
  560. // width: 31.53%;
  561. // margin-right: 2%;
  562. // max-width: 31.53%;
  563. // &:nth-child(3n + 3) {
  564. // margin-right: 0;
  565. // }
  566. // &.selected .select-arrow {
  567. // display: none !important;
  568. // }
  569. // .nameorprice {
  570. // height: 82rpx;
  571. // display: flex;
  572. // flex-direction: column;
  573. // justify-content: space-between;
  574. // }
  575. // }
  576. // .goodsList {
  577. // max-height: 480rpx;
  578. // overflow-y: auto;
  579. // overflow-x: hidden;
  580. // &::-webkit-scrollbar {
  581. // display: none;
  582. // }
  583. // flex-wrap: wrap;
  584. // width: 100%;
  585. // .pic {
  586. // width: 82rpx;
  587. // height: 82rpx;
  588. // }
  589. // }
  590. // }
  591. }
  592. .iconClose {
  593. position: absolute;
  594. right: 32rpx;
  595. top: 32rpx;
  596. width: 30rpx;
  597. height: 30rpx;
  598. }
  599. // .product-section {
  600. // display: flex;
  601. // padding-bottom: 40rpx;
  602. // .product-img {
  603. // width: 160rpx;
  604. // height: 160rpx;
  605. // flex-shrink: 0;
  606. // margin-right: 32rpx;
  607. // border-radius: 12rpx;
  608. // overflow: hidden;
  609. // image {
  610. // width: 100%;
  611. // height: 100%;
  612. // }
  613. // }
  614. // .product-left {
  615. // display: flex;
  616. // align-items: flex-start;
  617. // .currentPrice {
  618. // font-weight: bold;
  619. // color: #FE2451;
  620. // font-family: DINAlternate, DINAlternate;
  621. // .stuff {
  622. // font-size: 32rpx;
  623. // }
  624. // .priceZ {
  625. // font-family: DINAlternate, DINAlternate;
  626. // font-size: 56rpx;
  627. // }
  628. // .priceF {
  629. // font-family: DINAlternate, DINAlternate;
  630. // font-size: 32rpx;
  631. // }
  632. // }
  633. // .originPrice {
  634. // padding-left: 16rpx;
  635. // font-size: 28rpx;
  636. // color: #AAAAAA;
  637. // line-height: 40rpx;
  638. // padding-top: 30rpx;
  639. // }
  640. // }
  641. // .selected-info {
  642. // padding-top: 24rpx;
  643. // font-size: 28rpx;
  644. // color: #131415;
  645. // line-height: 40rpx;
  646. // text {
  647. // color: #FF0047;
  648. // }
  649. // }
  650. // }
  651. // .goodsInfo {
  652. // flex-direction: column;
  653. // align-items: flex-start;
  654. // padding-bottom: 90rpx;
  655. // .desc {
  656. // font-size: 28rpx;
  657. // color: #131415;
  658. // line-height: 40rpx;
  659. // padding-bottom: 30rpx;
  660. // }
  661. // }
  662. button {
  663. width: 100%;
  664. line-height: 88rpx;
  665. background: linear-gradient( 90deg, #544F4A 0%, #302F2B 100%);
  666. border-radius: 44rpx;
  667. font-weight: 500;
  668. font-size: 32rpx;
  669. color: #FBEAC9;
  670. padding-top: 0;
  671. padding-bottom: 0;
  672. }
  673. }