index.less 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. /* pages/select-goods/index.wxss */
  2. .container {
  3. position: relative;
  4. height: 100vh;
  5. width: 100%;
  6. background: #F5F6F7;
  7. }
  8. .top-bar {
  9. position: absolute;
  10. top: 0;
  11. left: 0;
  12. right: 0;
  13. height: 376rpx;
  14. background: linear-gradient(180deg, #FDEC00 0%, #FAD400 100%);
  15. width: 100%;
  16. }
  17. .goods-section {
  18. .popup-container {
  19. // position: fixed;
  20. // bottom: 0;
  21. // left: 0;
  22. // right: 0;
  23. // z-index: 10;
  24. width: 100%;
  25. background: #FFFFFF;
  26. border-radius: 32rpx 32rpx 0rpx 0rpx;
  27. // padding: 40rpx 0 0;
  28. box-sizing: border-box;
  29. // flex: 1;
  30. max-height: 86vh;
  31. .popup-scroll {
  32. overflow-x: hidden;
  33. overflow-y: scroll;
  34. border-radius: 32rpx 32rpx 0rpx 0rpx;
  35. flex: 1 auto;
  36. }
  37. .top-vip-img {
  38. width: 100%;
  39. }
  40. .goodsInfo {
  41. padding: 0 40rpx 48rpx;
  42. }
  43. }
  44. .product-section {
  45. display: flex;
  46. padding-bottom: 60rpx;
  47. .product-img {
  48. width: 160rpx;
  49. height: 160rpx;
  50. flex-shrink: 0;
  51. margin-right: 32rpx;
  52. border-radius: 6px;
  53. overflow: hidden;
  54. image {
  55. width: 100%;
  56. height: 100%;
  57. }
  58. }
  59. .product-left {
  60. display: flex;
  61. align-items: flex-start;
  62. .currentPrice {
  63. font-weight: bold;
  64. color: #FE2451;
  65. font-family: DINAlternate, DINAlternate;
  66. .stuff {
  67. padding-right: 2rpx;
  68. font-size: 36rpx;
  69. }
  70. .priceZ {
  71. font-size: 60rpx;
  72. }
  73. .priceF {
  74. font-size: 36rpx;
  75. }
  76. }
  77. .originPrice {
  78. padding-left: 16rpx;
  79. font-size: 32rpx;
  80. color: #AAAAAA;
  81. line-height: 44rpx;
  82. text-decoration: line-through;
  83. padding-top: 32rpx;
  84. }
  85. }
  86. }
  87. .goodsInfo {
  88. flex-direction: column;
  89. align-items: flex-start;
  90. padding-bottom: 90rpx;
  91. .desc {
  92. font-weight: 600;
  93. font-size: 30rpx;
  94. color: #000000;
  95. line-height: 40rpx;
  96. display: flex;
  97. align-items: center;
  98. .iconBefore {
  99. width: 18rpx;
  100. height: 28rpx;
  101. margin-right: 8rpx;
  102. }
  103. text {
  104. padding-left: 8rpx;
  105. font-size: 28rpx;
  106. color: #AAAAAA;
  107. line-height: 40rpx;
  108. }
  109. }
  110. .goodsList {
  111. display: flex;
  112. align-items: center;
  113. flex-wrap: wrap;
  114. }
  115. .goodsItem {
  116. background: rgba(255, 255, 255, 0.7);
  117. border-radius: 12rpx;
  118. border: 4rpx solid rgba(255, 255, 255, 0.7);
  119. padding: 10rpx;
  120. margin-right: 16rpx;
  121. font-weight: 600;
  122. font-size: 24rpx;
  123. color: #131415;
  124. position: relative;
  125. margin-top: 24rpx;
  126. display: flex;
  127. align-items: center;
  128. &.selected {
  129. border: 4rpx solid #FE4600;
  130. }
  131. &.nosale {
  132. background: #F4F4F5;
  133. color: #B1B1B1;
  134. }
  135. .goodImg {
  136. flex-shrink: 1;
  137. width: 64rpx;
  138. height: 64rpx;
  139. margin-right: 10rpx;
  140. }
  141. .infos {
  142. .name {
  143. line-height: 28rpx;
  144. }
  145. .price {
  146. font-family: DINAlternate, DINAlternate;
  147. font-weight: bold;
  148. font-size: 24rpx;
  149. color: #FE4600;
  150. }
  151. }
  152. .nosale {
  153. position: absolute;
  154. top: -20rpx;
  155. right: -16rpx;
  156. width: 56rpx;
  157. height: 28rpx;
  158. display: block;
  159. z-index: 1;
  160. }
  161. }
  162. }
  163. button {
  164. width: 100%;
  165. line-height: 88rpx;
  166. background: linear-gradient(270deg, #FF204B 0%, #FE5B71 100%);
  167. border-radius: 44rpx;
  168. font-weight: 500;
  169. font-size: 32rpx;
  170. color: #FFFFFF;
  171. padding-top: 0;
  172. padding-bottom: 0;
  173. }
  174. }