order-detail.less 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758
  1. /* pages/orders/order-detail.wxss */
  2. page {
  3. height: 100vh;
  4. display: flex;
  5. flex-direction: column;
  6. background: #F4F4F4;
  7. }
  8. .container {
  9. display: flex;
  10. flex-direction: column;
  11. position: relative;
  12. &::before {
  13. content: '';
  14. position: absolute;
  15. top: 0;
  16. left: 0;
  17. right: 0;
  18. height: 254rpx;
  19. background: linear-gradient(180deg, #FDEC00 0%, #FAD400 100%);
  20. }
  21. }
  22. .record-list {
  23. flex: 1;
  24. overflow-y: scroll;
  25. box-sizing: border-box;
  26. }
  27. .scroll-container {
  28. padding-bottom: 186rpx;
  29. overflow: hidden;
  30. }
  31. .order-status {
  32. margin: 24rpx 26rpx 0;
  33. background-color: #FFFFFF;
  34. border-radius: 20rpx;
  35. padding: 24rpx 32rpx;
  36. .status {
  37. display: flex;
  38. padding-bottom: 24rpx;
  39. image {
  40. width: 48rpx;
  41. height: 48rpx;
  42. margin-right: 16rpx;
  43. }
  44. text {
  45. font-weight: 600;
  46. font-size: 36rpx;
  47. color: #131415;
  48. line-height: 48rpx;
  49. }
  50. }
  51. .tips {
  52. font-size: 28rpx;
  53. color: #777777;
  54. line-height: 40rpx;
  55. }
  56. }
  57. .addBuyer {
  58. position: relative;
  59. margin: 26rpx;
  60. background: #fff;
  61. border-radius: 20rpx;
  62. display: flex;
  63. align-items: center;
  64. justify-content: space-between;
  65. padding: 24rpx;
  66. overflow: hidden;
  67. .addressTop {
  68. position: absolute;
  69. z-index: 1;
  70. top: 0;
  71. left: 0;
  72. width: 100%;
  73. }
  74. .icon-man {
  75. width: 44rpx;
  76. height: 44rpx;
  77. margin-right: 16rpx;
  78. flex-shrink: 0;
  79. &.selected {
  80. width: 36rpx;
  81. height: 36rpx;
  82. }
  83. }
  84. .addBuyer-left {
  85. display: flex;
  86. }
  87. .users {
  88. display: flex;
  89. font-weight: 600;
  90. font-size: 32rpx;
  91. color: #131415;
  92. line-height: 44rpx;
  93. width: 540rpx;
  94. white-space: nowrap;
  95. overflow: hidden;
  96. text-overflow: ellipsis;
  97. }
  98. .address {
  99. padding-bottom: 16rpx;
  100. font-size: 28rpx;
  101. color: #333333;
  102. font-weight: bold;
  103. line-height: 40rpx;
  104. text {
  105. padding-right: 24rpx;
  106. &:last-child {
  107. color: #777777;
  108. font-weight: 400;
  109. }
  110. }
  111. }
  112. .selected {
  113. .users {
  114. font-weight: 400;
  115. font-size: 28rpx;
  116. color: #131415;
  117. }
  118. .address {
  119. display: flex;
  120. // flex-direction: column;
  121. .userName {
  122. max-width: 300rpx;
  123. white-space: nowrap;
  124. overflow: hidden;
  125. text-overflow: ellipsis;
  126. }
  127. }
  128. }
  129. .arrow-right {
  130. width: 24rpx;
  131. height: 24rpx;
  132. }
  133. }
  134. .order-content {
  135. margin: 24rpx 26rpx 0;
  136. border-radius: 20rpx;
  137. padding: 28rpx 24rpx;
  138. background-color: #FFFFFF;
  139. }
  140. .item-content {
  141. display: flex;
  142. width: 100%;
  143. &+.item-content {
  144. padding-top: 40rpx;
  145. }
  146. .goods-icon {
  147. width: 140rpx;
  148. height: 140rpx;
  149. margin-right: 20rpx;
  150. flex-shrink: 0;
  151. border-radius: 11px;
  152. overflow: hidden;
  153. }
  154. .goods-desc {
  155. flex: 1 auto;
  156. display: flex;
  157. flex-direction: column;
  158. }
  159. .goodsInfo {
  160. display: flex;
  161. justify-content: space-between;
  162. padding-top: 4rpx;
  163. .goods-name {
  164. flex: 1 auto;
  165. white-space: nowrap;
  166. overflow: hidden;
  167. font-weight: 600;
  168. font-size: 30rpx;
  169. color: #333;
  170. line-height: 50rpx;
  171. text-overflow: ellipsis;
  172. max-width: 280rpx;
  173. }
  174. .goods-current-price {
  175. font-weight: bold;
  176. font-family: DINAlternate, DINAlternate;
  177. font-size: 28rpx;
  178. color: #131415;
  179. line-height: 48rpx;
  180. text {
  181. font-size: 36rpx;
  182. padding-left: 4rpx;
  183. }
  184. }
  185. }
  186. .goods-price {
  187. flex-shrink: 0;
  188. font-family: DINAlternate, DINAlternate;
  189. font-weight: bold;
  190. color: #131415;
  191. line-height: 48rpx;
  192. .stuff {
  193. font-size: 28rpx;
  194. padding-right: 4rpx;
  195. }
  196. .priceZ {
  197. font-size: 40rpx;
  198. }
  199. .priceF {
  200. font-size: 32rpx;
  201. }
  202. }
  203. .origin-price {
  204. font-weight: 400;
  205. font-size: 24rpx;
  206. color: #6D4718;
  207. line-height: 1;
  208. }
  209. .goods-type {
  210. display: flex;
  211. align-items: center;
  212. padding-top: 10rpx;
  213. justify-content: space-between;
  214. .goods-card {
  215. background: #FFF1E0;
  216. border-radius: 6rpx;
  217. font-size: 26rpx;
  218. color: #FE4600;
  219. line-height: 40rpx;
  220. padding: 0 12rpx;
  221. }
  222. .goods-num {
  223. font-size: 26rpx;
  224. color: #AAA;
  225. line-height: 36rpx;
  226. }
  227. }
  228. }
  229. .goodsInfos {
  230. margin-top: 30rpx;
  231. // border-top: 2rpx solid #F2F2F2;
  232. .qrcode-line {
  233. position: relative;
  234. // background: linear-gradient(to right, transparent 50%, rgba(219, 219, 219, 1) 50%) repeat-x; // 设置水平方向的线性渐变,透明与半透明色交替,模拟虚线线段
  235. // background-size: 10px 1px; // 设置背景大小,控制虚线的线段长度和粗细,这里线段长度为10px,粗细为1px
  236. background-color: #F2F2F2;
  237. height: 2rpx; // 元素高度,可根据实际需求调整,用于展示虚线效果的高度范围
  238. margin: 24rpx 0 28rpx;
  239. // &::before,
  240. // &::after {
  241. // content: '';
  242. // position: absolute;
  243. // top: -20rpx;
  244. // display: block;
  245. // width: 40rpx;
  246. // height: 40rpx;
  247. // background-color: #F4F4F4;
  248. // border-radius: 50%;
  249. // }
  250. // &::before {
  251. // left: -50rpx;
  252. // }
  253. // &::after {
  254. // right: -50rpx;
  255. // }
  256. }
  257. }
  258. .goodsInfo-item {
  259. display: flex;
  260. justify-content: space-between;
  261. align-items: center;
  262. padding-top: 28rpx;
  263. &:first-child {
  264. padding-top: 0;
  265. .title {
  266. color: #777;
  267. }
  268. }
  269. .title {
  270. font-weight: 400;
  271. font-size: 28rpx;
  272. color: #FE2451;
  273. line-height: 40rpx;
  274. }
  275. .goods-price {
  276. flex-shrink: 0;
  277. font-family: DINAlternate, DINAlternate;
  278. font-weight: bold;
  279. color: #131415;
  280. line-height: 48rpx;
  281. .stuff {
  282. font-size: 28rpx;
  283. padding-right: 4rpx;
  284. }
  285. .priceZ {
  286. font-size: 32rpx;
  287. }
  288. .priceF {
  289. font-size: 24rpx;
  290. }
  291. }
  292. .calc-price {
  293. // font-weight: bold;
  294. // font-size: 28rpx;
  295. color: #FF0047;
  296. // line-height: 32rpx;
  297. }
  298. }
  299. .goodsInfo-count {
  300. display: flex;
  301. justify-content: flex-end;
  302. .goods-price {
  303. flex-shrink: 0;
  304. font-family: DINAlternate, DINAlternate;
  305. font-weight: bold;
  306. color: #131415;
  307. line-height: 48rpx;
  308. .before {
  309. font-weight: 400;
  310. font-size: 24rpx;
  311. color: #777777;
  312. vertical-align: middle;
  313. padding-right: 6rpx;
  314. }
  315. .red {
  316. color: #FE4600;
  317. }
  318. .stuff {
  319. font-size: 28rpx;
  320. padding-right: 4rpx;
  321. }
  322. .priceZ {
  323. font-size: 40rpx;
  324. // line-height: 1;
  325. color: #FE4600;
  326. }
  327. .priceF {
  328. font-size: 24rpx;
  329. color: #FE4600;
  330. }
  331. .afterTxt {
  332. font-weight: 400;
  333. font-size: 24rpx;
  334. color: #777777;
  335. vertical-align: middle;
  336. padding-left: 12rpx;
  337. }
  338. .afterPrice {
  339. color: #333333;
  340. font-size: 36rpx;
  341. }
  342. }
  343. }
  344. .buyUsers {
  345. position: relative;
  346. margin: 24rpx 26rpx 0;
  347. background: #FFFFFF;
  348. border-radius: 20rpx;
  349. padding: 28rpx 24rpx;
  350. .buyuser_img {
  351. position: absolute;
  352. top: 0;
  353. right: 0;
  354. width: 160rpx !important;
  355. }
  356. .users {
  357. font-size: 32rpx;
  358. color: #777;
  359. text {
  360. color: #131415;
  361. font-weight: bold;
  362. padding-right: 12rpx;
  363. }
  364. }
  365. .detail {
  366. padding-top: 8rpx;
  367. font-size: 26rpx;
  368. color: #777777;
  369. line-height: 36rpx;
  370. }
  371. }
  372. .order-time {
  373. margin: 24rpx 26rpx 0;
  374. border-radius: 20rpx;
  375. padding: 0 24rpx;
  376. background-color: #FFFFFF;
  377. .line {
  378. width: 100%;
  379. height: 2rpx;
  380. background: #F2F2F2;
  381. margin-bottom: 28rpx;
  382. }
  383. .order-item {
  384. display: flex;
  385. justify-content: space-between;
  386. padding: 36rpx 0;
  387. border-bottom: 2rpx solid #F0F0F0;
  388. &:last-child {
  389. border-bottom: 0;
  390. }
  391. .title {
  392. font-size: 30rpx;
  393. color: #131415;
  394. line-height: 40rpx;
  395. flex-shrink: 0;
  396. padding-right: 46rpx;
  397. }
  398. .value {
  399. font-size: 30rpx;
  400. color: #777777;
  401. line-height: 42rpx;
  402. display: flex;
  403. align-items: center;
  404. text-align: right;
  405. word-break: break-all;
  406. word-wrap: break-word;
  407. &.red {
  408. color: #FE2451;
  409. }
  410. &.expanded {
  411. .iconDown {
  412. transform: rotate(0deg);
  413. }
  414. }
  415. .iconDown {
  416. margin-left: 8rpx;
  417. width: 24rpx;
  418. height: 24rpx;
  419. transform: rotate(180deg);
  420. }
  421. .copy {
  422. font-size: 30rpx;
  423. color: #131415;
  424. line-height: 42rpx;
  425. display: flex;
  426. align-items: center;
  427. padding-left: 16rpx;
  428. }
  429. }
  430. }
  431. }
  432. .wechat-section {
  433. background: #FFFFFF;
  434. border-radius: 20rpx;
  435. padding: 28rpx 24rpx;
  436. margin: 24rpx 26rpx;
  437. display: flex;
  438. justify-content: space-between;
  439. align-items: center;
  440. .wechat-left {
  441. font-weight: 600;
  442. font-size: 28rpx;
  443. color: #000000;
  444. line-height: 40rpx;
  445. display: flex;
  446. align-items: center;
  447. image {
  448. margin-right: 16rpx;
  449. width: 40rpx;
  450. height: 34rpx;
  451. }
  452. }
  453. .checkbox {
  454. width: 32rpx;
  455. height: 32rpx;
  456. }
  457. }
  458. .order-btn {
  459. position: fixed;
  460. bottom: 0;
  461. left: 0;
  462. width: 100%;
  463. background-color: #FFFFFF;
  464. // display: flex;
  465. // justify-content: space-between;
  466. // justify-content: flex-end;
  467. // box-sizing: border-box;
  468. .orders {
  469. display: flex;
  470. flex-direction: column;
  471. margin-right: 40rpx;
  472. image {
  473. width: 48rpx;
  474. height: 48rpx;
  475. }
  476. text {
  477. font-weight: 500;
  478. font-size: 22rpx;
  479. color: #131415;
  480. line-height: 32rpx;
  481. text-align: center;
  482. }
  483. }
  484. .more {
  485. display: flex;
  486. justify-content: space-between;
  487. padding: 20rpx 32rpx 58rpx 32rpx;
  488. }
  489. .price-section {
  490. display: flex;
  491. flex-direction: column;
  492. justify-content: center;
  493. }
  494. .price {
  495. display: flex;
  496. align-items: flex-end;
  497. padding-bottom: 4rpx;
  498. .desc {
  499. font-size: 28rpx;
  500. color: #777;
  501. line-height: 40rpx;
  502. flex-shrink: 0;
  503. }
  504. .currentPrice {
  505. font-weight: bold;
  506. color: #333333;
  507. font-family: DINAlternate, DINAlternate;
  508. display: flex;
  509. align-items: flex-end;
  510. .stuff {
  511. font-size: 32rpx;
  512. padding: 0 4rpx;
  513. }
  514. .priceZ {
  515. font-size: 48rpx;
  516. line-height: 1;
  517. }
  518. .priceF {
  519. font-size: 32rpx;
  520. }
  521. }
  522. .line {
  523. margin: 0 12rpx 8rpx;
  524. background-color: #D2D2D2;
  525. width: 2rpx;
  526. height: 20rpx;
  527. }
  528. }
  529. .discountPrice {
  530. font-size: 26rpx;
  531. color: #FE4600;
  532. text {
  533. font-weight: bold;
  534. }
  535. }
  536. button {
  537. margin-left: 12rpx !important;
  538. line-height: 94rpx;
  539. padding: 0 !important;
  540. font-weight: 500;
  541. width: 292rpx !important;
  542. font-size: 32rpx;
  543. color: #FEFFCA;
  544. margin: 0 !important;
  545. flex-shrink: 0;
  546. background: linear-gradient(90deg, #544F4A 0%, #302F2B 100%);
  547. box-shadow: 0rpx 14rpx 14rpx 0rpx rgba(0, 0, 0, 0.18);
  548. border-radius: 30rpx;
  549. border: 8rpx solid #FFFFFF;
  550. }
  551. }
  552. .van-picker__toolbar,
  553. .toolbar-top {
  554. margin: 0 40rpx !important;
  555. padding: 0 14rpx !important;
  556. border-bottom: 2rpx solid #F2F2F2;
  557. height: auto !important;
  558. line-height: normal !important;
  559. }
  560. .van-picker__cancel,
  561. .van-picker__confirm,
  562. .toolbar-cancel,
  563. toolbar-confirm {
  564. font-size: 32rpx !important;
  565. padding: 28rpx 0 !important;
  566. color: #777777 !important;
  567. }
  568. .van-picker__confirm,
  569. .toolbar-confirm {
  570. color: #FE2451 !important;
  571. }
  572. .toolbar-top {
  573. display: flex;
  574. align-items: center;
  575. justify-content: space-between;
  576. }
  577. .addressContainer {
  578. background: linear-gradient(180deg, #FFDEE7 0%, #FFFFFF 12%, #FFFFFF 100%);
  579. border-radius: 32rpx 32rpx 0rpx 0rpx;
  580. height: 928rpx;
  581. display: flex;
  582. flex-direction: column;
  583. .icon-close {
  584. position: absolute;
  585. z-index: 2;
  586. top: 28rpx;
  587. right: 12rpx;
  588. padding: 20rpx;
  589. width: 30rpx;
  590. height: 30rpx;
  591. }
  592. .pop-address-title {
  593. position: relative;
  594. z-index: 1;
  595. text-align: center;
  596. padding-top: 36rpx;
  597. padding-bottom: 20rpx;
  598. font-weight: 600;
  599. font-size: 36rpx;
  600. color: #131415;
  601. line-height: 50rpx;
  602. }
  603. .cell-group {
  604. flex: 1 auto;
  605. .van-cell {
  606. padding: 36rpx 40rpx;
  607. font-size: 30rpx;
  608. }
  609. .van-field__label {
  610. color: #666666;
  611. }
  612. .van-icon-arrow {
  613. color: #BFBFBF;
  614. }
  615. .textarea {
  616. max-height: 72rpx;
  617. }
  618. }
  619. .van-picker-column__item--selected {
  620. font-weight: 600;
  621. font-size: 32rpx;
  622. color: #6D4718 !important;
  623. }
  624. .pop-btn-group {
  625. padding: 32rpx 32rpx 58rpx;
  626. }
  627. .submit-btn {
  628. width: 100% !important;
  629. margin: 0 !important;
  630. padding: 0 !important;
  631. line-height: 88rpx;
  632. background: linear-gradient(270deg, #FF204B 0%, #FE5B71 100%);
  633. border-radius: 88rpx;
  634. font-weight: 500;
  635. font-size: 32rpx;
  636. color: #fff;
  637. }
  638. }