index.less 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539
  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. padding-top: 100rpx;
  26. flex: 1 auto;
  27. display: flex;
  28. flex-direction: column;
  29. overflow-y: auto;
  30. }
  31. .select-good-section {
  32. display: flex;
  33. // align-items: center;
  34. // margin-top: -100rpx;
  35. position: relative;
  36. z-index: 200;
  37. .select-good-img {
  38. width: 222rpx;
  39. height: 222rpx;
  40. padding-left: 10rpx;
  41. image {
  42. width: 100%;
  43. height: 100%;
  44. }
  45. }
  46. .good-info {
  47. position: relative;
  48. flex: 1;
  49. .img_back {
  50. position: absolute;
  51. bottom: 42rpx;
  52. right: 4rpx;
  53. padding: 20rpx;
  54. width: 32rpx;
  55. height: 20rpx;
  56. }
  57. }
  58. .good-name {
  59. white-space: nowrap;
  60. overflow: hidden;
  61. text-overflow: ellipsis;
  62. width: 400rpx;
  63. font-weight: 600;
  64. font-size: 32rpx;
  65. color: #000000;
  66. line-height: 44rpx;
  67. padding-top: 42rpx;
  68. }
  69. .good-price {
  70. display: flex;
  71. align-items: flex-end;
  72. // line-height: 70rpx;
  73. padding-top: 36rpx;
  74. .desc {
  75. font-size: 28rpx;
  76. color: #777;
  77. line-height: 40rpx;
  78. flex-shrink: 0;
  79. }
  80. .currentPrice {
  81. font-weight: bold;
  82. color: #FE4600;
  83. font-family: DINAlternate, DINAlternate;
  84. display: flex;
  85. align-items: flex-end;
  86. .stuff {
  87. font-size: 32rpx;
  88. padding: 0 4rpx;
  89. }
  90. .priceZ {
  91. font-size: 48rpx;
  92. line-height: 1;
  93. }
  94. .priceF {
  95. font-size: 32rpx;
  96. }
  97. }
  98. .line {
  99. margin: 0 12rpx 8rpx;
  100. background-color: #AAAAAA;
  101. width: 2rpx;
  102. height: 20rpx;
  103. }
  104. .discountPrice {
  105. padding-bottom: 2rpx;
  106. font-size: 24rpx;
  107. color: #AAAAAA;
  108. }
  109. }
  110. }
  111. // .goods-section {
  112. // display: flex;
  113. // flex-direction: column;
  114. // flex: 1 auto;
  115. .popup-container {
  116. width: 100%;
  117. background: #FFFFFF;
  118. box-sizing: border-box;
  119. width: 100%;
  120. flex: 1;
  121. overflow-y: auto;
  122. // max-height: 86vh;
  123. // .popup-scroll {
  124. // overflow-x: hidden;
  125. // overflow-y: scroll;
  126. // border-radius: 32rpx 32rpx 0rpx 0rpx;
  127. // flex: 1 auto;
  128. // }
  129. .top-vip-img {
  130. width: 100%;
  131. }
  132. .goodsInfo {
  133. padding: 0 24rpx 40rpx;
  134. }
  135. }
  136. .product-section {
  137. display: flex;
  138. padding-bottom: 60rpx;
  139. .product-img {
  140. width: 160rpx;
  141. height: 160rpx;
  142. flex-shrink: 0;
  143. margin-right: 32rpx;
  144. border-radius: 6px;
  145. overflow: hidden;
  146. image {
  147. width: 100%;
  148. height: 100%;
  149. }
  150. }
  151. .product-left {
  152. display: flex;
  153. align-items: flex-start;
  154. .currentPrice {
  155. font-weight: bold;
  156. color: #FE2451;
  157. font-family: DINAlternate, DINAlternate;
  158. .stuff {
  159. padding-right: 2rpx;
  160. font-size: 36rpx;
  161. }
  162. .priceZ {
  163. font-size: 60rpx;
  164. }
  165. .priceF {
  166. font-size: 36rpx;
  167. }
  168. }
  169. .originPrice {
  170. padding-left: 16rpx;
  171. font-size: 32rpx;
  172. color: #AAAAAA;
  173. line-height: 44rpx;
  174. text-decoration: line-through;
  175. padding-top: 32rpx;
  176. }
  177. }
  178. }
  179. .goodsInfo {
  180. flex-direction: column;
  181. align-items: flex-start;
  182. padding-bottom: 90rpx;
  183. .desc {
  184. font-weight: 600;
  185. font-size: 30rpx;
  186. color: #000000;
  187. line-height: 40rpx;
  188. display: flex;
  189. align-items: center;
  190. .iconBefore {
  191. width: 18rpx;
  192. height: 28rpx;
  193. margin-right: 8rpx;
  194. }
  195. text {
  196. padding-left: 8rpx;
  197. font-size: 28rpx;
  198. color: #AAAAAA;
  199. line-height: 40rpx;
  200. }
  201. }
  202. .tips {
  203. padding-top: 8rpx;
  204. padding-bottom: 24rpx;
  205. font-size: 24rpx;
  206. color: rgba(0, 0, 0, 0.5);
  207. line-height: 34rpx;
  208. }
  209. .goodsList {
  210. display: flex;
  211. align-items: center;
  212. flex-wrap: wrap;
  213. }
  214. .goodsItem {
  215. background: rgba(255, 255, 255, 0.7);
  216. border-radius: 12rpx;
  217. border: 4rpx solid rgba(255, 255, 255, 0.7);
  218. padding: 10rpx;
  219. margin-right: 16rpx;
  220. font-weight: 600;
  221. font-size: 24rpx;
  222. color: #131415;
  223. position: relative;
  224. margin-top: 24rpx;
  225. display: flex;
  226. align-items: center;
  227. &.selected {
  228. border: 4rpx solid #FE4600;
  229. }
  230. &.nosale {
  231. background: #F4F4F5;
  232. color: #B1B1B1;
  233. }
  234. .goodImg {
  235. flex-shrink: 1;
  236. width: 64rpx;
  237. height: 64rpx;
  238. margin-right: 10rpx;
  239. }
  240. .infos {
  241. .name {
  242. line-height: 28rpx;
  243. }
  244. .price {
  245. font-family: DINAlternate, DINAlternate;
  246. font-weight: bold;
  247. font-size: 24rpx;
  248. color: #FE4600;
  249. }
  250. }
  251. .nosale {
  252. position: absolute;
  253. top: -20rpx;
  254. right: -16rpx;
  255. width: 56rpx;
  256. height: 28rpx;
  257. display: block;
  258. z-index: 1;
  259. }
  260. }
  261. .instrument-item {
  262. padding: 12rpx 30rpx;
  263. display: flex;
  264. align-items: center;
  265. background: #F8F8F8;
  266. border-radius: 12rpx;
  267. border: 4rpx solid #f8f8f8;
  268. margin-bottom: 24rpx;
  269. &.selected {
  270. border: 4rpx solid #FE4600;
  271. }
  272. .checkbox {
  273. width: 32rpx;
  274. height: 32rpx;
  275. flex-shrink: 0;
  276. }
  277. .instrument-img {
  278. width: 104rpx;
  279. height: 104rpx;
  280. flex-shrink: 0;
  281. margin: 0 26rpx 0 26rpx;
  282. }
  283. .instrment-info {
  284. .prices {
  285. display: flex;
  286. align-items: flex-end;
  287. .currentPrice {
  288. font-weight: bold;
  289. color: #FE4600;
  290. font-family: DINAlternate, DINAlternate;
  291. display: flex;
  292. align-items: flex-end;
  293. .stuff {
  294. font-size: 32rpx;
  295. padding: 0 4rpx;
  296. }
  297. .priceZ {
  298. font-size: 48rpx;
  299. line-height: 1;
  300. }
  301. .priceF {
  302. font-size: 32rpx;
  303. }
  304. }
  305. .line {
  306. margin: 0 12rpx 8rpx;
  307. background-color: #AAAAAA;
  308. width: 2rpx;
  309. height: 20rpx;
  310. }
  311. .discountPrice {
  312. padding-bottom: 2rpx;
  313. font-size: 24rpx;
  314. color: #AAAAAA;
  315. }
  316. }
  317. }
  318. }
  319. }
  320. .btnGroup {
  321. button {
  322. width: 100%;
  323. font-weight: 600;
  324. color: #FFFFFF;
  325. padding-top: 0;
  326. padding-bottom: 0;
  327. line-height: 94rpx;
  328. flex: 1;
  329. background: linear-gradient(90deg, #544F4A 0%, #302F2B 100%);
  330. box-shadow: 0rpx 14rpx 14rpx 0rpx rgba(0, 0, 0, 0.18);
  331. border-radius: 30rpx;
  332. border: 8rpx solid #FFFFFF;
  333. font-size: 36rpx;
  334. }
  335. .btn-prices {
  336. font-size: 32rpx;
  337. color: #FEFFCA;
  338. .stuff {
  339. font-size: 32rpx;
  340. padding-left: 8rpx;
  341. }
  342. .priceZ {
  343. font-size: 48rpx;
  344. }
  345. .priceF {
  346. font-size: 32rpx;
  347. }
  348. }
  349. }
  350. .popupBottom {
  351. box-shadow: 0rpx 4rpx 8rpx 0rpx rgba(0, 0, 0, 0.5);
  352. padding: 24rpx 24rpx 58rpx;
  353. }
  354. .select-buyer {
  355. display: flex;
  356. justify-content: space-between;
  357. .desc {
  358. font-weight: 600;
  359. font-size: 30rpx;
  360. color: #000000;
  361. line-height: 40rpx;
  362. display: flex;
  363. align-items: center;
  364. .iconBefore {
  365. width: 18rpx;
  366. height: 28rpx;
  367. margin-right: 8rpx;
  368. }
  369. text {
  370. padding-left: 8rpx;
  371. font-size: 28rpx;
  372. color: #AAAAAA;
  373. line-height: 40rpx;
  374. }
  375. }
  376. .btn-add {
  377. display: inline-block;
  378. padding: 4rpx 28rpx;
  379. background: linear-gradient(270deg, #FF9501 0%, #FE4600 100%);
  380. border-radius: 26rpx;
  381. font-weight: 600;
  382. font-size: 24rpx;
  383. color: #FFFFFF;
  384. line-height: 36rpx;
  385. }
  386. &.selected {
  387. flex-direction: column;
  388. .users {
  389. position: relative;
  390. margin-top: 24rpx;
  391. display: flex;
  392. align-items: center;
  393. background: #F8F8F8;
  394. border-radius: 12rpx;
  395. border: 4rpx solid #FE4600;
  396. padding: 24rpx 30rpx 24rpx 30rpx;
  397. .checkbox {
  398. width: 32rpx;
  399. height: 32rpx;
  400. flex-shrink: 0;
  401. margin-right: 30rpx;
  402. }
  403. .user {
  404. .name {
  405. display: flex;
  406. align-items: center;
  407. padding-bottom: 8rpx;
  408. font-weight: 400;
  409. font-size: 32rpx;
  410. color: rgba(119, 119, 119, 1);
  411. text {
  412. font-weight: 600;
  413. font-size: 32rpx;
  414. color: #131415;
  415. line-height: 44rpx;
  416. max-width: 300rpx;
  417. overflow: hidden;
  418. display: inline-block;
  419. white-space: nowrap;
  420. text-overflow: ellipsis;
  421. }
  422. }
  423. .detail {
  424. font-size: 26rpx;
  425. color: #777777;
  426. line-height: 36rpx;
  427. text-overflow: ellipsis;
  428. white-space: nowrap;
  429. overflow: hidden;
  430. max-width: 560rpx;
  431. }
  432. }
  433. .icon-edit {
  434. position: absolute;
  435. top: 12rpx;
  436. right: 0;
  437. padding: 16rpx;
  438. width: 28rpx;
  439. height: 28rpx;
  440. }
  441. }
  442. }
  443. }
  444. .current-good {
  445. background: linear-gradient(180deg, rgba(254, 248, 241, 0.4) 0%, rgba(251, 233, 205, 0.4) 100%);
  446. border-radius: 10rpx;
  447. border: 2rpx solid rgba(251, 233, 206, 1);
  448. margin: 26rpx 0 24rpx;
  449. padding: 10rpx 22rpx;
  450. font-size: 24rpx;
  451. color: rgba(80, 47, 0, 1);
  452. .current-item-text {
  453. padding-bottom: 4rpx;
  454. }
  455. text {
  456. color: rgba(254, 70, 0, 1);
  457. }
  458. }
  459. // }