index.less 10 KB

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