index.less 10 KB

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