order-result.less 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815
  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: 36rpx;
  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. width: 100%;
  300. }
  301. .users {
  302. display: flex;
  303. font-weight: 600;
  304. font-size: 32rpx;
  305. color: #131415;
  306. line-height: 44rpx;
  307. // width: 540rpx;
  308. // white-space: nowrap;
  309. // overflow: hidden;
  310. // text-overflow: ellipsis;
  311. }
  312. .address {
  313. padding-bottom: 16rpx;
  314. font-size: 28rpx;
  315. color: #333333;
  316. font-weight: bold;
  317. line-height: 40rpx;
  318. text {
  319. padding-right: 24rpx;
  320. &:last-child {
  321. color: #777777;
  322. font-weight: 400;
  323. }
  324. }
  325. }
  326. .selected {
  327. width: 100%;
  328. .users {
  329. font-weight: 400;
  330. font-size: 28rpx;
  331. color: #131415;
  332. display: block;
  333. // width: 600rpx;
  334. word-wrap: break-word;
  335. }
  336. .address {
  337. display: flex;
  338. // flex-direction: column;
  339. .userName {
  340. max-width: 300rpx;
  341. white-space: nowrap;
  342. overflow: hidden;
  343. text-overflow: ellipsis;
  344. }
  345. }
  346. }
  347. .arrow-right {
  348. width: 24rpx;
  349. height: 24rpx;
  350. }
  351. }
  352. .goodsInfos {
  353. margin-top: 30rpx;
  354. // border-top: 2rpx solid #F2F2F2;
  355. .qrcode-line {
  356. position: relative;
  357. // background: linear-gradient(to right, transparent 50%, rgba(219, 219, 219, 1) 50%) repeat-x; // 设置水平方向的线性渐变,透明与半透明色交替,模拟虚线线段
  358. // background-size: 10px 1px; // 设置背景大小,控制虚线的线段长度和粗细,这里线段长度为10px,粗细为1px
  359. background-color: #F2F2F2;
  360. height: 2rpx; // 元素高度,可根据实际需求调整,用于展示虚线效果的高度范围
  361. margin: 24rpx 0 28rpx;
  362. // &::before,
  363. // &::after {
  364. // content: '';
  365. // position: absolute;
  366. // top: -20rpx;
  367. // display: block;
  368. // width: 40rpx;
  369. // height: 40rpx;
  370. // background-color: #F4F4F4;
  371. // border-radius: 50%;
  372. // }
  373. // &::before {
  374. // left: -50rpx;
  375. // }
  376. // &::after {
  377. // right: -50rpx;
  378. // }
  379. }
  380. }
  381. .goodsInfo-item {
  382. display: flex;
  383. justify-content: space-between;
  384. align-items: center;
  385. padding-top: 28rpx;
  386. &:first-child {
  387. padding-top: 0;
  388. .title {
  389. color: #777;
  390. }
  391. }
  392. .title {
  393. font-weight: 400;
  394. font-size: 28rpx;
  395. color: #FE2451;
  396. line-height: 40rpx;
  397. }
  398. .goods-price {
  399. flex-shrink: 0;
  400. font-family: DINAlternate, DINAlternate;
  401. font-weight: bold;
  402. color: #131415;
  403. line-height: 48rpx;
  404. .stuff {
  405. font-size: 28rpx;
  406. padding-right: 4rpx;
  407. }
  408. .priceZ {
  409. font-size: 32rpx;
  410. }
  411. .priceF {
  412. font-size: 24rpx;
  413. }
  414. }
  415. .calc-price {
  416. // font-weight: bold;
  417. // font-size: 28rpx;
  418. color: #FF0047;
  419. // line-height: 32rpx;
  420. }
  421. }
  422. /* HTML: <div class="loader"></div> */
  423. .loader {
  424. position: absolute;
  425. top: 50%;
  426. left: 50%;
  427. right: 0;
  428. bottom: 0;
  429. margin-top: -50rpx;
  430. margin-left: -50rpx;
  431. z-index: 9;
  432. width: 100rpx;
  433. aspect-ratio: 1;
  434. border-radius: 50%;
  435. background:
  436. radial-gradient(farthest-side, #E8E8E8 94%, #0000) top/8px 8px no-repeat,
  437. conic-gradient(#0000 30%, #E8E8E8);
  438. -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 8px), #000 0);
  439. animation: tempLoading 1s infinite linear;
  440. }
  441. @keyframes tempLoading {
  442. 100% {
  443. transform: rotate(1turn)
  444. }
  445. }
  446. .only_canvas {
  447. position: absolute;
  448. left: -300rpx;
  449. top: 0;
  450. width: 262rpx;
  451. height: 262rpx;
  452. }
  453. .qrcode-section {
  454. margin-top: 28rpx;
  455. border-top: 2rpx solid #F0F0F0;
  456. padding-top: 60rpx;
  457. padding-bottom: 32rpx;
  458. text-align: center;
  459. .qrcode-wrap {
  460. position: relative;
  461. margin: 0 auto;
  462. border: 3rpx solid #EDEDED;
  463. padding: 10rpx;
  464. display: inline-block;
  465. font-size: 0;
  466. }
  467. .my_draw_canvas {
  468. width: 262rpx;
  469. height: 262rpx;
  470. }
  471. .qrcode-text {
  472. margin-top: 32rpx;
  473. padding: 0 32rpx;
  474. font-weight: 500;
  475. font-size: 28rpx;
  476. color: #131415;
  477. line-height: 40rpx;
  478. &.used {
  479. color: #AAAAAA;
  480. }
  481. }
  482. .qrcode-btn--section {
  483. display: flex;
  484. align-items: center;
  485. justify-content: center;
  486. padding-top: 32rpx;
  487. button {
  488. border-radius: 78rpx;
  489. // line-height: 68rpx;
  490. padding: 14rpx 30rpx;
  491. width: auto;
  492. border-radius: 68rpx;
  493. font-weight: 500;
  494. font-size: 28rpx;
  495. margin: 0 16rpx;
  496. min-width: 200rpx;
  497. box-sizing: border-box;
  498. &[disabled] {
  499. opacity: 0.7;
  500. }
  501. }
  502. .submit {
  503. background: linear-gradient(270deg, #FF7B57 0%, #FF3460 100%);
  504. color: #FFFFFF;
  505. }
  506. .download {
  507. background: #FEEDF0;
  508. color: #FE2451;
  509. }
  510. }
  511. }
  512. .buyUsers {
  513. position: relative;
  514. margin: 24rpx 26rpx 0;
  515. background: #FFFFFF;
  516. border-radius: 20rpx;
  517. padding: 28rpx 24rpx;
  518. .buyuser_img {
  519. position: absolute;
  520. top: 0;
  521. right: 0;
  522. width: 160rpx !important;
  523. }
  524. .users {
  525. font-size: 32rpx;
  526. color: #777;
  527. display: flex;
  528. .username{
  529. display: inline-block;
  530. max-width: 250rpx;
  531. white-space: nowrap;
  532. overflow: hidden;
  533. text-overflow: ellipsis;
  534. }
  535. text {
  536. color: #131415;
  537. font-weight: bold;
  538. padding-right: 12rpx;
  539. }
  540. }
  541. .detail {
  542. padding-top: 8rpx;
  543. font-size: 26rpx;
  544. color: #777777;
  545. line-height: 36rpx;
  546. }
  547. }
  548. .order-time {
  549. margin: 24rpx 26rpx 0;
  550. border-radius: 20rpx;
  551. padding: 0 24rpx;
  552. background-color: #FFFFFF;
  553. .line {
  554. width: 100%;
  555. height: 2rpx;
  556. background: #F2F2F2;
  557. margin-bottom: 28rpx;
  558. }
  559. .order-item {
  560. display: flex;
  561. justify-content: space-between;
  562. padding: 36rpx 0;
  563. border-bottom: 2rpx solid #F0F0F0;
  564. &:last-child {
  565. border-bottom: 0;
  566. }
  567. .title {
  568. font-size: 30rpx;
  569. color: #131415;
  570. line-height: 40rpx;
  571. flex-shrink: 0;
  572. font-weight: bold;
  573. padding-right: 46rpx;
  574. }
  575. .value {
  576. font-size: 30rpx;
  577. color: #777777;
  578. line-height: 42rpx;
  579. display: flex;
  580. align-items: center;
  581. text-align: right;
  582. word-break: break-all;
  583. word-wrap: break-word;
  584. &.red {
  585. color: #FE2451;
  586. }
  587. &.expanded {
  588. .iconDown {
  589. transform: rotate(0deg);
  590. }
  591. }
  592. .iconDown {
  593. margin-left: 8rpx;
  594. width: 24rpx;
  595. height: 24rpx;
  596. transform: rotate(180deg);
  597. }
  598. .copy {
  599. font-size: 30rpx;
  600. color: #131415;
  601. line-height: 42rpx;
  602. display: flex;
  603. align-items: center;
  604. &.cell-line {
  605. margin-left: 16rpx;
  606. &::before {
  607. content: '';
  608. width: 2rpx;
  609. height: 22rpx;
  610. background: #DCDCDC;
  611. margin-right: 16rpx;
  612. }
  613. }
  614. }
  615. }
  616. }
  617. }
  618. .btn-refound {
  619. padding-top: 40rpx;
  620. text-align: center;
  621. font-size: 28rpx;
  622. color: #A7ABAF;
  623. line-height: 40rpx;
  624. }
  625. .order-btn {
  626. position: fixed;
  627. bottom: 0;
  628. left: 0;
  629. width: 100%;
  630. background-color: #FFFFFF;
  631. padding: 20rpx 32rpx 58rpx 40rpx;
  632. display: flex;
  633. justify-content: space-between;
  634. box-sizing: border-box;
  635. .orders {
  636. display: flex;
  637. flex-direction: column;
  638. margin-right: 40rpx;
  639. image {
  640. width: 48rpx;
  641. height: 48rpx;
  642. }
  643. text {
  644. font-weight: 500;
  645. font-size: 22rpx;
  646. color: #131415;
  647. line-height: 32rpx;
  648. text-align: center;
  649. }
  650. }
  651. .price {
  652. display: flex;
  653. align-items: center;
  654. .desc {
  655. font-weight: 500;
  656. font-size: 28rpx;
  657. color: #131415;
  658. line-height: 40rpx;
  659. }
  660. .currentPrice {
  661. font-weight: bold;
  662. color: #FE2451;
  663. font-family: DINAlternate, DINAlternate;
  664. .stuff {
  665. font-size: 32rpx;
  666. }
  667. .priceZ {
  668. font-size: 56rpx;
  669. }
  670. .priceF {
  671. font-size: 32rpx;
  672. }
  673. }
  674. }
  675. button {
  676. margin: 0;
  677. width: 100%;
  678. background: linear-gradient(270deg, #FF204B 0%, #FE5B71 100%);
  679. border-radius: 78rpx;
  680. padding: 22rpx 84rpx;
  681. font-weight: 500;
  682. font-size: 32rpx;
  683. color: #FFFFFF;
  684. line-height: 44rpx;
  685. &[disabled][type=primary] {
  686. color: #fff;
  687. background: linear-gradient(270deg, #FF204B 0%, #FE5B71 100%);
  688. opacity: 0.7;
  689. }
  690. }
  691. }