index.less 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471
  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 16rpx;
  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: wrap;
  123. }
  124. .goodsItem {
  125. line-height: 68rpx;
  126. background: #F6F5F5;
  127. border-radius: 8rpx;
  128. font-size: 28rpx;
  129. color: #131415;
  130. position: relative;
  131. margin-top: 30rpx;
  132. margin-right: 30rpx;
  133. display: flex;
  134. flex-direction: column;
  135. border: 2rpx solid #F4F4F4;
  136. &.selected {
  137. background: #FFEEE6;
  138. color: #FF5000;
  139. border: 2rpx solid #FF5000;
  140. }
  141. &.nosale {
  142. // background: #F4F4F5;
  143. color: #B3B3B3;
  144. opacity: 0.6;
  145. }
  146. .name {
  147. padding-left: 8rpx;
  148. }
  149. .goods-cover {
  150. width: 124rpx;
  151. height: 124rpx;
  152. border-radius: 8rpx 8rpx 0 0;
  153. }
  154. .iconSale {
  155. position: absolute;
  156. top: -14rpx;
  157. right: -14rpx;
  158. width: 56rpx;
  159. height: 28rpx;
  160. display: block;
  161. z-index: 1;
  162. }
  163. }
  164. }
  165. .goodsSection {
  166. // margin-bottom: 156rpx;
  167. padding-bottom: 160rpx;
  168. }
  169. .goodsIntro {
  170. background: #FFFFFF;
  171. // border-radius: 20rpx;
  172. overflow: hidden;
  173. margin: 16rpx 0 0;
  174. .title {
  175. font-weight: 600;
  176. font-size: 32rpx;
  177. color: #131415;
  178. line-height: 44rpx;
  179. padding: 28rpx 24rpx;
  180. display: flex;
  181. align-items: center;
  182. justify-content: center;
  183. .before, .after {
  184. content: '';
  185. width: 68rpx;
  186. height: 2rpx;
  187. border-radius: 2rpx;
  188. opacity: 0.3;
  189. display: inline-block;
  190. }
  191. .before {
  192. background: linear-gradient( 90deg, rgba(0,0,0,0) 0%, #000000 100%);
  193. margin-right: 24rpx;
  194. }
  195. .after {
  196. background: linear-gradient( 270deg, rgba(0,0,0,0) 0%, #000000 100%);
  197. margin-left: 24rpx;
  198. }
  199. }
  200. .quick-btn {
  201. padding: 0 20rpx 30rpx;
  202. font-size: 28rpx;
  203. color: #999999;
  204. line-height: 40rpx;
  205. display: flex;
  206. view {
  207. padding: 8rpx 24rpx;
  208. margin-right: 12rpx;
  209. }
  210. .active {
  211. background: #FFDF9E;
  212. border-radius: 28rpx;
  213. font-weight: 600;
  214. color: #131415;
  215. }
  216. }
  217. .images {
  218. image {
  219. display: block;
  220. width: 100%;
  221. }
  222. .img1 {
  223. height: 1128rpx;
  224. }
  225. .img2 {
  226. height: 1462rpx
  227. }
  228. .img3 {
  229. height: 2126rpx;
  230. }
  231. .img4 {
  232. height: 968rpx;
  233. }
  234. }
  235. }
  236. .orders {
  237. display: flex;
  238. flex-direction: column;
  239. position: fixed;
  240. right: 12rpx;
  241. bottom: 202rpx;
  242. image {
  243. width: 112rpx;
  244. height: 118rpx;
  245. }
  246. // text {
  247. // font-weight: 500;
  248. // font-size: 22rpx;
  249. // color: #131415;
  250. // line-height: 32rpx;
  251. // text-align: center;
  252. // }
  253. }
  254. .bottom-section {
  255. position: fixed;
  256. bottom: 0;
  257. left: 0;
  258. width: 100%;
  259. background-color: #FFFFFF;
  260. box-shadow: inset 0rpx 2rpx 0rpx 0rpx #F0F0F0;
  261. padding: 20rpx 32rpx 58rpx 32rpx;
  262. display: flex;
  263. align-items: center;
  264. box-sizing: border-box;
  265. .orders {
  266. display: flex;
  267. flex-direction: column;
  268. margin-right: 40rpx;
  269. image {
  270. width: 48rpx;
  271. height: 48rpx;
  272. }
  273. text {
  274. font-weight: 500;
  275. font-size: 22rpx;
  276. color: #131415;
  277. line-height: 32rpx;
  278. text-align: center;
  279. }
  280. }
  281. .btnSection {
  282. flex: 1 auto;
  283. display: flex;
  284. button {
  285. width: 100%;
  286. line-height: 88rpx;
  287. background: linear-gradient( 315deg, #FF4A00 0%, #FE8C00 100%);
  288. border-radius: 16rpx;
  289. font-weight: 500;
  290. font-size: 32rpx;
  291. color: #FFFFFF;
  292. padding-top: 0;
  293. padding-bottom: 0;
  294. &[disabled][type=primary] {
  295. opacity: 0.7;
  296. }
  297. &:first-child {
  298. background: linear-gradient( 135deg, #FF9800 0%, #FFB300 100%);
  299. border-radius: 16rpx 0rpx 0rpx 16rpx;
  300. }
  301. &:last-child {
  302. background: linear-gradient( 315deg, #FF4A00 0%, #FE8C00 100%);
  303. border-radius: 0rpx 16rpx 16rpx 0rpx;
  304. }
  305. }
  306. }
  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 32rpx 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. overflow-x: hidden;
  344. overflow-y: auto;
  345. &::-webkit-scrollbar {
  346. display: none;
  347. }
  348. }
  349. .goodsItem {
  350. margin-right: 24rpx;
  351. .goods-cover {
  352. width: 208rpx;
  353. height: 208rpx;
  354. }
  355. &:nth-child(3n + 3) {
  356. margin-right: 0;
  357. }
  358. }
  359. }
  360. }
  361. .iconClose {
  362. position: absolute;
  363. right: 32rpx;
  364. top: 42rpx;
  365. width: 38rpx;
  366. height: 38rpx;
  367. }
  368. .product-section {
  369. display: flex;
  370. padding-bottom: 60rpx;
  371. .product-img {
  372. width: 160rpx;
  373. height: 160rpx;
  374. flex-shrink: 0;
  375. margin-right: 32rpx;
  376. border-radius: 6px;
  377. overflow: hidden;
  378. image {
  379. width: 100%;
  380. height: 100%;
  381. }
  382. }
  383. .product-left {
  384. display: flex;
  385. flex-direction: column;
  386. .price-s {
  387. display: flex;
  388. align-items: flex-start;
  389. }
  390. .current-s {
  391. font-size: 28rpx;
  392. color: #131415;
  393. line-height: 40rpx;
  394. padding-top: 20rpx;
  395. text {
  396. color: #FF5000;
  397. }
  398. }
  399. .currentPrice {
  400. font-weight: bold;
  401. color: #FF5000;
  402. font-family: DINAlternate, DINAlternate;
  403. .stuff {
  404. font-size: 36rpx;
  405. }
  406. .priceZ {
  407. font-size: 60rpx;
  408. }
  409. .priceF {
  410. font-size: 36rpx;
  411. }
  412. }
  413. .originPrice {
  414. padding-left: 16rpx;
  415. font-size: 32rpx;
  416. color: #AAAAAA;
  417. line-height: 44rpx;
  418. text-decoration: line-through;
  419. padding-top: 30rpx;
  420. }
  421. }
  422. }
  423. .goodsInfo {
  424. flex-direction: column;
  425. align-items: flex-start;
  426. padding-bottom: 90rpx;
  427. .desc {
  428. font-size: 28rpx;
  429. color: #131415;
  430. line-height: 40rpx;
  431. padding-bottom: 30rpx;
  432. }
  433. }
  434. button {
  435. width: 100%;
  436. line-height: 88rpx;
  437. background: linear-gradient( 315deg, #FF4A00 0%, #FE8C00 100%);
  438. border-radius: 16rpx;
  439. font-weight: 500;
  440. font-size: 32rpx;
  441. color: #FFFFFF;
  442. padding-top: 0;
  443. padding-bottom: 0;
  444. }
  445. }