order-detail.less 13 KB

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