index.less 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592
  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. }
  263. }
  264. .nosale {
  265. position: absolute;
  266. top: -20rpx;
  267. right: -16rpx;
  268. width: 56rpx;
  269. height: 28rpx;
  270. display: block;
  271. z-index: 1;
  272. }
  273. }
  274. .instrument-item {
  275. padding: 12rpx 30rpx;
  276. display: flex;
  277. align-items: center;
  278. background: #F8F8F8;
  279. border-radius: 12rpx;
  280. border: 4rpx solid #f8f8f8;
  281. margin-bottom: 24rpx;
  282. &:last-child {
  283. margin-bottom: 0;
  284. }
  285. &.selected {
  286. border: 4rpx solid #FE4600;
  287. }
  288. .checkbox {
  289. width: 32rpx;
  290. height: 32rpx;
  291. flex-shrink: 0;
  292. }
  293. .instrument-img {
  294. width: 104rpx;
  295. height: 104rpx;
  296. flex-shrink: 0;
  297. margin: 0 26rpx 0 26rpx;
  298. }
  299. .instrment-info {
  300. .name {
  301. font-weight: bold;
  302. font-size: 28rpx;
  303. color: #000;
  304. }
  305. .prices {
  306. display: flex;
  307. align-items: flex-end;
  308. padding-top: 4rpx;
  309. .currentPrice {
  310. font-weight: bold;
  311. color: #FE4600;
  312. font-family: DINAlternate, DINAlternate;
  313. display: flex;
  314. align-items: flex-end;
  315. .stuff {
  316. font-size: 28rpx;
  317. padding: 0 4rpx;
  318. }
  319. .priceZ {
  320. font-size: 44rpx;
  321. line-height: 1;
  322. }
  323. .priceF {
  324. font-size: 28rpx;
  325. line-height: 1.3;
  326. }
  327. }
  328. .line {
  329. margin: 0 12rpx 8rpx;
  330. background-color: #AAAAAA;
  331. width: 2rpx;
  332. height: 20rpx;
  333. }
  334. .discountPrice {
  335. padding-bottom: 2rpx;
  336. font-size: 24rpx;
  337. color: #AAAAAA;
  338. font-weight: bold !important;
  339. text {
  340. padding-right: 4rpx;
  341. font-weight: 400 !important;
  342. }
  343. .showP {
  344. font-weight: 600 !important;
  345. padding-left: 4rpx;
  346. }
  347. }
  348. }
  349. }
  350. }
  351. }
  352. .btnGroup {
  353. button {
  354. width: 100%;
  355. font-weight: 600;
  356. color: #FFFFFF;
  357. padding-top: 22rpx;
  358. padding-bottom: 22rpx;
  359. // line-height: 94rpx;
  360. flex: 1;
  361. background: linear-gradient(90deg, #544F4A 0%, #302F2B 100%);
  362. box-shadow: 0rpx 14rpx 14rpx 0rpx rgba(0, 0, 0, 0.18);
  363. border-radius: 40rpx !important;
  364. border: 8rpx solid #FFFFFF;
  365. font-size: 36rpx;
  366. box-sizing: border-box;
  367. }
  368. button[disabled] {
  369. opacity: 0.7;
  370. }
  371. .btn-prices {
  372. font-size: 32rpx;
  373. color: #FEFFCA;
  374. display: flex;
  375. align-items: flex-end;
  376. justify-content: center;
  377. line-height: 50rpx;
  378. .stuff {
  379. font-size: 32rpx;
  380. padding-left: 8rpx;
  381. padding-right: 6rpx;
  382. line-height: 1.3;
  383. }
  384. .priceZ {
  385. font-size: 48rpx;
  386. line-height: 1.1;
  387. }
  388. .priceF {
  389. font-size: 32rpx;
  390. line-height: 1.3;
  391. }
  392. }
  393. }
  394. .popupBottom {
  395. box-shadow: 0rpx 4rpx 8rpx 0rpx rgba(0, 0, 0, 0.25);
  396. padding: 24rpx 24rpx 50rpx;
  397. position: relative;
  398. top: 1;
  399. }
  400. .select-buyer {
  401. display: flex;
  402. justify-content: space-between;
  403. .desc {
  404. font-weight: 600;
  405. font-size: 30rpx;
  406. color: #000000;
  407. line-height: 40rpx;
  408. display: flex;
  409. align-items: center;
  410. .iconBefore {
  411. width: 18rpx;
  412. height: 28rpx;
  413. margin-right: 8rpx;
  414. }
  415. text {
  416. padding-left: 8rpx;
  417. font-size: 28rpx;
  418. color: #AAAAAA;
  419. line-height: 40rpx;
  420. }
  421. }
  422. .btn-add {
  423. display: inline-block;
  424. padding: 4rpx 28rpx;
  425. background: linear-gradient(270deg, #FF9501 0%, #FE4600 100%);
  426. border-radius: 26rpx;
  427. font-weight: 600;
  428. font-size: 24rpx;
  429. color: #FFFFFF;
  430. line-height: 36rpx;
  431. }
  432. &.selected {
  433. flex-direction: column;
  434. .users {
  435. position: relative;
  436. margin-top: 24rpx;
  437. display: flex;
  438. align-items: center;
  439. background: #F8F8F8;
  440. border-radius: 12rpx;
  441. border: 4rpx solid #FE4600;
  442. padding: 24rpx 30rpx 24rpx 30rpx;
  443. .checkbox {
  444. width: 32rpx;
  445. height: 32rpx;
  446. flex-shrink: 0;
  447. margin-right: 30rpx;
  448. }
  449. .user {
  450. .name {
  451. display: flex;
  452. align-items: center;
  453. padding-bottom: 8rpx;
  454. font-weight: 400;
  455. font-size: 32rpx;
  456. color: rgba(119, 119, 119, 1);
  457. text {
  458. font-weight: 600;
  459. font-size: 32rpx;
  460. color: #131415;
  461. line-height: 44rpx;
  462. max-width: 300rpx;
  463. overflow: hidden;
  464. display: inline-block;
  465. white-space: nowrap;
  466. text-overflow: ellipsis;
  467. padding-right: 6rpx;
  468. }
  469. }
  470. .detail {
  471. font-size: 26rpx;
  472. color: #777777;
  473. line-height: 36rpx;
  474. text-overflow: ellipsis;
  475. white-space: nowrap;
  476. overflow: hidden;
  477. max-width: 560rpx;
  478. }
  479. }
  480. .icon-edit {
  481. position: absolute;
  482. top: 12rpx;
  483. right: 0;
  484. padding: 16rpx;
  485. width: 28rpx;
  486. height: 28rpx;
  487. }
  488. }
  489. }
  490. }
  491. .current-good {
  492. background: linear-gradient(180deg, rgba(254, 248, 241, 0.4) 0%, rgba(251, 233, 205, 0.4) 100%);
  493. border-radius: 10rpx;
  494. border: 2rpx solid rgba(251, 233, 206, 1);
  495. margin: 26rpx 0 16rpx;
  496. padding: 10rpx 22rpx;
  497. font-size: 24rpx;
  498. color: rgba(80, 47, 0, 1);
  499. .current-item-text {
  500. padding-bottom: 4rpx;
  501. }
  502. .discountPrice {
  503. padding-left: 6rpx;
  504. }
  505. text {
  506. color: rgba(254, 70, 0, 1);
  507. font-weight: bold;
  508. }
  509. }
  510. // }