index.less 11 KB

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