index.less 10 KB

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