index.less 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  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: 674rpx;
  25. right: 32rpx;
  26. background: rgba(0,0,0,0.4);
  27. border-radius: 26rpx;
  28. border: 2rpx solid rgba(255,255,255,0.3);
  29. font-weight: 600;
  30. font-size: 28rpx;
  31. color: #FFFFFF;
  32. line-height: 40rpx;
  33. text-align: center;
  34. padding: 2rpx 26rpx;
  35. z-index: 1;
  36. }
  37. swiper {
  38. height: 750rpx;
  39. }
  40. .swiper-item {
  41. width: 100%;
  42. height: 100%;
  43. image {
  44. width: 100%;
  45. height: 100%;
  46. }
  47. }
  48. .demo-text-1 {
  49. background-color: red;
  50. }
  51. .demo-text-2 {
  52. background-color: black;
  53. }
  54. .demo-text-3 {
  55. background-color: gray;
  56. }
  57. }
  58. .shop-section {
  59. background: #FFFFFF;
  60. border-radius: 20rpx;
  61. margin: 16rpx 16rpx 0;
  62. padding: 24rpx;
  63. .showPrice {
  64. display: flex;
  65. justify-content: space-between;
  66. align-items: center;
  67. }
  68. .left {
  69. flex: 1 auto;
  70. display: flex;
  71. align-items: flex-end;
  72. }
  73. .currentPrice {
  74. font-weight: bold;
  75. color: #FE2451;
  76. font-family: DINAlternate, DINAlternate;
  77. .stuff {
  78. font-size: 36rpx;
  79. }
  80. .priceZ {
  81. font-size: 60rpx;
  82. }
  83. .priceF {
  84. font-size: 36rpx;
  85. }
  86. }
  87. .originPrice {
  88. padding-left: 16rpx;
  89. font-size: 32rpx;
  90. color: #AAAAAA;
  91. line-height: 44rpx;
  92. text-decoration: line-through;
  93. padding-bottom: 14rpx;
  94. }
  95. .right {
  96. padding-top: 14rpx;
  97. font-weight: 400;
  98. font-size: 28rpx;
  99. color: #777777;
  100. line-height: 40rpx;
  101. }
  102. }
  103. .shopName {
  104. font-weight: 600;
  105. font-size: 32rpx;
  106. color: #131415;
  107. line-height: 44rpx;
  108. padding: 24rpx 0 40rpx;
  109. }
  110. .goodsInfo {
  111. display: flex;
  112. align-items: center;
  113. .desc {
  114. font-size: 28rpx;
  115. color: #131415;
  116. line-height: 40rpx;
  117. }
  118. .goodsList {
  119. display: flex;
  120. align-items: center;
  121. }
  122. .goodsItem {
  123. line-height: 68rpx;
  124. background: #F4F4F5;
  125. border-radius: 12rpx;
  126. padding: 0 32rpx;
  127. margin-right: 24rpx;
  128. font-size: 28rpx;
  129. color: #131415;
  130. position: relative;
  131. &.selected {
  132. background: #FEEDF0;
  133. font-weight: 600;
  134. color: #FE2451;
  135. }
  136. &.nosale {
  137. background: #F4F4F5;
  138. color: #B1B1B1;
  139. }
  140. image {
  141. position: absolute;
  142. top: -14rpx;
  143. right: -14rpx;
  144. width: 56rpx;
  145. height: 28rpx;
  146. display: block;
  147. z-index: 1;
  148. }
  149. }
  150. }
  151. .goodsSection {
  152. // margin-bottom: 156rpx;
  153. padding-bottom: 174rpx;
  154. }
  155. .goodsIntro {
  156. background: #FFFFFF;
  157. border-radius: 20rpx;
  158. overflow: hidden;
  159. margin: 16rpx 16rpx 8rpx;
  160. .title {
  161. font-weight: 600;
  162. font-size: 32rpx;
  163. color: #131415;
  164. line-height: 44rpx;
  165. padding: 28rpx 24rpx;
  166. }
  167. .images {
  168. image {
  169. display: block;
  170. width: 100%;
  171. }
  172. .img1 {
  173. height: 1128rpx;
  174. }
  175. .img2 {
  176. height: 1810rpx
  177. }
  178. .img3 {
  179. height: 1336rpx;
  180. }
  181. .img4 {
  182. height: 1750rpx;
  183. }
  184. }
  185. }
  186. .bottom-section {
  187. position: fixed;
  188. bottom: 0;
  189. left: 0;
  190. width: 100%;
  191. background-color: #FFFFFF;
  192. box-shadow: inset 0rpx 2rpx 0rpx 0rpx #F0F0F0;
  193. padding: 20rpx 32rpx 58rpx 40rpx;
  194. display: flex;
  195. align-items: center;
  196. box-sizing: border-box;
  197. .orders {
  198. display: flex;
  199. flex-direction: column;
  200. image {
  201. width: 48rpx;
  202. height: 48rpx;
  203. }
  204. text {
  205. font-weight: 500;
  206. font-size: 22rpx;
  207. color: #131415;
  208. line-height: 32rpx;
  209. text-align: center;
  210. }
  211. }
  212. .btnSection {
  213. flex: 1 auto;
  214. padding-left: 40rpx;
  215. button {
  216. width: 100%;
  217. line-height: 88rpx;
  218. background: linear-gradient( 270deg, #FF204B 0%, #FE5B71 100%);
  219. border-radius: 44rpx;
  220. font-weight: 500;
  221. font-size: 32rpx;
  222. color: #FFFFFF;
  223. padding-top: 0;
  224. padding-bottom: 0;
  225. }
  226. }
  227. }
  228. // 'demo-text-1', 'demo-text-2', 'demo-text-3'
  229. .popup-section {
  230. &.hidden {
  231. display: none;
  232. }
  233. .popup-mask {
  234. position: fixed;
  235. top: 0;
  236. left: 0;
  237. right: 0;
  238. bottom: 0;
  239. background-color: rgba(0,0,0,0.6);
  240. z-index: 9;
  241. }
  242. .popup-container {
  243. position: fixed;
  244. bottom: 0;
  245. left: 0;
  246. right: 0;
  247. z-index: 10;
  248. width: 100%;
  249. background: #FFFFFF;
  250. border-radius: 32rpx 32rpx 0rpx 0rpx;
  251. padding: 40rpx 32rpx 58rpx;
  252. box-sizing: border-box;
  253. }
  254. .iconClose {
  255. position: absolute;
  256. right: 40rpx;
  257. top: 40rpx;
  258. width: 38rpx;
  259. height: 38rpx;
  260. }
  261. .product-section {
  262. display: flex;
  263. padding-bottom: 60rpx;
  264. .product-img {
  265. width: 160rpx;
  266. height: 160rpx;
  267. flex-shrink: 0;
  268. margin-right: 32rpx;
  269. image {
  270. width: 100%;
  271. height: 100%;
  272. }
  273. }
  274. .product-left {
  275. display: flex;
  276. align-items: flex-start;
  277. .currentPrice {
  278. font-weight: bold;
  279. color: #FE2451;
  280. font-family: DINAlternate, DINAlternate;
  281. .stuff {
  282. font-size: 36rpx;
  283. }
  284. .priceZ {
  285. font-size: 60rpx;
  286. }
  287. .priceF {
  288. font-size: 36rpx;
  289. }
  290. }
  291. .originPrice {
  292. padding-left: 16rpx;
  293. font-size: 32rpx;
  294. color: #AAAAAA;
  295. line-height: 44rpx;
  296. text-decoration: line-through;
  297. padding-top: 28rpx;
  298. }
  299. }
  300. }
  301. .goodsInfo {
  302. flex-direction: column;
  303. align-items: flex-start;
  304. padding-bottom: 90rpx;
  305. .desc {
  306. font-size: 28rpx;
  307. color: #131415;
  308. line-height: 40rpx;
  309. padding-bottom: 30rpx;
  310. }
  311. }
  312. button {
  313. width: 100%;
  314. line-height: 88rpx;
  315. background: linear-gradient( 270deg, #FF204B 0%, #FE5B71 100%);
  316. border-radius: 44rpx;
  317. font-weight: 500;
  318. font-size: 32rpx;
  319. color: #FFFFFF;
  320. padding-top: 0;
  321. padding-bottom: 0;
  322. }
  323. }