index.less 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446
  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;
  262. display: flex;
  263. align-items: center;
  264. box-sizing: border-box;
  265. .btnSection {
  266. flex: 1 auto;
  267. button {
  268. width: 100%;
  269. line-height: 88rpx;
  270. background: linear-gradient( 315deg, #FF4A00 0%, #FE8C00 100%);
  271. border-radius: 16rpx;
  272. font-weight: 500;
  273. font-size: 32rpx;
  274. color: #FFFFFF;
  275. padding-top: 0;
  276. padding-bottom: 0;
  277. &[disabled][type=primary] {
  278. opacity: 0.7;
  279. }
  280. }
  281. }
  282. }
  283. // 'demo-text-1', 'demo-text-2', 'demo-text-3'
  284. .popup-section {
  285. &.hidden {
  286. display: none;
  287. }
  288. .popup-mask {
  289. position: fixed;
  290. top: 0;
  291. left: 0;
  292. right: 0;
  293. bottom: 0;
  294. background-color: rgba(0,0,0,0.6);
  295. z-index: 9;
  296. }
  297. .popup-container {
  298. position: fixed;
  299. bottom: 0;
  300. left: 0;
  301. right: 0;
  302. z-index: 10;
  303. width: 100%;
  304. background: #FFFFFF;
  305. border-radius: 32rpx 32rpx 0rpx 0rpx;
  306. padding: 40rpx 32rpx 58rpx;
  307. box-sizing: border-box;
  308. .goodsInfo {
  309. .desc {
  310. padding-bottom: 0;
  311. margin-left: 0;
  312. margin-bottom: 0;
  313. font-size: 32rpx;
  314. font-weight: 600;
  315. }
  316. .goodsList {
  317. max-height: 500rpx;
  318. overflow-x: hidden;
  319. overflow-y: auto;
  320. &::-webkit-scrollbar {
  321. display: none;
  322. }
  323. }
  324. .goodsItem {
  325. margin-right: 26rpx;
  326. .goods-cover {
  327. width: 208rpx;
  328. height: 208rpx;
  329. }
  330. &:nth-child(3n + 3) {
  331. margin-right: 0;
  332. }
  333. }
  334. }
  335. }
  336. .iconClose {
  337. position: absolute;
  338. right: 32rpx;
  339. top: 42rpx;
  340. width: 38rpx;
  341. height: 38rpx;
  342. }
  343. .product-section {
  344. display: flex;
  345. padding-bottom: 60rpx;
  346. .product-img {
  347. width: 160rpx;
  348. height: 160rpx;
  349. flex-shrink: 0;
  350. margin-right: 32rpx;
  351. border-radius: 6px;
  352. overflow: hidden;
  353. image {
  354. width: 100%;
  355. height: 100%;
  356. }
  357. }
  358. .product-left {
  359. display: flex;
  360. flex-direction: column;
  361. .price-s {
  362. display: flex;
  363. align-items: flex-start;
  364. }
  365. .current-s {
  366. font-size: 28rpx;
  367. color: #131415;
  368. line-height: 40rpx;
  369. padding-top: 20rpx;
  370. text {
  371. color: #FF5000;
  372. }
  373. }
  374. .currentPrice {
  375. font-weight: bold;
  376. color: #FF5000;
  377. font-family: DINAlternate, DINAlternate;
  378. .stuff {
  379. font-size: 36rpx;
  380. }
  381. .priceZ {
  382. font-size: 60rpx;
  383. }
  384. .priceF {
  385. font-size: 36rpx;
  386. }
  387. }
  388. .originPrice {
  389. padding-left: 16rpx;
  390. font-size: 32rpx;
  391. color: #AAAAAA;
  392. line-height: 44rpx;
  393. text-decoration: line-through;
  394. padding-top: 30rpx;
  395. }
  396. }
  397. }
  398. .goodsInfo {
  399. flex-direction: column;
  400. align-items: flex-start;
  401. padding-bottom: 90rpx;
  402. .desc {
  403. font-size: 28rpx;
  404. color: #131415;
  405. line-height: 40rpx;
  406. padding-bottom: 30rpx;
  407. }
  408. }
  409. button {
  410. width: 100%;
  411. line-height: 88rpx;
  412. background: linear-gradient( 315deg, #FF4A00 0%, #FE8C00 100%);
  413. border-radius: 16rpx;
  414. font-weight: 500;
  415. font-size: 32rpx;
  416. color: #FFFFFF;
  417. padding-top: 0;
  418. padding-bottom: 0;
  419. }
  420. }