order-result.less 14 KB

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