index.less 11 KB

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