index.less 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474
  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. // 'demo-text-1', 'demo-text-2', 'demo-text-3'
  306. .popup-section {
  307. &.hidden {
  308. display: none;
  309. }
  310. .popup-mask {
  311. position: fixed;
  312. top: 0;
  313. left: 0;
  314. right: 0;
  315. bottom: 0;
  316. background-color: rgba(0,0,0,0.6);
  317. z-index: 9;
  318. }
  319. .popup-container {
  320. position: fixed;
  321. bottom: 0;
  322. left: 0;
  323. right: 0;
  324. z-index: 10;
  325. width: 100%;
  326. background: #FFFFFF;
  327. border-radius: 32rpx 32rpx 0rpx 0rpx;
  328. padding: 40rpx 0 58rpx;
  329. box-sizing: border-box;
  330. .goodsInfo {
  331. .desc {
  332. padding-bottom: 0;
  333. margin-left: 0;
  334. margin-bottom: 0;
  335. font-size: 32rpx;
  336. font-weight: 600;
  337. }
  338. .goodsList {
  339. max-height: 500rpx;
  340. padding: 0 32rpx;
  341. flex-wrap: wrap;
  342. overflow-x: hidden;
  343. overflow-y: auto;
  344. &::-webkit-scrollbar {
  345. display: none;
  346. }
  347. }
  348. .goodsItem {
  349. margin-right: 18rpx;
  350. .goods-cover {
  351. width: 208rpx;
  352. height: 208rpx;
  353. }
  354. &:nth-child(3n + 3) {
  355. margin-right: 0;
  356. }
  357. }
  358. }
  359. }
  360. .iconClose {
  361. position: absolute;
  362. right: 32rpx;
  363. top: 40rpx;
  364. width: 30rpx;
  365. height: 30rpx;
  366. }
  367. .product-section {
  368. display: flex;
  369. // padding-bottom: 60rpx;
  370. padding: 0 32rpx 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: 0 32rpx 30rpx;
  432. }
  433. }
  434. .btnSections {
  435. padding: 0 32rpx;
  436. }
  437. button {
  438. width: 100%;
  439. line-height: 88rpx;
  440. background: linear-gradient( 315deg, #FF4A00 0%, #FE8C00 100%);
  441. border-radius: 16rpx;
  442. font-weight: 500;
  443. font-size: 32rpx;
  444. color: #FFFFFF;
  445. padding-top: 0;
  446. padding-bottom: 0;
  447. }
  448. }