order-detail.less 13 KB

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