order-result.less 14 KB

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