index.less 10 KB

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