order-result.less 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828
  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. align-items: center;
  89. padding-top: 12rpx;
  90. .goods-name {
  91. flex: 1 auto;
  92. white-space: nowrap;
  93. overflow: hidden;
  94. font-weight: 600;
  95. font-size: 30rpx;
  96. color: #333;
  97. line-height: 50rpx;
  98. text-overflow: ellipsis;
  99. max-width: 280rpx;
  100. }
  101. .goods-current-price {
  102. font-weight: bold;
  103. font-family: DINAlternate, DINAlternate;
  104. font-size: 28rpx;
  105. color: #131415;
  106. line-height: 48rpx;
  107. text {
  108. font-size: 36rpx;
  109. padding-left: 4rpx;
  110. }
  111. }
  112. }
  113. .goods-price {
  114. flex-shrink: 0;
  115. font-family: DINAlternate, DINAlternate;
  116. font-weight: bold;
  117. color: #131415;
  118. line-height: 48rpx;
  119. font-size: 28px;
  120. text {
  121. padding-left: 2rpx;
  122. font-size: 36rpx
  123. }
  124. .stuff {
  125. font-size: 28rpx;
  126. padding-right: 4rpx;
  127. }
  128. .priceZ {
  129. font-size: 40rpx;
  130. }
  131. .priceF {
  132. font-size: 32rpx;
  133. }
  134. }
  135. .origin-price {
  136. font-weight: 400;
  137. font-size: 24rpx;
  138. color: #6D4718;
  139. line-height: 1;
  140. }
  141. .goods-type {
  142. display: flex;
  143. align-items: center;
  144. padding-top: 10rpx;
  145. justify-content: space-between;
  146. .goods-card {
  147. background: #FFF1E0;
  148. border-radius: 6rpx;
  149. font-size: 26rpx;
  150. color: #FE4600;
  151. line-height: 40rpx;
  152. padding: 0 12rpx;
  153. }
  154. .goods-num {
  155. font-size: 26rpx;
  156. color: #AAA;
  157. line-height: 36rpx;
  158. }
  159. }
  160. }
  161. .goodsInfos {
  162. margin-top: 30rpx;
  163. // border-top: 2rpx solid #F2F2F2;
  164. .qrcode-line {
  165. position: relative;
  166. // background: linear-gradient(to right, transparent 50%, rgba(219, 219, 219, 1) 50%) repeat-x; // 设置水平方向的线性渐变,透明与半透明色交替,模拟虚线线段
  167. // background-size: 10px 1px; // 设置背景大小,控制虚线的线段长度和粗细,这里线段长度为10px,粗细为1px
  168. background-color: #F2F2F2;
  169. height: 2rpx; // 元素高度,可根据实际需求调整,用于展示虚线效果的高度范围
  170. margin: 24rpx 0 28rpx;
  171. // &::before,
  172. // &::after {
  173. // content: '';
  174. // position: absolute;
  175. // top: -20rpx;
  176. // display: block;
  177. // width: 40rpx;
  178. // height: 40rpx;
  179. // background-color: #F4F4F4;
  180. // border-radius: 50%;
  181. // }
  182. // &::before {
  183. // left: -50rpx;
  184. // }
  185. // &::after {
  186. // right: -50rpx;
  187. // }
  188. }
  189. }
  190. .goodsInfo-item {
  191. display: flex;
  192. justify-content: space-between;
  193. align-items: center;
  194. padding-top: 28rpx;
  195. &:first-child {
  196. padding-top: 0;
  197. .title {
  198. color: #777;
  199. }
  200. }
  201. .title {
  202. font-weight: 400;
  203. font-size: 28rpx;
  204. color: #FE2451;
  205. line-height: 40rpx;
  206. }
  207. .goods-price {
  208. flex-shrink: 0;
  209. font-family: DINAlternate, DINAlternate;
  210. font-weight: bold;
  211. color: #131415;
  212. line-height: 48rpx;
  213. .stuff {
  214. font-size: 28rpx;
  215. padding-right: 4rpx;
  216. }
  217. .priceZ {
  218. font-size: 32rpx;
  219. }
  220. .priceF {
  221. font-size: 24rpx;
  222. }
  223. }
  224. .calc-price {
  225. // font-weight: bold;
  226. // font-size: 28rpx;
  227. color: #FF0047;
  228. // line-height: 32rpx;
  229. }
  230. }
  231. .goodsInfo-count {
  232. display: flex;
  233. justify-content: flex-end;
  234. .goods-price {
  235. flex-shrink: 0;
  236. font-family: DINAlternate, DINAlternate;
  237. font-weight: bold;
  238. color: #131415;
  239. // line-height: 48rpx;
  240. display: flex;
  241. align-items: flex-end;
  242. .before {
  243. font-weight: 400;
  244. font-size: 24rpx;
  245. color: #777777;
  246. vertical-align: middle;
  247. padding-right: 6rpx;
  248. }
  249. .red {
  250. color: #FE4600;
  251. }
  252. .stuff {
  253. font-size: 28rpx;
  254. padding-right: 4rpx;
  255. line-height: 1.1;
  256. }
  257. .priceZ {
  258. font-size: 36rpx;
  259. line-height: 1;
  260. color: #FE4600;
  261. }
  262. .priceF {
  263. font-size: 24rpx;
  264. color: #FE4600;
  265. }
  266. .afterTxt {
  267. font-weight: 400;
  268. font-size: 24rpx;
  269. color: #777777;
  270. vertical-align: middle;
  271. padding-left: 12rpx;
  272. }
  273. .afterPrice {
  274. color: #333333;
  275. font-size: 36rpx;
  276. line-height: 1;
  277. }
  278. }
  279. }
  280. .addBuyer {
  281. position: relative;
  282. margin: 26rpx;
  283. background: #fff;
  284. border-radius: 20rpx;
  285. display: flex;
  286. align-items: center;
  287. justify-content: space-between;
  288. padding: 24rpx;
  289. overflow: hidden;
  290. .addressTop {
  291. position: absolute;
  292. z-index: 1;
  293. top: 0;
  294. left: 0;
  295. width: 100%;
  296. }
  297. .icon-man {
  298. width: 44rpx;
  299. height: 44rpx;
  300. margin-right: 16rpx;
  301. flex-shrink: 0;
  302. &.selected {
  303. width: 36rpx;
  304. height: 36rpx;
  305. }
  306. }
  307. .addBuyer-left {
  308. display: flex;
  309. width: 100%;
  310. }
  311. .users {
  312. display: flex;
  313. font-weight: 600;
  314. font-size: 32rpx;
  315. color: #131415;
  316. line-height: 44rpx;
  317. // width: 540rpx;
  318. // white-space: nowrap;
  319. // overflow: hidden;
  320. // text-overflow: ellipsis;
  321. }
  322. .address {
  323. padding-bottom: 16rpx;
  324. font-size: 28rpx;
  325. color: #333333;
  326. font-weight: bold;
  327. line-height: 40rpx;
  328. display: flex;
  329. align-items: center;
  330. text {
  331. padding-right: 24rpx;
  332. &:last-child {
  333. color: #777777;
  334. font-weight: 400;
  335. }
  336. }
  337. }
  338. .selected {
  339. width: 100%;
  340. .users {
  341. font-weight: 400;
  342. font-size: 28rpx;
  343. color: #131415;
  344. display: block;
  345. // width: 600rpx;
  346. word-wrap: break-word;
  347. word-break: break-all;
  348. }
  349. .address {
  350. display: flex;
  351. // flex-direction: column;
  352. .userName {
  353. max-width: 300rpx;
  354. white-space: nowrap;
  355. overflow: hidden;
  356. text-overflow: ellipsis;
  357. }
  358. }
  359. }
  360. .arrow-right {
  361. width: 24rpx;
  362. height: 24rpx;
  363. }
  364. }
  365. .goodsInfos {
  366. margin-top: 30rpx;
  367. // border-top: 2rpx solid #F2F2F2;
  368. .qrcode-line {
  369. position: relative;
  370. // background: linear-gradient(to right, transparent 50%, rgba(219, 219, 219, 1) 50%) repeat-x; // 设置水平方向的线性渐变,透明与半透明色交替,模拟虚线线段
  371. // background-size: 10px 1px; // 设置背景大小,控制虚线的线段长度和粗细,这里线段长度为10px,粗细为1px
  372. background-color: #F2F2F2;
  373. height: 2rpx; // 元素高度,可根据实际需求调整,用于展示虚线效果的高度范围
  374. margin: 24rpx 0 28rpx;
  375. // &::before,
  376. // &::after {
  377. // content: '';
  378. // position: absolute;
  379. // top: -20rpx;
  380. // display: block;
  381. // width: 40rpx;
  382. // height: 40rpx;
  383. // background-color: #F4F4F4;
  384. // border-radius: 50%;
  385. // }
  386. // &::before {
  387. // left: -50rpx;
  388. // }
  389. // &::after {
  390. // right: -50rpx;
  391. // }
  392. }
  393. }
  394. .goodsInfo-item {
  395. display: flex;
  396. justify-content: space-between;
  397. align-items: center;
  398. padding-top: 28rpx;
  399. &:first-child {
  400. padding-top: 0;
  401. .title {
  402. color: #777;
  403. }
  404. }
  405. .title {
  406. font-weight: 400;
  407. font-size: 28rpx;
  408. color: #FE2451;
  409. line-height: 40rpx;
  410. }
  411. .goods-price {
  412. flex-shrink: 0;
  413. font-family: DINAlternate, DINAlternate;
  414. font-weight: bold;
  415. color: #131415;
  416. line-height: 48rpx;
  417. .stuff {
  418. font-size: 28rpx;
  419. padding-right: 4rpx;
  420. }
  421. .priceZ {
  422. font-size: 32rpx;
  423. }
  424. .priceF {
  425. font-size: 24rpx;
  426. }
  427. }
  428. .calc-price {
  429. // font-weight: bold;
  430. // font-size: 28rpx;
  431. color: #FF0047;
  432. // line-height: 32rpx;
  433. }
  434. }
  435. /* HTML: <div class="loader"></div> */
  436. // .loader {
  437. // position: absolute;
  438. // top: 50%;
  439. // left: 50%;
  440. // right: 0;
  441. // bottom: 0;
  442. // margin-top: -50rpx;
  443. // margin-left: -50rpx;
  444. // z-index: 9;
  445. // width: 100rpx;
  446. // aspect-ratio: 1;
  447. // border-radius: 50%;
  448. // background:
  449. // radial-gradient(farthest-side, #E8E8E8 94%, #0000) top/8px 8px no-repeat,
  450. // conic-gradient(#0000 30%, #E8E8E8);
  451. // -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 8px), #000 0);
  452. // animation: tempLoading 1s infinite linear;
  453. // }
  454. // @keyframes tempLoading {
  455. // 100% {
  456. // transform: rotate(1turn)
  457. // }
  458. // }
  459. .only_canvas {
  460. position: absolute;
  461. left: -300rpx;
  462. top: 0;
  463. width: 262rpx;
  464. height: 262rpx;
  465. }
  466. .qrcode-section {
  467. margin-top: 28rpx;
  468. border-top: 2rpx solid #F0F0F0;
  469. padding-top: 60rpx;
  470. padding-bottom: 32rpx;
  471. text-align: center;
  472. .qrcode-wrap {
  473. position: relative;
  474. margin: 0 auto;
  475. border: 3rpx solid #EDEDED;
  476. padding: 10rpx;
  477. display: inline-block;
  478. font-size: 0;
  479. }
  480. .my_draw_canvas {
  481. width: 262rpx;
  482. height: 262rpx;
  483. }
  484. .qrcode-text {
  485. margin-top: 32rpx;
  486. padding: 0 32rpx;
  487. font-weight: 500;
  488. font-size: 28rpx;
  489. color: #131415;
  490. line-height: 40rpx;
  491. &.used {
  492. color: #AAAAAA;
  493. }
  494. }
  495. .qrcode-btn--section {
  496. display: flex;
  497. align-items: center;
  498. justify-content: center;
  499. padding-top: 32rpx;
  500. button {
  501. border-radius: 78rpx;
  502. // line-height: 68rpx;
  503. padding: 14rpx 30rpx;
  504. width: auto;
  505. border-radius: 68rpx;
  506. font-weight: 500;
  507. font-size: 28rpx;
  508. margin: 0 16rpx;
  509. min-width: 200rpx;
  510. box-sizing: border-box;
  511. &[disabled] {
  512. opacity: 0.7;
  513. }
  514. }
  515. .submit {
  516. background: linear-gradient(270deg, #FF7B57 0%, #FF3460 100%);
  517. color: #FFFFFF;
  518. }
  519. .download {
  520. background: #FEEDF0;
  521. color: #FE2451;
  522. }
  523. }
  524. }
  525. .buyUsers {
  526. position: relative;
  527. margin: 24rpx 26rpx 0;
  528. background: #FFFFFF;
  529. border-radius: 20rpx;
  530. padding: 28rpx 24rpx;
  531. .buyuser_img {
  532. position: absolute;
  533. top: 0;
  534. right: 0;
  535. width: 160rpx !important;
  536. }
  537. .users {
  538. font-size: 32rpx;
  539. color: #777;
  540. display: flex;
  541. .username {
  542. display: inline-block;
  543. max-width: 250rpx;
  544. white-space: nowrap;
  545. overflow: hidden;
  546. text-overflow: ellipsis;
  547. }
  548. text {
  549. color: #131415;
  550. font-weight: bold;
  551. padding-right: 12rpx;
  552. }
  553. }
  554. .detail {
  555. padding-top: 8rpx;
  556. font-size: 26rpx;
  557. color: #777777;
  558. line-height: 36rpx;
  559. }
  560. }
  561. .order-time {
  562. margin: 24rpx 26rpx 0;
  563. border-radius: 20rpx;
  564. padding: 0 24rpx;
  565. background-color: #FFFFFF;
  566. .line {
  567. width: 100%;
  568. height: 2rpx;
  569. background: #F2F2F2;
  570. margin-bottom: 28rpx;
  571. }
  572. .order-item {
  573. display: flex;
  574. justify-content: space-between;
  575. padding: 36rpx 0;
  576. border-bottom: 2rpx solid #F0F0F0;
  577. &:last-child {
  578. border-bottom: 0;
  579. }
  580. .title {
  581. font-size: 30rpx;
  582. color: #131415;
  583. line-height: 40rpx;
  584. flex-shrink: 0;
  585. font-weight: bold;
  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. }