index.less 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513
  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: 4rpx 20rpx 4rpx 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. // border-radius: 20rpx;
  60. // margin: 16rpx 16rpx 0;
  61. padding: 32rpx 32rpx 40rpx;
  62. .showPrice {
  63. display: flex;
  64. justify-content: space-between;
  65. align-items: center;
  66. }
  67. .left {
  68. flex: 1 auto;
  69. display: flex;
  70. align-items: flex-end;
  71. }
  72. .currentPrice {
  73. font-weight: bold;
  74. color: #FF5000;
  75. font-family: DINAlternate, DINAlternate;
  76. .stuff {
  77. font-size: 36rpx;
  78. }
  79. .priceZ {
  80. font-size: 60rpx;
  81. }
  82. .priceF {
  83. font-size: 36rpx;
  84. }
  85. }
  86. .originPrice {
  87. padding-left: 16rpx;
  88. font-size: 32rpx;
  89. color: #AAAAAA;
  90. line-height: 44rpx;
  91. text-decoration: line-through;
  92. padding-bottom: 12rpx;
  93. }
  94. .right {
  95. padding-top: 14rpx;
  96. font-weight: 400;
  97. font-size: 28rpx;
  98. color: #FF5000;
  99. line-height: 40rpx;
  100. }
  101. }
  102. .shopName {
  103. font-weight: 600;
  104. font-size: 32rpx;
  105. color: #131415;
  106. line-height: 44rpx;
  107. padding: 24rpx 0 10rpx;
  108. }
  109. .goodsInfo {
  110. display: flex;
  111. // align-items: center;
  112. .desc {
  113. font-size: 28rpx;
  114. color: #131415;
  115. line-height: 68rpx;
  116. margin: 24rpx 0;
  117. flex-shrink: 0;
  118. }
  119. .goodsList {
  120. display: flex;
  121. align-items: center;
  122. flex-wrap: nowrap;
  123. overflow-x: auto;
  124. overflow-y: hidden;
  125. &::-webkit-scrollbar {
  126. display: none;
  127. }
  128. }
  129. .goodsItem {
  130. line-height: 68rpx;
  131. background: #F6F5F5;
  132. border-radius: 8rpx;
  133. font-size: 28rpx;
  134. color: #131415;
  135. position: relative;
  136. margin-top: 30rpx;
  137. margin-right: 30rpx;
  138. display: flex;
  139. flex-direction: column;
  140. border: 4rpx solid #F4F4F4;
  141. &.selected {
  142. background: #FFEEE6;
  143. color: #FF5000;
  144. border: 4rpx solid #FF5000;
  145. border-radius: 12rpx;
  146. }
  147. &.nosale {
  148. background: #F6F5F5;
  149. color: #B3B3B3;
  150. .goods-cover, .name {
  151. opacity: 0.6;
  152. }
  153. }
  154. .name {
  155. padding-left: 8rpx;
  156. }
  157. .goods-cover {
  158. width: 124rpx;
  159. height: 124rpx;
  160. border-radius: 8rpx 8rpx 0 0;
  161. }
  162. .iconSale {
  163. position: absolute;
  164. top: -14rpx;
  165. right: -14rpx;
  166. width: 56rpx;
  167. height: 28rpx;
  168. display: block;
  169. z-index: 1;
  170. }
  171. }
  172. }
  173. .goodsSection {
  174. // margin-bottom: 156rpx;
  175. padding-bottom: 160rpx;
  176. }
  177. .goodsIntro {
  178. background: #FFFFFF;
  179. // border-radius: 20rpx;
  180. overflow: hidden;
  181. // margin: 16rpx 0 0;
  182. .title {
  183. font-weight: 600;
  184. font-size: 32rpx;
  185. color: #131415;
  186. line-height: 44rpx;
  187. padding: 28rpx 24rpx;
  188. display: flex;
  189. align-items: center;
  190. justify-content: center;
  191. .before, .after {
  192. content: '';
  193. width: 68rpx;
  194. height: 2rpx;
  195. border-radius: 2rpx;
  196. opacity: 0.3;
  197. display: inline-block;
  198. }
  199. .before {
  200. background: linear-gradient( 90deg, rgba(0,0,0,0) 0%, #000000 100%);
  201. margin-right: 24rpx;
  202. }
  203. .after {
  204. background: linear-gradient( 270deg, rgba(0,0,0,0) 0%, #000000 100%);
  205. margin-left: 24rpx;
  206. }
  207. }
  208. .quick-btn {
  209. padding: 0 20rpx 30rpx;
  210. font-size: 28rpx;
  211. color: #999999;
  212. line-height: 40rpx;
  213. display: flex;
  214. view {
  215. padding: 8rpx 24rpx;
  216. margin-right: 12rpx;
  217. }
  218. .active {
  219. background: #FFDF9E;
  220. border-radius: 28rpx;
  221. font-weight: 600;
  222. color: #131415;
  223. }
  224. }
  225. .images {
  226. font-size: 0;
  227. image {
  228. display: block;
  229. width: 100%;
  230. }
  231. }
  232. }
  233. .orders {
  234. display: flex;
  235. flex-direction: column;
  236. position: fixed;
  237. right: 12rpx;
  238. bottom: 202rpx;
  239. image {
  240. width: 112rpx;
  241. height: 118rpx;
  242. }
  243. // text {
  244. // font-weight: 500;
  245. // font-size: 22rpx;
  246. // color: #131415;
  247. // line-height: 32rpx;
  248. // text-align: center;
  249. // }
  250. }
  251. .bottom-section {
  252. position: fixed;
  253. bottom: 0;
  254. left: 0;
  255. width: 100%;
  256. background-color: #FFFFFF;
  257. box-shadow: inset 0rpx 2rpx 0rpx 0rpx #F0F0F0;
  258. padding: 20rpx 32rpx 58rpx 32rpx;
  259. display: flex;
  260. align-items: center;
  261. box-sizing: border-box;
  262. .orders {
  263. display: flex;
  264. flex-direction: column;
  265. margin-right: 40rpx;
  266. image {
  267. width: 48rpx;
  268. height: 48rpx;
  269. }
  270. text {
  271. font-weight: 500;
  272. font-size: 22rpx;
  273. color: #131415;
  274. line-height: 32rpx;
  275. text-align: center;
  276. }
  277. }
  278. .btnSection {
  279. flex: 1 auto;
  280. display: flex;
  281. button {
  282. width: 100%;
  283. line-height: 88rpx;
  284. background: linear-gradient( 315deg, #FF4A00 0%, #FE8C00 100%);
  285. border-radius: 16rpx;
  286. font-weight: 500;
  287. font-size: 32rpx;
  288. color: #FFFFFF;
  289. padding-top: 0;
  290. padding-bottom: 0;
  291. &[disabled][type=primary] {
  292. opacity: 0.7;
  293. }
  294. &:first-child {
  295. background: linear-gradient( 135deg, #FF9800 0%, #FFB300 100%);
  296. border-radius: 16rpx 0rpx 0rpx 16rpx;
  297. }
  298. &:last-child {
  299. background: linear-gradient( 315deg, #FF4A00 0%, #FE8C00 100%);
  300. border-radius: 0rpx 16rpx 16rpx 0rpx;
  301. }
  302. }
  303. }
  304. }
  305. .hide {
  306. display: none !important;
  307. }
  308. // 'demo-text-1', 'demo-text-2', 'demo-text-3'
  309. .popup-section {
  310. &.hidden {
  311. display: none;
  312. }
  313. .popup-mask {
  314. position: fixed;
  315. top: 0;
  316. left: 0;
  317. right: 0;
  318. bottom: 0;
  319. background-color: rgba(0,0,0,0.6);
  320. z-index: 9;
  321. }
  322. .popup-container {
  323. position: fixed;
  324. bottom: 0;
  325. left: 0;
  326. right: 0;
  327. z-index: 10;
  328. width: 100%;
  329. background: #FFFFFF;
  330. border-radius: 32rpx 32rpx 0rpx 0rpx;
  331. padding: 40rpx 0 58rpx;
  332. box-sizing: border-box;
  333. .goodsInfo {
  334. .desc {
  335. padding-bottom: 0;
  336. margin-left: 0;
  337. margin-bottom: 0;
  338. font-size: 32rpx;
  339. font-weight: 600;
  340. }
  341. .goodsList {
  342. max-height: 500rpx;
  343. padding: 0 32rpx;
  344. flex-wrap: wrap;
  345. overflow-x: hidden;
  346. overflow-y: auto;
  347. &::-webkit-scrollbar {
  348. display: none;
  349. }
  350. }
  351. .goodsItem {
  352. margin-right: 18rpx;
  353. .goods-cover {
  354. width: 208rpx;
  355. height: 208rpx;
  356. }
  357. &:nth-child(3n + 3) {
  358. margin-right: 0;
  359. }
  360. }
  361. }
  362. }
  363. .iconClose {
  364. position: absolute;
  365. right: 32rpx;
  366. top: 40rpx;
  367. width: 30rpx;
  368. height: 30rpx;
  369. }
  370. .product-section {
  371. display: flex;
  372. // padding-bottom: 60rpx;
  373. padding: 0 32rpx 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. flex-direction: column;
  389. .price-s {
  390. display: flex;
  391. align-items: flex-start;
  392. }
  393. .current-s {
  394. font-size: 28rpx;
  395. color: #131415;
  396. line-height: 40rpx;
  397. padding-top: 20rpx;
  398. text {
  399. color: #FF5000;
  400. }
  401. }
  402. .currentPrice {
  403. font-weight: bold;
  404. color: #FF5000;
  405. font-family: DINAlternate, DINAlternate;
  406. .stuff {
  407. font-size: 36rpx;
  408. }
  409. .priceZ {
  410. font-size: 60rpx;
  411. }
  412. .priceF {
  413. font-size: 36rpx;
  414. }
  415. }
  416. .originPrice {
  417. padding-left: 16rpx;
  418. font-size: 32rpx;
  419. color: #AAAAAA;
  420. line-height: 44rpx;
  421. text-decoration: line-through;
  422. padding-top: 30rpx;
  423. }
  424. }
  425. }
  426. .goodsInfo {
  427. flex-direction: column;
  428. align-items: flex-start;
  429. padding-bottom: 90rpx;
  430. .desc {
  431. font-size: 28rpx;
  432. color: #131415;
  433. line-height: 40rpx;
  434. padding: 0 32rpx 30rpx;
  435. }
  436. }
  437. .btnSections {
  438. padding: 0 32rpx;
  439. }
  440. button {
  441. width: 100%;
  442. line-height: 88rpx;
  443. background: linear-gradient( 315deg, #FF4A00 0%, #FE8C00 100%);
  444. border-radius: 16rpx;
  445. font-weight: 500;
  446. font-size: 32rpx;
  447. color: #FFFFFF;
  448. padding-top: 0;
  449. padding-bottom: 0;
  450. }
  451. }
  452. .showMoreContainer {
  453. position: fixed;
  454. bottom: 0;
  455. width: 100%;
  456. left: 0;
  457. right: 0;
  458. height: 378rpx;
  459. background: linear-gradient( 180deg, rgba(255,255,255,0) 0%, #FFFFFF 100%);
  460. display: flex;
  461. justify-content: center;
  462. align-items: flex-end;
  463. pointer-events: none;
  464. .iconUpScroll {
  465. width: 80rpx;
  466. height: 80rpx;
  467. margin-bottom: 60rpx;
  468. animation: breathe 2s infinite cubic-bezier(0, 0.21, 0, 0.88);
  469. // transition: all cubic-bezier(0, 0.21, 0, 0.88);
  470. }
  471. @keyframes breathe {
  472. 0% {
  473. opacity: 1;
  474. transform: translateY(0rpx);
  475. }
  476. 75%{
  477. opacity: 1;
  478. }
  479. 100% {
  480. opacity: 0;
  481. transform: translateY(-50rpx);
  482. }
  483. }
  484. }