order-detail.less 13 KB

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