index.less 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654
  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. swiper {
  37. height: 750rpx;
  38. }
  39. .swiper-item {
  40. width: 100%;
  41. height: 100%;
  42. image {
  43. width: 100%;
  44. height: 100%;
  45. }
  46. }
  47. .demo-text-1 {
  48. background-color: red;
  49. }
  50. .demo-text-2 {
  51. background-color: black;
  52. }
  53. .demo-text-3 {
  54. background-color: gray;
  55. }
  56. }
  57. .shop-section {
  58. background: #FFFFFF;
  59. // padding: 20rpx 32rpx 24rpx;
  60. padding-bottom: 80rpx;
  61. .main-goods {
  62. width: 100%;
  63. height: 160rpx;
  64. background: url('https://oss.dayaedu.com/ktyq/1733109076504.png') no-repeat center;
  65. background-size: contain;
  66. }
  67. .showPrice {
  68. display: flex;
  69. justify-content: space-between;
  70. // align-items: center;
  71. }
  72. .left {
  73. display: flex;
  74. flex-direction: column;
  75. min-width: 210rpx;
  76. padding-right: 12rpx;
  77. flex-shrink: 0;
  78. }
  79. .left-top {
  80. .t1 {
  81. margin-top: 16rpx;
  82. margin-left: 24rpx;
  83. width: 116rpx;
  84. height: 47.5rpx;
  85. }
  86. }
  87. .left-bottom {
  88. padding-left: 24rpx;
  89. }
  90. .currentPrice {
  91. font-weight: bold;
  92. color: #502F00;
  93. font-family: DINAlternate, DINAlternate;
  94. .stuff {
  95. font-size: 36rpx;
  96. }
  97. .priceZ {
  98. font-size: 60rpx;
  99. }
  100. .priceF {
  101. font-size: 36rpx;
  102. }
  103. }
  104. // .originPrice {
  105. // padding-left: 16rpx;
  106. // font-size: 32rpx;
  107. // color: #AAAAAA;
  108. // line-height: 44rpx;
  109. // text-decoration: line-through;
  110. // padding-bottom: 12rpx;
  111. // }
  112. .right {
  113. flex: 1 auto;
  114. padding-top: 24rpx;
  115. font-weight: 400;
  116. font-size: 28rpx;
  117. color: #777777;
  118. line-height: 40rpx;
  119. .right-top {
  120. display: flex;
  121. font-size: 24rpx;
  122. color: #6D4718;
  123. line-height: 34rpx;
  124. }
  125. .right-bottom {
  126. padding-top: 46rpx;
  127. }
  128. }
  129. }
  130. .shopName {
  131. font-weight: 600;
  132. font-size: 30rpx;
  133. color: #502F00;
  134. line-height: 42rpx;
  135. max-width: 420rpx;
  136. overflow: hidden;
  137. text-overflow: ellipsis;
  138. white-space: nowrap;
  139. }
  140. .goodsInfo {
  141. display: flex;
  142. position: relative;
  143. // align-items: center;
  144. .desc {
  145. display: flex;
  146. align-items: center;
  147. justify-content: center;
  148. text-align: center;
  149. width: 84rpx;
  150. height: 84rpx;
  151. background: #F1F1F1;
  152. border-radius: 12rpx;
  153. font-size: 24rpx;
  154. color: #777777;
  155. line-height: 30rpx;
  156. flex-shrink: 0;
  157. padding: 12rpx 16rpx;
  158. box-sizing: border-box;
  159. margin-right: 16rpx;
  160. margin-top: 32rpx;
  161. }
  162. .goodsList {
  163. display: flex;
  164. align-items: center;
  165. flex-wrap: nowrap;
  166. overflow-x: auto;
  167. padding-top: 32rpx;
  168. &::-webkit-scrollbar {
  169. display: none;
  170. }
  171. }
  172. .iconMore {
  173. position: absolute;
  174. right: -24rpx;
  175. bottom: 32rpx;
  176. width: 20rpx;
  177. height: 20rpx;
  178. }
  179. .goodsItem {
  180. display: flex;
  181. align-items: center;
  182. position: relative;
  183. height: 84rpx;
  184. background: #F8F8F8;
  185. padding-left: 10rpx;
  186. margin-right: 16rpx;
  187. font-size: 28rpx;
  188. color: #131415;
  189. position: relative;
  190. border-radius: 12rpx;
  191. border: 4rpx solid #F8F8F8;
  192. box-sizing: border-box;
  193. .select-arrow {
  194. display: none;
  195. }
  196. &.selected {
  197. background: rgba(255, 255, 255, 0.7);
  198. border-radius: 12rpx;
  199. border: 4rpx solid #855F2E;
  200. .select-arrow {
  201. display: block;
  202. position: absolute;
  203. top: -40rpx;
  204. left: 50%;
  205. transform: translateX(-50%);
  206. width: 28rpx;
  207. height: 18rpx;
  208. }
  209. }
  210. &.nosale {
  211. background-color: rgba(248, 248, 248, 0.6);
  212. .pic,
  213. .nameorprice {
  214. opacity: 0.6;
  215. }
  216. }
  217. .pic {
  218. width: 64rpx;
  219. height: 64rpx;
  220. flex-shrink: 0;
  221. }
  222. .nameorprice {
  223. padding-left: 10rpx;
  224. padding-right: 12rpx;
  225. flex-shrink: 0;
  226. display: flex;
  227. flex-direction: column;
  228. justify-content: space-around;
  229. height: 64rpx;
  230. .name {
  231. font-weight: 600;
  232. font-size: 24rpx;
  233. color: #131415;
  234. line-height: 28rpx;
  235. }
  236. .price {
  237. font-family: DINAlternate, DINAlternate;
  238. font-weight: bold;
  239. font-size: 24rpx;
  240. color: #FF0047;
  241. line-height: 1.2;
  242. padding-top: 4rpx;
  243. }
  244. }
  245. .imgSale {
  246. position: absolute;
  247. top: -20rpx;
  248. right: -16rpx;
  249. width: 56rpx;
  250. height: 28rpx;
  251. display: block;
  252. z-index: 1;
  253. }
  254. }
  255. }
  256. .current-item {
  257. margin-top: 24rpx;
  258. font-size: 24rpx;
  259. color: #502F00;
  260. line-height: 40rpx;
  261. background: linear-gradient(180deg, rgba(254, 248, 241, 0.4) 0%, rgba(251, 233, 205, 0.4) 100%);
  262. border: 2rpx solid #FBE9CE;
  263. border-radius: 10rpx;
  264. padding: 12rpx 16rpx;
  265. text {
  266. color: #FF0047;
  267. font-weight: bold;
  268. }
  269. }
  270. .scroll-current-item {
  271. position: fixed;
  272. bottom: 162rpx;
  273. left: 0;
  274. width: 100%;
  275. margin-top: 24rpx;
  276. font-size: 24rpx;
  277. color: #502F00;
  278. line-height: 40rpx;
  279. background: #FFF3E1;
  280. border: 2rpx solid #FBE9CE;
  281. padding: 12rpx 16rpx;
  282. text-align: center;
  283. text {
  284. color: #FF0047;
  285. font-weight: bold;
  286. }
  287. }
  288. .goodsSection {
  289. // margin-bottom: 156rpx;
  290. // margin-top: 12rpx;
  291. background: #FFFFFF;
  292. padding-bottom: 162rpx;
  293. .title {
  294. font-size: 28rpx;
  295. color: #333333;
  296. line-height: 40rpx;
  297. padding: 28rpx 24rpx;
  298. display: flex;
  299. align-items: center;
  300. justify-content: center;
  301. .before,
  302. .after {
  303. content: '';
  304. width: 68rpx;
  305. height: 2rpx;
  306. border-radius: 2rpx;
  307. opacity: 0.3;
  308. display: inline-block;
  309. }
  310. .before {
  311. background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000000 100%);
  312. margin-right: 24rpx;
  313. }
  314. .after {
  315. background: linear-gradient(270deg, rgba(0, 0, 0, 0) 0%, #000000 100%);
  316. margin-left: 24rpx;
  317. }
  318. }
  319. }
  320. .goodsIntro {
  321. background: #FFFFFF;
  322. overflow: hidden;
  323. .images {
  324. image {
  325. display: block;
  326. width: 100%;
  327. }
  328. }
  329. }
  330. .bottom-section {
  331. position: fixed;
  332. bottom: 0;
  333. left: 0;
  334. width: 100%;
  335. background-color: #FFFFFF;
  336. // box-shadow: inset 0rpx 2rpx 0rpx 0rpx #F0F0F0;
  337. padding: 20rpx 32rpx 58rpx 32rpx;
  338. display: flex;
  339. align-items: center;
  340. box-sizing: border-box;
  341. .orders {
  342. display: flex;
  343. flex-direction: column;
  344. margin-right: 40rpx;
  345. image {
  346. width: 48rpx;
  347. height: 48rpx;
  348. }
  349. text {
  350. font-size: 24rpx;
  351. color: #777777;
  352. line-height: 34rpx;
  353. text-align: center;
  354. }
  355. }
  356. .btnSection {
  357. flex: 1 auto;
  358. button {
  359. width: 100%;
  360. line-height: 88rpx;
  361. background: linear-gradient(90deg, #544F4A 0%, #302F2B 100%);
  362. border-radius: 44rpx;
  363. font-weight: 500;
  364. font-size: 32rpx;
  365. color: #FBEAC9;
  366. padding-top: 0;
  367. padding-bottom: 0;
  368. &[disabled][type=primary] {
  369. opacity: 0.7;
  370. }
  371. }
  372. }
  373. }
  374. .scroll-header {
  375. position: fixed;
  376. top: 0;
  377. left: 0;
  378. width: 100%;
  379. z-index: 9;
  380. background-color: #fff;
  381. .product-catagory {
  382. border-top: 1px solid #F2F2F2;
  383. display: flex;
  384. align-items: center;
  385. justify-content: center;
  386. padding: 20rpx 0 28rpx;
  387. .item {
  388. position: relative;
  389. padding: 0 40rpx;
  390. font-size: 28rpx;
  391. color: #999999;
  392. line-height: 40rpx;
  393. }
  394. .selected {
  395. color: #131415;
  396. font-weight: 600;
  397. &::after {
  398. position: absolute;
  399. left: 50%;
  400. bottom: -8rpx;
  401. transform: translateX(-50%);
  402. content: '';
  403. display: block;
  404. width: 34rpx;
  405. height: 4rpx;
  406. background: #534E49;
  407. }
  408. }
  409. }
  410. }
  411. // 'demo-text-1', 'demo-text-2', 'demo-text-3'
  412. .popup-section {
  413. &.hidden {
  414. display: none;
  415. }
  416. .popup-mask {
  417. position: fixed;
  418. top: 0;
  419. left: 0;
  420. right: 0;
  421. bottom: 0;
  422. background-color: rgba(0, 0, 0, 0.6);
  423. z-index: 9;
  424. }
  425. .popup-container {
  426. position: fixed;
  427. bottom: 0;
  428. left: 0;
  429. right: 0;
  430. z-index: 10;
  431. width: 100%;
  432. background: #FFFFFF;
  433. border-radius: 32rpx 32rpx 0rpx 0rpx;
  434. padding: 48rpx 32rpx 58rpx;
  435. box-sizing: border-box;
  436. &::before {
  437. content: '';
  438. position: absolute;
  439. top: 0;
  440. left: 0;
  441. right: 0;
  442. width: 100%;
  443. height: 30rpx;
  444. background: linear-gradient( 180deg, #FBEAD0 0%, #FFFFFF 100%);
  445. border-radius: 32rpx 32rpx 0rpx 0rpx;
  446. }
  447. // .goodsInfo {
  448. // padding-bottom: 28rpx;
  449. // min-height: 300rpx;
  450. // .goodsItem {
  451. // height: 102rpx;
  452. // margin-bottom: 22rpx;
  453. // // flex: 1;
  454. // width: 31.53%;
  455. // margin-right: 2%;
  456. // max-width: 31.53%;
  457. // &:nth-child(3n + 3) {
  458. // margin-right: 0;
  459. // }
  460. // &.selected .select-arrow {
  461. // display: none !important;
  462. // }
  463. // .nameorprice {
  464. // height: 82rpx;
  465. // display: flex;
  466. // flex-direction: column;
  467. // justify-content: space-between;
  468. // }
  469. // }
  470. // .goodsList {
  471. // max-height: 480rpx;
  472. // overflow-y: auto;
  473. // overflow-x: hidden;
  474. // &::-webkit-scrollbar {
  475. // display: none;
  476. // }
  477. // flex-wrap: wrap;
  478. // width: 100%;
  479. // .pic {
  480. // width: 82rpx;
  481. // height: 82rpx;
  482. // }
  483. // }
  484. // }
  485. }
  486. .iconClose {
  487. position: absolute;
  488. right: 32rpx;
  489. top: 32rpx;
  490. width: 30rpx;
  491. height: 30rpx;
  492. }
  493. // .product-section {
  494. // display: flex;
  495. // padding-bottom: 40rpx;
  496. // .product-img {
  497. // width: 160rpx;
  498. // height: 160rpx;
  499. // flex-shrink: 0;
  500. // margin-right: 32rpx;
  501. // border-radius: 12rpx;
  502. // overflow: hidden;
  503. // image {
  504. // width: 100%;
  505. // height: 100%;
  506. // }
  507. // }
  508. // .product-left {
  509. // display: flex;
  510. // align-items: flex-start;
  511. // .currentPrice {
  512. // font-weight: bold;
  513. // color: #FE2451;
  514. // font-family: DINAlternate, DINAlternate;
  515. // .stuff {
  516. // font-size: 32rpx;
  517. // }
  518. // .priceZ {
  519. // font-family: DINAlternate, DINAlternate;
  520. // font-size: 56rpx;
  521. // }
  522. // .priceF {
  523. // font-family: DINAlternate, DINAlternate;
  524. // font-size: 32rpx;
  525. // }
  526. // }
  527. // .originPrice {
  528. // padding-left: 16rpx;
  529. // font-size: 28rpx;
  530. // color: #AAAAAA;
  531. // line-height: 40rpx;
  532. // padding-top: 30rpx;
  533. // }
  534. // }
  535. // .selected-info {
  536. // padding-top: 24rpx;
  537. // font-size: 28rpx;
  538. // color: #131415;
  539. // line-height: 40rpx;
  540. // text {
  541. // color: #FF0047;
  542. // }
  543. // }
  544. // }
  545. // .goodsInfo {
  546. // flex-direction: column;
  547. // align-items: flex-start;
  548. // padding-bottom: 90rpx;
  549. // .desc {
  550. // font-size: 28rpx;
  551. // color: #131415;
  552. // line-height: 40rpx;
  553. // padding-bottom: 30rpx;
  554. // }
  555. // }
  556. button {
  557. width: 100%;
  558. line-height: 88rpx;
  559. background: linear-gradient( 90deg, #544F4A 0%, #302F2B 100%);
  560. border-radius: 44rpx;
  561. font-weight: 500;
  562. font-size: 32rpx;
  563. color: #FBEAC9;
  564. padding-top: 0;
  565. padding-bottom: 0;
  566. }
  567. }