order-result.less 14 KB

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