index.less 11 KB

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