index.less 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461
  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;
  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: 1810rpx
  227. }
  228. .img3 {
  229. height: 1336rpx;
  230. }
  231. .img4 {
  232. height: 1750rpx;
  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. button {
  284. width: 100%;
  285. line-height: 88rpx;
  286. background: linear-gradient( 315deg, #FF4A00 0%, #FE8C00 100%);
  287. border-radius: 16rpx;
  288. font-weight: 500;
  289. font-size: 32rpx;
  290. color: #FFFFFF;
  291. padding-top: 0;
  292. padding-bottom: 0;
  293. &[disabled][type=primary] {
  294. opacity: 0.7;
  295. }
  296. }
  297. }
  298. }
  299. // 'demo-text-1', 'demo-text-2', 'demo-text-3'
  300. .popup-section {
  301. &.hidden {
  302. display: none;
  303. }
  304. .popup-mask {
  305. position: fixed;
  306. top: 0;
  307. left: 0;
  308. right: 0;
  309. bottom: 0;
  310. background-color: rgba(0,0,0,0.6);
  311. z-index: 9;
  312. }
  313. .popup-container {
  314. position: fixed;
  315. bottom: 0;
  316. left: 0;
  317. right: 0;
  318. z-index: 10;
  319. width: 100%;
  320. background: #FFFFFF;
  321. border-radius: 32rpx 32rpx 0rpx 0rpx;
  322. padding: 40rpx 32rpx 58rpx;
  323. box-sizing: border-box;
  324. .goodsInfo {
  325. .desc {
  326. padding-bottom: 0;
  327. margin-left: 0;
  328. margin-bottom: 0;
  329. font-size: 32rpx;
  330. font-weight: 600;
  331. }
  332. .goodsList {
  333. max-height: 500rpx;
  334. overflow-x: hidden;
  335. overflow-y: auto;
  336. &::-webkit-scrollbar {
  337. display: none;
  338. }
  339. }
  340. .goodsItem {
  341. margin-right: 26rpx;
  342. .goods-cover {
  343. width: 208rpx;
  344. height: 208rpx;
  345. }
  346. &:nth-child(3n + 3) {
  347. margin-right: 0;
  348. }
  349. }
  350. }
  351. }
  352. .iconClose {
  353. position: absolute;
  354. right: 32rpx;
  355. top: 42rpx;
  356. width: 38rpx;
  357. height: 38rpx;
  358. }
  359. .product-section {
  360. display: flex;
  361. padding-bottom: 60rpx;
  362. .product-img {
  363. width: 160rpx;
  364. height: 160rpx;
  365. flex-shrink: 0;
  366. margin-right: 32rpx;
  367. border-radius: 6px;
  368. overflow: hidden;
  369. image {
  370. width: 100%;
  371. height: 100%;
  372. }
  373. }
  374. .product-left {
  375. display: flex;
  376. flex-direction: column;
  377. .price-s {
  378. display: flex;
  379. align-items: flex-start;
  380. }
  381. .current-s {
  382. font-size: 28rpx;
  383. color: #131415;
  384. line-height: 40rpx;
  385. padding-top: 20rpx;
  386. text {
  387. color: #FF5000;
  388. }
  389. }
  390. .currentPrice {
  391. font-weight: bold;
  392. color: #FF5000;
  393. font-family: DINAlternate, DINAlternate;
  394. .stuff {
  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: 30rpx;
  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( 315deg, #FF4A00 0%, #FE8C00 100%);
  429. border-radius: 16rpx;
  430. font-weight: 500;
  431. font-size: 32rpx;
  432. color: #FFFFFF;
  433. padding-top: 0;
  434. padding-bottom: 0;
  435. }
  436. }