index.less 9.8 KB

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