order-detail.less 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794
  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. .before {
  319. font-weight: 400;
  320. font-size: 24rpx;
  321. color: #777777;
  322. vertical-align: middle;
  323. padding-right: 6rpx;
  324. }
  325. .red {
  326. color: #FE4600;
  327. }
  328. .stuff {
  329. font-size: 28rpx;
  330. padding-right: 4rpx;
  331. }
  332. .priceZ {
  333. font-size: 40rpx;
  334. // line-height: 1;
  335. color: #FE4600;
  336. }
  337. .priceF {
  338. font-size: 24rpx;
  339. color: #FE4600;
  340. }
  341. .afterTxt {
  342. font-weight: 400;
  343. font-size: 24rpx;
  344. color: #777777;
  345. vertical-align: middle;
  346. padding-left: 12rpx;
  347. }
  348. .afterPrice {
  349. color: #333333;
  350. font-size: 36rpx;
  351. }
  352. }
  353. }
  354. .buyUsers {
  355. position: relative;
  356. margin: 24rpx 26rpx 0;
  357. background: #FFFFFF;
  358. border-radius: 20rpx;
  359. padding: 28rpx 24rpx;
  360. .buyuser_img {
  361. position: absolute;
  362. top: 0;
  363. right: 0;
  364. width: 160rpx !important;
  365. }
  366. .users {
  367. font-size: 32rpx;
  368. color: #777;
  369. display: flex;
  370. .username{
  371. display: inline-block;
  372. max-width: 250rpx;
  373. white-space: nowrap;
  374. overflow: hidden;
  375. text-overflow: ellipsis;
  376. }
  377. text {
  378. color: #131415;
  379. font-weight: bold;
  380. padding-right: 12rpx;
  381. }
  382. }
  383. .detail {
  384. padding-top: 8rpx;
  385. font-size: 26rpx;
  386. color: #777777;
  387. line-height: 36rpx;
  388. }
  389. }
  390. .order-time {
  391. margin: 24rpx 26rpx 0;
  392. border-radius: 20rpx;
  393. padding: 0 24rpx;
  394. background-color: #FFFFFF;
  395. .line {
  396. width: 100%;
  397. height: 2rpx;
  398. background: #F2F2F2;
  399. margin-bottom: 28rpx;
  400. }
  401. .order-item {
  402. display: flex;
  403. justify-content: space-between;
  404. padding: 36rpx 0;
  405. border-bottom: 2rpx solid #F0F0F0;
  406. &:last-child {
  407. border-bottom: 0;
  408. }
  409. .title {
  410. font-size: 30rpx;
  411. color: #131415;
  412. line-height: 40rpx;
  413. font-weight: bold;
  414. flex-shrink: 0;
  415. padding-right: 46rpx;
  416. }
  417. .value {
  418. font-size: 30rpx;
  419. color: #777777;
  420. line-height: 42rpx;
  421. display: flex;
  422. align-items: center;
  423. text-align: right;
  424. word-break: break-all;
  425. word-wrap: break-word;
  426. &.red {
  427. color: #FE2451;
  428. }
  429. &.expanded {
  430. .iconDown {
  431. transform: rotate(0deg);
  432. }
  433. }
  434. .iconDown {
  435. margin-left: 8rpx;
  436. width: 24rpx;
  437. height: 24rpx;
  438. transform: rotate(180deg);
  439. }
  440. .copy {
  441. font-size: 30rpx;
  442. color: #131415;
  443. line-height: 42rpx;
  444. display: flex;
  445. align-items: center;
  446. &.cell-line {
  447. margin-left: 16rpx;
  448. &::before {
  449. content: '';
  450. width: 2rpx;
  451. height: 22rpx;
  452. background: #DCDCDC;
  453. margin-right: 16rpx;
  454. }
  455. }
  456. }
  457. }
  458. }
  459. }
  460. .wechat-section {
  461. background: #FFFFFF;
  462. border-radius: 20rpx;
  463. padding: 28rpx 24rpx;
  464. margin: 24rpx 26rpx;
  465. display: flex;
  466. justify-content: space-between;
  467. align-items: center;
  468. .wechat-left {
  469. font-weight: 600;
  470. font-size: 28rpx;
  471. color: #000000;
  472. line-height: 40rpx;
  473. display: flex;
  474. align-items: center;
  475. image {
  476. margin-right: 16rpx;
  477. width: 40rpx;
  478. height: 34rpx;
  479. }
  480. }
  481. .checkbox {
  482. width: 32rpx;
  483. height: 32rpx;
  484. }
  485. }
  486. .order-btn {
  487. position: fixed;
  488. bottom: 0;
  489. left: 0;
  490. width: 100%;
  491. background-color: #FFFFFF;
  492. // display: flex;
  493. // justify-content: space-between;
  494. // justify-content: flex-end;
  495. // box-sizing: border-box;
  496. .orders {
  497. display: flex;
  498. flex-direction: column;
  499. margin-right: 40rpx;
  500. image {
  501. width: 48rpx;
  502. height: 48rpx;
  503. }
  504. text {
  505. font-weight: 500;
  506. font-size: 22rpx;
  507. color: #131415;
  508. line-height: 32rpx;
  509. text-align: center;
  510. }
  511. }
  512. .more {
  513. display: flex;
  514. justify-content: space-between;
  515. padding: 12rpx 32rpx 50rpx 32rpx;
  516. }
  517. .price-section {
  518. display: flex;
  519. flex-direction: column;
  520. justify-content: center;
  521. }
  522. .price {
  523. display: flex;
  524. align-items: flex-end;
  525. padding-bottom: 4rpx;
  526. .desc {
  527. font-size: 28rpx;
  528. color: #777;
  529. line-height: 40rpx;
  530. flex-shrink: 0;
  531. }
  532. .currentPrice {
  533. font-weight: bold;
  534. color: #333333;
  535. font-family: DINAlternate, DINAlternate;
  536. display: flex;
  537. align-items: flex-end;
  538. .stuff {
  539. font-size: 32rpx;
  540. padding: 0 8rpx 0 4rpx;
  541. }
  542. .priceZ {
  543. font-size: 48rpx;
  544. line-height: 1;
  545. }
  546. .priceF {
  547. font-size: 32rpx;
  548. }
  549. }
  550. .line {
  551. margin: 0 12rpx 8rpx;
  552. background-color: #D2D2D2;
  553. width: 2rpx;
  554. height: 20rpx;
  555. }
  556. }
  557. .discountPrice {
  558. font-size: 26rpx;
  559. color: #FE4600;
  560. text {
  561. padding-left: 6rpx;
  562. font-weight: bold;
  563. & + text {
  564. padding-left: 4rpx;
  565. }
  566. }
  567. }
  568. button {
  569. margin-left: 12rpx !important;
  570. line-height: 94rpx;
  571. padding: 0 !important;
  572. font-weight: 600;
  573. width: 292rpx !important;
  574. font-size: 32rpx;
  575. color: #FEFFCA;
  576. margin: 0 !important;
  577. flex-shrink: 0;
  578. background: linear-gradient(90deg, #544F4A 0%, #302F2B 100%);
  579. box-shadow: 0rpx 14rpx 14rpx 0rpx rgba(0, 0, 0, 0.18);
  580. border-radius: 36rpx;
  581. border: 8rpx solid #FFFFFF;
  582. }
  583. }
  584. .van-picker__toolbar,
  585. .toolbar-top {
  586. margin: 0 40rpx !important;
  587. padding: 0 14rpx !important;
  588. border-bottom: 2rpx solid #F2F2F2;
  589. height: auto !important;
  590. line-height: normal !important;
  591. }
  592. .van-picker__cancel,
  593. .van-picker__confirm,
  594. .toolbar-cancel,
  595. toolbar-confirm {
  596. font-size: 32rpx !important;
  597. padding: 28rpx 0 !important;
  598. color: #777777 !important;
  599. }
  600. .van-picker__confirm,
  601. .toolbar-confirm {
  602. color: #FE2451 !important;
  603. }
  604. .toolbar-top {
  605. display: flex;
  606. align-items: center;
  607. justify-content: space-between;
  608. }
  609. .addressContainer {
  610. background: linear-gradient(180deg, #FFDEE7 0%, #FFFFFF 12%, #FFFFFF 100%);
  611. border-radius: 32rpx 32rpx 0rpx 0rpx;
  612. height: 928rpx;
  613. display: flex;
  614. flex-direction: column;
  615. .icon-close {
  616. position: absolute;
  617. z-index: 2;
  618. top: 28rpx;
  619. right: 12rpx;
  620. padding: 20rpx;
  621. width: 30rpx;
  622. height: 30rpx;
  623. }
  624. .pop-address-title {
  625. position: relative;
  626. z-index: 1;
  627. text-align: center;
  628. padding-top: 36rpx;
  629. padding-bottom: 20rpx;
  630. font-weight: 600;
  631. font-size: 36rpx;
  632. color: #131415;
  633. line-height: 50rpx;
  634. }
  635. .cell-group {
  636. flex: 1 auto;
  637. .van-cell {
  638. padding: 36rpx 40rpx;
  639. font-size: 30rpx;
  640. }
  641. .van-field__label {
  642. color: #666666;
  643. }
  644. .van-icon-arrow {
  645. color: #BFBFBF;
  646. }
  647. .textarea {
  648. max-height: 72rpx;
  649. }
  650. }
  651. .van-picker-column__item--selected {
  652. font-weight: 600;
  653. font-size: 32rpx;
  654. color: #6D4718 !important;
  655. }
  656. .pop-btn-group {
  657. padding: 32rpx 32rpx 58rpx;
  658. }
  659. .submit-btn {
  660. width: 100% !important;
  661. margin: 0 !important;
  662. padding: 0 !important;
  663. line-height: 88rpx;
  664. background: linear-gradient(270deg, #FF204B 0%, #FE5B71 100%);
  665. border-radius: 88rpx;
  666. font-weight: 500;
  667. font-size: 32rpx;
  668. color: #fff;
  669. }
  670. }