index.less 6.3 KB

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