index.less 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678
  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. z-index: 1;
  294. width: 100%;
  295. margin-top: 24rpx;
  296. font-size: 24rpx;
  297. color: #502F00;
  298. line-height: 40rpx;
  299. background: #FFF3E1;
  300. border: 2rpx solid #FBE9CE;
  301. padding: 12rpx 16rpx;
  302. text-align: center;
  303. text {
  304. color: #FF0047;
  305. font-weight: bold;
  306. }
  307. }
  308. .goodsSection {
  309. // margin-bottom: 156rpx;
  310. // margin-top: 12rpx;
  311. background: #FFFFFF;
  312. padding-bottom: 162rpx;
  313. .title {
  314. font-size: 28rpx;
  315. color: #333333;
  316. line-height: 40rpx;
  317. padding: 28rpx 24rpx;
  318. display: flex;
  319. align-items: center;
  320. justify-content: center;
  321. .before,
  322. .after {
  323. content: '';
  324. width: 68rpx;
  325. height: 2rpx;
  326. border-radius: 2rpx;
  327. opacity: 0.3;
  328. display: inline-block;
  329. }
  330. .before {
  331. background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000000 100%);
  332. margin-right: 24rpx;
  333. }
  334. .after {
  335. background: linear-gradient(270deg, rgba(0, 0, 0, 0) 0%, #000000 100%);
  336. margin-left: 24rpx;
  337. }
  338. }
  339. }
  340. .goodsIntro {
  341. background: #FFFFFF;
  342. overflow: hidden;
  343. .images {
  344. image {
  345. display: block;
  346. width: 100%;
  347. }
  348. }
  349. }
  350. .titleVideoSection {
  351. position: relative;
  352. margin: 24rpx 0;
  353. .icon-video {
  354. position: absolute;
  355. width: 92rpx !important;
  356. height: 92rpx !important;
  357. top: 50%;
  358. left: 50%;
  359. transform: translate(-50%, -50%);
  360. }
  361. wx-video .wx-video-top-bar>.wx-video-top-right-buttons {
  362. display: none;
  363. }
  364. .videoItem {
  365. width: 100%;
  366. height: 368rpx;
  367. border-radius: 24rpx;
  368. box-shadow: 4rpx 8rpx 24rpx 1rpx rgba(96, 168, 223, 0.45);
  369. }
  370. }
  371. .liu-section {
  372. padding: 0 0 48rpx;
  373. .liu-img2 {
  374. padding: 24rpx 48rpx 0;
  375. }
  376. .liu-img1 {
  377. padding: 0 40rpx;
  378. }
  379. .titleVideoSection {
  380. padding: 0 48rpx
  381. }
  382. }
  383. .title-section {
  384. background: linear-gradient( 180deg, #D9F0FF 0%, #FAF8F8 50%, #D9F0FF 100%);
  385. overflow: hidden;
  386. .title {
  387. margin: 40rpx auto;
  388. width: 160rpx !important;
  389. height: 76rpx;
  390. padding: 0;
  391. }
  392. .topSection {
  393. padding: 0 48rpx;
  394. .content1 {
  395. font-size: 28rpx;
  396. color: #131415;
  397. line-height: 48rpx;
  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. // 'demo-text-1', 'demo-text-2', 'demo-text-3'
  530. .popup-section {
  531. &.hidden {
  532. display: none;
  533. }
  534. .popup-mask {
  535. position: fixed;
  536. top: 0;
  537. left: 0;
  538. right: 0;
  539. bottom: 0;
  540. background-color: rgba(0, 0, 0, 0.6);
  541. z-index: 9;
  542. }
  543. .popup-container {
  544. position: fixed;
  545. bottom: 0;
  546. left: 0;
  547. right: 0;
  548. z-index: 10;
  549. width: 100%;
  550. background: #FFFFFF;
  551. border-radius: 32rpx 32rpx 0rpx 0rpx;
  552. padding: 48rpx 32rpx 58rpx;
  553. box-sizing: border-box;
  554. &::before {
  555. content: '';
  556. position: absolute;
  557. top: 0;
  558. left: 0;
  559. right: 0;
  560. width: 100%;
  561. height: 30rpx;
  562. background: linear-gradient( 180deg, #FBEAD0 0%, #FFFFFF 100%);
  563. border-radius: 32rpx 32rpx 0rpx 0rpx;
  564. }
  565. }
  566. .iconClose {
  567. position: absolute;
  568. // right: 32rpx;
  569. // top: 32rpx;
  570. top: 0;
  571. right: 0;
  572. padding: 32rpx;
  573. width: 30rpx;
  574. height: 30rpx;
  575. box-sizing: content-box;
  576. }
  577. button {
  578. width: 100%;
  579. line-height: 88rpx;
  580. background: linear-gradient( 90deg, #544F4A 0%, #302F2B 100%);
  581. border-radius: 44rpx;
  582. font-weight: 500;
  583. font-size: 32rpx;
  584. color: #FBEAC9;
  585. padding-top: 0;
  586. padding-bottom: 0;
  587. }
  588. .btnGroup {
  589. position: relative;
  590. }
  591. }
  592. .btnInnerFree {
  593. position: absolute;
  594. right: 0;
  595. z-index: 2;
  596. top: -28rpx;
  597. background: linear-gradient( 180deg, #FF5181 0%, #FF0047 100%);
  598. border-radius: 150rpx 200rpx 200rpx 0rpx;
  599. border: 2rpx solid #FFFFFF;
  600. padding: 0 8rpx;
  601. font-size: 24rpx;
  602. color: #FFFFFF;
  603. padding-top: 2rpx;
  604. line-height: 34rpx;
  605. overflow: hidden;
  606. font-weight: bold;
  607. text {
  608. font-weight: bold;
  609. }
  610. }