index.less 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510
  1. /**index.less**/
  2. .firstConainer {
  3. height: 100vh;
  4. }
  5. .firstPageContainer {
  6. position: relative;
  7. background: url('https://oss.dayaedu.com/ktyq/1733123043908.png') no-repeat center;
  8. background-size: cover;
  9. .weui-navigation-bar {
  10. color: #FFF;
  11. }
  12. .fistSwiperSection {
  13. height: 1142rpx;
  14. padding-top: 48rpx;
  15. swiper-item {
  16. display: flex;
  17. align-items: center;
  18. justify-content: center;
  19. }
  20. }
  21. .swiper-item {
  22. transition: all 0.15s ease;
  23. /* 调整过渡动画的时长和缓动函数,影响淡入淡出和缩放的速度 */
  24. transform-origin: center center;
  25. /* 明确缩放的中心点位置 */
  26. max-width: 90%;
  27. /* 适当增大最大宽度,让缩放效果更明显 */
  28. max-height: 90%;
  29. /* 适当增大最大高度,让缩放效果更明显 */
  30. width: 592rpx;
  31. height: 1142rpx;
  32. &.current {
  33. transition: all 0.2s ease;
  34. max-width: 100%;
  35. max-height: 100%;
  36. }
  37. image {
  38. display: block;
  39. margin: 0 auto;
  40. height: 100%;
  41. width: 100%;
  42. background: #FFFFFF;
  43. border-radius: 32rpx;
  44. }
  45. }
  46. .pageDot {
  47. display: flex;
  48. align-items: center;
  49. justify-content: center;
  50. padding-top: 32rpx;
  51. display: none;
  52. .dot-item {
  53. width: 12rpx;
  54. height: 12rpx;
  55. background: #FFFFFF;
  56. border-radius: 6rpx;
  57. opacity: 0.5;
  58. margin: 0 8rpx;
  59. transition: all 0.15s ease;
  60. &.current {
  61. width: 36rpx;
  62. height: 12rpx;
  63. background: #FFFFFF;
  64. border-radius: 6rpx;
  65. opacity: 1;
  66. }
  67. }
  68. }
  69. .upArrow {
  70. position: absolute;
  71. bottom: 40rpx;
  72. left: 50%;
  73. width: 75.2rpx;
  74. height: 86.4rpx;
  75. z-index: 1;
  76. transform: translateX(-50%);
  77. animation: breathe 2s infinite cubic-bezier(0, 0.21, 0, 0.88);
  78. }
  79. @keyframes breathe {
  80. 0% {
  81. opacity: 1;
  82. transform: translateX(-50%) translateY(0rpx);
  83. }
  84. 75%{
  85. opacity: 1;
  86. }
  87. 100% {
  88. opacity: 0;
  89. transform: translateX(-50%) translateY(-40rpx);
  90. }
  91. }
  92. }
  93. .pageContainer {
  94. height: 100vh;
  95. width: 100%;
  96. }
  97. page {
  98. height: 100vh;
  99. display: flex;
  100. flex-direction: column;
  101. background: #F5F6F7;
  102. }
  103. .scrollarea {
  104. flex: 1;
  105. overflow-y: hidden;
  106. height: 100%;
  107. }
  108. .container {
  109. position: relative;
  110. .topShadow {
  111. position: absolute;
  112. top: 0;
  113. z-index: 1;
  114. width: 100%;
  115. height: 200rpx;
  116. background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
  117. }
  118. .slider-count {
  119. position: absolute;
  120. top: 674rpx;
  121. right: 32rpx;
  122. background: rgba(0, 0, 0, 0.4);
  123. border-radius: 26rpx;
  124. border: 2rpx solid rgba(255, 255, 255, 0.3);
  125. font-weight: 600;
  126. font-size: 28rpx;
  127. color: #FFFFFF;
  128. line-height: 40rpx;
  129. text-align: center;
  130. padding: 2rpx 26rpx;
  131. z-index: 1;
  132. }
  133. swiper {
  134. height: 750rpx;
  135. }
  136. .swiper-item {
  137. width: 100%;
  138. height: 100%;
  139. image {
  140. width: 100%;
  141. height: 100%;
  142. }
  143. }
  144. .demo-text-1 {
  145. background-color: red;
  146. }
  147. .demo-text-2 {
  148. background-color: black;
  149. }
  150. .demo-text-3 {
  151. background-color: gray;
  152. }
  153. }
  154. .shop-section {
  155. background: #FFFFFF;
  156. border-radius: 20rpx;
  157. margin: 16rpx 16rpx 0;
  158. padding: 24rpx 24rpx 40rpx;
  159. .showPrice {
  160. display: flex;
  161. justify-content: space-between;
  162. align-items: center;
  163. }
  164. .left {
  165. flex: 1 auto;
  166. display: flex;
  167. align-items: flex-end;
  168. }
  169. .currentPrice {
  170. font-weight: bold;
  171. color: #FE2451;
  172. font-family: DINAlternate, DINAlternate;
  173. .stuff {
  174. padding-right: 2rpx;
  175. font-size: 36rpx;
  176. }
  177. .priceZ {
  178. font-size: 60rpx;
  179. }
  180. .priceF {
  181. font-size: 36rpx;
  182. }
  183. }
  184. .originPrice {
  185. padding-left: 16rpx;
  186. font-size: 32rpx;
  187. color: #AAAAAA;
  188. line-height: 44rpx;
  189. text-decoration: line-through;
  190. padding-bottom: 12rpx;
  191. }
  192. .right {
  193. padding-top: 14rpx;
  194. font-weight: 400;
  195. font-size: 28rpx;
  196. color: #777777;
  197. line-height: 40rpx;
  198. }
  199. }
  200. .shopName {
  201. font-weight: 600;
  202. font-size: 32rpx;
  203. color: #131415;
  204. line-height: 44rpx;
  205. padding: 24rpx 0 16rpx;
  206. }
  207. .goodsInfo {
  208. display: flex;
  209. // align-items: center;
  210. .desc {
  211. font-size: 28rpx;
  212. color: #131415;
  213. line-height: 68rpx;
  214. margin: 24rpx 0 0;
  215. flex-shrink: 0;
  216. }
  217. .goodsList {
  218. display: flex;
  219. align-items: center;
  220. flex-wrap: wrap;
  221. }
  222. .goodsItem {
  223. line-height: 68rpx;
  224. background: #F4F4F5;
  225. border-radius: 12rpx;
  226. padding: 0 32rpx;
  227. margin-right: 24rpx;
  228. font-size: 28rpx;
  229. color: #131415;
  230. position: relative;
  231. margin-top: 24rpx;
  232. &.selected {
  233. background: #FEEDF0;
  234. font-weight: 600;
  235. color: #FE2451;
  236. }
  237. &.nosale {
  238. background: #F4F4F5;
  239. color: #B1B1B1;
  240. }
  241. image {
  242. position: absolute;
  243. top: -14rpx;
  244. right: -14rpx;
  245. width: 56rpx;
  246. height: 28rpx;
  247. display: block;
  248. z-index: 1;
  249. }
  250. }
  251. }
  252. .goodsSection {
  253. // margin-bottom: 156rpx;
  254. padding-bottom: 174rpx;
  255. }
  256. .goodsIntro {
  257. background: #FFFFFF;
  258. border-radius: 20rpx;
  259. overflow: hidden;
  260. margin: 16rpx 16rpx 8rpx;
  261. .title {
  262. font-weight: 600;
  263. font-size: 32rpx;
  264. color: #131415;
  265. line-height: 44rpx;
  266. padding: 28rpx 24rpx;
  267. }
  268. .images {
  269. image {
  270. display: block;
  271. width: 100%;
  272. }
  273. .img1 {
  274. height: 1128rpx;
  275. }
  276. .img2 {
  277. height: 1810rpx
  278. }
  279. .img3 {
  280. height: 1336rpx;
  281. }
  282. .img4 {
  283. height: 1750rpx;
  284. }
  285. }
  286. }
  287. .bottom-section {
  288. position: fixed;
  289. bottom: 0;
  290. left: 0;
  291. width: 100%;
  292. background-color: #FFFFFF;
  293. box-shadow: inset 0rpx 2rpx 0rpx 0rpx #F0F0F0;
  294. padding: 20rpx 32rpx 58rpx 32rpx;
  295. display: flex;
  296. align-items: center;
  297. box-sizing: border-box;
  298. .orders {
  299. display: flex;
  300. flex-direction: column;
  301. margin-right: 40rpx;
  302. image {
  303. width: 48rpx;
  304. height: 48rpx;
  305. }
  306. text {
  307. font-weight: 500;
  308. font-size: 22rpx;
  309. color: #131415;
  310. line-height: 32rpx;
  311. text-align: center;
  312. }
  313. }
  314. .btnSection {
  315. flex: 1 auto;
  316. button {
  317. width: 100%;
  318. line-height: 88rpx;
  319. background: linear-gradient(270deg, #FF204B 0%, #FE5B71 100%);
  320. border-radius: 44rpx;
  321. font-weight: 500;
  322. font-size: 32rpx;
  323. color: #FFFFFF;
  324. padding-top: 0;
  325. padding-bottom: 0;
  326. &[disabled][type=primary] {
  327. opacity: 0.7;
  328. }
  329. }
  330. }
  331. }
  332. // 'demo-text-1', 'demo-text-2', 'demo-text-3'
  333. .popup-section {
  334. &.hidden {
  335. display: none;
  336. }
  337. .popup-mask {
  338. position: fixed;
  339. top: 0;
  340. left: 0;
  341. right: 0;
  342. bottom: 0;
  343. background-color: rgba(0, 0, 0, 0.6);
  344. z-index: 9;
  345. }
  346. .popup-container {
  347. position: fixed;
  348. bottom: 0;
  349. left: 0;
  350. right: 0;
  351. z-index: 10;
  352. width: 100%;
  353. background: #FFFFFF;
  354. border-radius: 32rpx 32rpx 0rpx 0rpx;
  355. padding: 40rpx 32rpx 58rpx;
  356. box-sizing: border-box;
  357. .goodsInfo {
  358. .desc {
  359. padding-bottom: 0;
  360. margin-bottom: 0;
  361. }
  362. }
  363. }
  364. .iconClose {
  365. position: absolute;
  366. right: 44rpx;
  367. top: 44rpx;
  368. width: 30rpx;
  369. height: 30rpx;
  370. }
  371. .product-section {
  372. display: flex;
  373. padding-bottom: 60rpx;
  374. .product-img {
  375. width: 160rpx;
  376. height: 160rpx;
  377. flex-shrink: 0;
  378. margin-right: 32rpx;
  379. border-radius: 6px;
  380. overflow: hidden;
  381. image {
  382. width: 100%;
  383. height: 100%;
  384. }
  385. }
  386. .product-left {
  387. display: flex;
  388. align-items: flex-start;
  389. .currentPrice {
  390. font-weight: bold;
  391. color: #FE2451;
  392. font-family: DINAlternate, DINAlternate;
  393. .stuff {
  394. padding-right: 2rpx;
  395. font-size: 36rpx;
  396. }
  397. .priceZ {
  398. font-size: 60rpx;
  399. }
  400. .priceF {
  401. font-size: 36rpx;
  402. }
  403. }
  404. .originPrice {
  405. padding-left: 16rpx;
  406. font-size: 32rpx;
  407. color: #AAAAAA;
  408. line-height: 44rpx;
  409. text-decoration: line-through;
  410. padding-top: 32rpx;
  411. }
  412. }
  413. }
  414. .goodsInfo {
  415. flex-direction: column;
  416. align-items: flex-start;
  417. padding-bottom: 90rpx;
  418. .desc {
  419. font-size: 28rpx;
  420. color: #131415;
  421. line-height: 40rpx;
  422. padding-bottom: 30rpx;
  423. }
  424. }
  425. button {
  426. width: 100%;
  427. line-height: 88rpx;
  428. background: linear-gradient(270deg, #FF204B 0%, #FE5B71 100%);
  429. border-radius: 44rpx;
  430. font-weight: 500;
  431. font-size: 32rpx;
  432. color: #FFFFFF;
  433. padding-top: 0;
  434. padding-bottom: 0;
  435. }
  436. }