index.less 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  1. /* pages/select-goods/index.wxss */
  2. .container {
  3. position: relative;
  4. height: 100vh;
  5. width: 100%;
  6. background: #F5F6F7;
  7. display: flex;
  8. flex-direction: column;
  9. }
  10. .top-bar {
  11. position: absolute;
  12. top: 0;
  13. left: 0;
  14. right: 0;
  15. height: 376rpx;
  16. background: linear-gradient(180deg, #FDEC00 0%, #FAD400 100%);
  17. width: 100%;
  18. }
  19. .section-block {
  20. position: relative;
  21. z-index: 1;
  22. background: #FFFFFF;
  23. border-radius: 32rpx 32rpx 0rpx 0rpx;
  24. margin-top: 100rpx;
  25. flex: 1 auto;
  26. display: flex;
  27. flex-direction: column;
  28. }
  29. .select-good-section {
  30. display: flex;
  31. // align-items: center;
  32. margin-top: -100rpx;
  33. .select-good-img {
  34. width: 222rpx;
  35. height: 222rpx;
  36. padding-left: 10rpx;
  37. image {
  38. width: 100%;
  39. height: 100%;
  40. }
  41. }
  42. .good-info {
  43. position: relative;
  44. flex: 1;
  45. .img_back {
  46. position: absolute;
  47. bottom: 42rpx;
  48. right: 4rpx;
  49. padding: 20rpx;
  50. width: 32rpx;
  51. height: 20rpx;
  52. }
  53. }
  54. .good-name {
  55. white-space: nowrap;
  56. overflow: hidden;
  57. text-overflow: ellipsis;
  58. width: 400rpx;
  59. font-weight: 600;
  60. font-size: 32rpx;
  61. color: #000000;
  62. line-height: 44rpx;
  63. padding-top: 42rpx;
  64. }
  65. .good-price {
  66. display: flex;
  67. align-items: flex-end;
  68. // line-height: 70rpx;
  69. padding-top: 36rpx;
  70. .desc {
  71. font-size: 28rpx;
  72. color: #777;
  73. line-height: 40rpx;
  74. flex-shrink: 0;
  75. }
  76. .currentPrice {
  77. font-weight: bold;
  78. color: #FE4600;
  79. font-family: DINAlternate, DINAlternate;
  80. display: flex;
  81. align-items: flex-end;
  82. .stuff {
  83. font-size: 32rpx;
  84. padding: 0 4rpx;
  85. }
  86. .priceZ {
  87. font-size: 48rpx;
  88. line-height: 1;
  89. }
  90. .priceF {
  91. font-size: 32rpx;
  92. }
  93. }
  94. .line {
  95. margin: 0 12rpx 8rpx;
  96. background-color: #AAAAAA;
  97. width: 2rpx;
  98. height: 20rpx;
  99. }
  100. .discountPrice {
  101. padding-bottom: 2rpx;
  102. font-size: 24rpx;
  103. color: #AAAAAA;
  104. }
  105. }
  106. }
  107. // .goods-section {
  108. // display: flex;
  109. // flex-direction: column;
  110. // flex: 1 auto;
  111. .popup-container {
  112. width: 100%;
  113. background: #FFFFFF;
  114. box-sizing: border-box;
  115. width: 100%;
  116. flex: 1;
  117. overflow-y: auto;
  118. // max-height: 86vh;
  119. // .popup-scroll {
  120. // overflow-x: hidden;
  121. // overflow-y: scroll;
  122. // border-radius: 32rpx 32rpx 0rpx 0rpx;
  123. // flex: 1 auto;
  124. // }
  125. .top-vip-img {
  126. width: 100%;
  127. }
  128. .goodsInfo {
  129. padding: 0 24rpx 40rpx;
  130. }
  131. }
  132. .product-section {
  133. display: flex;
  134. padding-bottom: 60rpx;
  135. .product-img {
  136. width: 160rpx;
  137. height: 160rpx;
  138. flex-shrink: 0;
  139. margin-right: 32rpx;
  140. border-radius: 6px;
  141. overflow: hidden;
  142. image {
  143. width: 100%;
  144. height: 100%;
  145. }
  146. }
  147. .product-left {
  148. display: flex;
  149. align-items: flex-start;
  150. .currentPrice {
  151. font-weight: bold;
  152. color: #FE2451;
  153. font-family: DINAlternate, DINAlternate;
  154. .stuff {
  155. padding-right: 2rpx;
  156. font-size: 36rpx;
  157. }
  158. .priceZ {
  159. font-size: 60rpx;
  160. }
  161. .priceF {
  162. font-size: 36rpx;
  163. }
  164. }
  165. .originPrice {
  166. padding-left: 16rpx;
  167. font-size: 32rpx;
  168. color: #AAAAAA;
  169. line-height: 44rpx;
  170. text-decoration: line-through;
  171. padding-top: 32rpx;
  172. }
  173. }
  174. }
  175. .goodsInfo {
  176. flex-direction: column;
  177. align-items: flex-start;
  178. padding-bottom: 90rpx;
  179. .desc {
  180. font-weight: 600;
  181. font-size: 30rpx;
  182. color: #000000;
  183. line-height: 40rpx;
  184. display: flex;
  185. align-items: center;
  186. .iconBefore {
  187. width: 18rpx;
  188. height: 28rpx;
  189. margin-right: 8rpx;
  190. }
  191. text {
  192. padding-left: 8rpx;
  193. font-size: 28rpx;
  194. color: #AAAAAA;
  195. line-height: 40rpx;
  196. }
  197. }
  198. .tips {
  199. padding-top: 8rpx;
  200. padding-bottom: 24rpx;
  201. font-size: 24rpx;
  202. color: rgba(0, 0, 0, 0.5);
  203. line-height: 34rpx;
  204. }
  205. .goodsList {
  206. display: flex;
  207. align-items: center;
  208. flex-wrap: wrap;
  209. }
  210. .goodsItem {
  211. background: rgba(255, 255, 255, 0.7);
  212. border-radius: 12rpx;
  213. border: 4rpx solid rgba(255, 255, 255, 0.7);
  214. padding: 10rpx;
  215. margin-right: 16rpx;
  216. font-weight: 600;
  217. font-size: 24rpx;
  218. color: #131415;
  219. position: relative;
  220. margin-top: 24rpx;
  221. display: flex;
  222. align-items: center;
  223. &.selected {
  224. border: 4rpx solid #FE4600;
  225. }
  226. &.nosale {
  227. background: #F4F4F5;
  228. color: #B1B1B1;
  229. }
  230. .goodImg {
  231. flex-shrink: 1;
  232. width: 64rpx;
  233. height: 64rpx;
  234. margin-right: 10rpx;
  235. }
  236. .infos {
  237. .name {
  238. line-height: 28rpx;
  239. }
  240. .price {
  241. font-family: DINAlternate, DINAlternate;
  242. font-weight: bold;
  243. font-size: 24rpx;
  244. color: #FE4600;
  245. }
  246. }
  247. .nosale {
  248. position: absolute;
  249. top: -20rpx;
  250. right: -16rpx;
  251. width: 56rpx;
  252. height: 28rpx;
  253. display: block;
  254. z-index: 1;
  255. }
  256. }
  257. .instrument-item {
  258. padding: 12rpx 30rpx;
  259. display: flex;
  260. align-items: center;
  261. background: #F8F8F8;
  262. border-radius: 12rpx;
  263. border: 4rpx solid #f8f8f8;
  264. margin-bottom: 24rpx;
  265. &.selected {
  266. border: 4rpx solid #FE4600;
  267. }
  268. .checkbox {
  269. width: 32rpx;
  270. height: 32rpx;
  271. flex-shrink: 0;
  272. }
  273. .instrument-img {
  274. width: 104rpx;
  275. height: 104rpx;
  276. flex-shrink: 0;
  277. margin: 0 6rpx 0 26rpx;
  278. }
  279. .instrment-info {
  280. .prices {
  281. display: flex;
  282. align-items: flex-end;
  283. .currentPrice {
  284. font-weight: bold;
  285. color: #FE4600;
  286. font-family: DINAlternate, DINAlternate;
  287. display: flex;
  288. align-items: flex-end;
  289. .stuff {
  290. font-size: 32rpx;
  291. padding: 0 4rpx;
  292. }
  293. .priceZ {
  294. font-size: 48rpx;
  295. line-height: 1;
  296. }
  297. .priceF {
  298. font-size: 32rpx;
  299. }
  300. }
  301. .line {
  302. margin: 0 12rpx 8rpx;
  303. background-color: #AAAAAA;
  304. width: 2rpx;
  305. height: 20rpx;
  306. }
  307. .discountPrice {
  308. padding-bottom: 2rpx;
  309. font-size: 24rpx;
  310. color: #AAAAAA;
  311. }
  312. }
  313. }
  314. }
  315. }
  316. button {
  317. width: 100%;
  318. line-height: 88rpx;
  319. background: linear-gradient(270deg, #FF204B 0%, #FE5B71 100%);
  320. border-radius: 44rpx;
  321. font-weight: 500;
  322. font-size: 32rpx;
  323. color: #FFFFFF;
  324. padding-top: 0;
  325. padding-bottom: 0;
  326. }
  327. // }