index.less 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  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: 12rpx;
  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 16rpx;
  109. }
  110. .goodsInfo {
  111. display: flex;
  112. // align-items: center;
  113. .desc {
  114. font-size: 28rpx;
  115. color: #131415;
  116. line-height: 68rpx;
  117. margin: 24rpx 0 0;
  118. flex-shrink: 0;
  119. }
  120. .goodsList {
  121. display: flex;
  122. align-items: center;
  123. flex-wrap: wrap;
  124. }
  125. .goodsItem {
  126. line-height: 68rpx;
  127. background: #F4F4F5;
  128. border-radius: 12rpx;
  129. padding: 0 32rpx;
  130. margin-right: 24rpx;
  131. font-size: 28rpx;
  132. color: #131415;
  133. position: relative;
  134. margin-top: 24rpx;
  135. &.selected {
  136. background: #FEEDF0;
  137. font-weight: 600;
  138. color: #FE2451;
  139. }
  140. &.nosale {
  141. background: #F4F4F5;
  142. color: #B1B1B1;
  143. }
  144. image {
  145. position: absolute;
  146. top: -14rpx;
  147. right: -14rpx;
  148. width: 56rpx;
  149. height: 28rpx;
  150. display: block;
  151. z-index: 1;
  152. }
  153. }
  154. }
  155. .goodsSection {
  156. // margin-bottom: 156rpx;
  157. padding-bottom: 174rpx;
  158. }
  159. .goodsIntro {
  160. background: #FFFFFF;
  161. border-radius: 20rpx;
  162. overflow: hidden;
  163. margin: 16rpx 16rpx 8rpx;
  164. .title {
  165. font-weight: 600;
  166. font-size: 32rpx;
  167. color: #131415;
  168. line-height: 44rpx;
  169. padding: 28rpx 24rpx;
  170. }
  171. .images {
  172. image {
  173. display: block;
  174. width: 100%;
  175. }
  176. .img1 {
  177. height: 1128rpx;
  178. }
  179. .img2 {
  180. height: 1810rpx
  181. }
  182. .img3 {
  183. height: 1336rpx;
  184. }
  185. .img4 {
  186. height: 1750rpx;
  187. }
  188. }
  189. }
  190. .bottom-section {
  191. position: fixed;
  192. bottom: 0;
  193. left: 0;
  194. width: 100%;
  195. background-color: #FFFFFF;
  196. box-shadow: inset 0rpx 2rpx 0rpx 0rpx #F0F0F0;
  197. padding: 20rpx 32rpx 58rpx 32rpx;
  198. display: flex;
  199. align-items: center;
  200. box-sizing: border-box;
  201. .orders {
  202. display: flex;
  203. flex-direction: column;
  204. margin-right: 40rpx;
  205. image {
  206. width: 48rpx;
  207. height: 48rpx;
  208. }
  209. text {
  210. font-weight: 500;
  211. font-size: 22rpx;
  212. color: #131415;
  213. line-height: 32rpx;
  214. text-align: center;
  215. }
  216. }
  217. .btnSection {
  218. flex: 1 auto;
  219. button {
  220. width: 100%;
  221. line-height: 88rpx;
  222. background: linear-gradient( 270deg, #FF204B 0%, #FE5B71 100%);
  223. border-radius: 44rpx;
  224. font-weight: 500;
  225. font-size: 32rpx;
  226. color: #FFFFFF;
  227. padding-top: 0;
  228. padding-bottom: 0;
  229. &[disabled][type=primary] {
  230. opacity: 0.7;
  231. }
  232. }
  233. }
  234. }
  235. // 'demo-text-1', 'demo-text-2', 'demo-text-3'
  236. .popup-section {
  237. &.hidden {
  238. display: none;
  239. }
  240. .popup-mask {
  241. position: fixed;
  242. top: 0;
  243. left: 0;
  244. right: 0;
  245. bottom: 0;
  246. background-color: rgba(0,0,0,0.6);
  247. z-index: 9;
  248. }
  249. .popup-container {
  250. position: fixed;
  251. bottom: 0;
  252. left: 0;
  253. right: 0;
  254. z-index: 10;
  255. width: 100%;
  256. background: #FFFFFF;
  257. border-radius: 32rpx 32rpx 0rpx 0rpx;
  258. padding: 40rpx 32rpx 58rpx;
  259. box-sizing: border-box;
  260. .goodsInfo {
  261. .desc {
  262. padding-bottom: 0;
  263. margin-bottom: 0;
  264. }
  265. }
  266. }
  267. .iconClose {
  268. position: absolute;
  269. right: 40rpx;
  270. top: 40rpx;
  271. width: 38rpx;
  272. height: 38rpx;
  273. }
  274. .product-section {
  275. display: flex;
  276. padding-bottom: 60rpx;
  277. .product-img {
  278. width: 160rpx;
  279. height: 160rpx;
  280. flex-shrink: 0;
  281. margin-right: 32rpx;
  282. border-radius: 6px;
  283. overflow: hidden;
  284. image {
  285. width: 100%;
  286. height: 100%;
  287. }
  288. }
  289. .product-left {
  290. display: flex;
  291. align-items: flex-start;
  292. .currentPrice {
  293. font-weight: bold;
  294. color: #FE2451;
  295. font-family: DINAlternate, DINAlternate;
  296. .stuff {
  297. font-size: 36rpx;
  298. }
  299. .priceZ {
  300. font-size: 60rpx;
  301. }
  302. .priceF {
  303. font-size: 36rpx;
  304. }
  305. }
  306. .originPrice {
  307. padding-left: 16rpx;
  308. font-size: 32rpx;
  309. color: #AAAAAA;
  310. line-height: 44rpx;
  311. text-decoration: line-through;
  312. padding-top: 30rpx;
  313. }
  314. }
  315. }
  316. .goodsInfo {
  317. flex-direction: column;
  318. align-items: flex-start;
  319. padding-bottom: 90rpx;
  320. .desc {
  321. font-size: 28rpx;
  322. color: #131415;
  323. line-height: 40rpx;
  324. padding-bottom: 30rpx;
  325. }
  326. }
  327. button {
  328. width: 100%;
  329. line-height: 88rpx;
  330. background: linear-gradient( 270deg, #FF204B 0%, #FE5B71 100%);
  331. border-radius: 44rpx;
  332. font-weight: 500;
  333. font-size: 32rpx;
  334. color: #FFFFFF;
  335. padding-top: 0;
  336. padding-bottom: 0;
  337. }
  338. }