order-result.less 14 KB

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