order-detail.less 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814
  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. }
  12. .record-list {
  13. flex: 1;
  14. overflow-y: scroll;
  15. box-sizing: border-box;
  16. }
  17. .order-content {
  18. margin: 24rpx 26rpx 0;
  19. border-radius: 20rpx;
  20. padding: 32rpx 24rpx;
  21. // display: flex;
  22. background-color: #ffffff;
  23. .goods-title {
  24. font-weight: 600;
  25. font-size: 30rpx;
  26. color: #502f00;
  27. line-height: 42rpx;
  28. padding: 0 0 32rpx;
  29. }
  30. }
  31. .item-content {
  32. display: flex;
  33. width: 100%;
  34. & + .item-content {
  35. padding-top: 60rpx;
  36. }
  37. .goods-icon {
  38. width: 140rpx;
  39. height: 140rpx;
  40. margin-right: 24rpx;
  41. flex-shrink: 0;
  42. border-radius: 6px;
  43. overflow: hidden;
  44. }
  45. .goods-desc {
  46. flex: 1 auto;
  47. display: flex;
  48. flex-direction: column;
  49. }
  50. .goodsInfo {
  51. display: flex;
  52. justify-content: space-between;
  53. padding-top: 4rpx;
  54. .goods-name {
  55. flex: 1 auto;
  56. white-space: nowrap;
  57. overflow: hidden;
  58. font-weight: 600;
  59. font-size: 30rpx;
  60. color: #131415;
  61. line-height: 50rpx;
  62. text-overflow: ellipsis;
  63. max-width: 480rpx;
  64. }
  65. }
  66. .goods-price {
  67. flex-shrink: 0;
  68. font-family: DINAlternate, DINAlternate;
  69. font-weight: bold;
  70. color: #131415;
  71. line-height: 48rpx;
  72. .stuff {
  73. font-size: 28rpx;
  74. padding-right: 4rpx;
  75. }
  76. .priceZ {
  77. font-size: 40rpx;
  78. }
  79. .priceF {
  80. font-size: 32rpx;
  81. }
  82. }
  83. .origin-price {
  84. font-weight: 400;
  85. font-size: 24rpx;
  86. color: #6d4718;
  87. line-height: 1;
  88. text {
  89. text-decoration: line-through;
  90. padding-left: 6rpx;
  91. }
  92. }
  93. .goods-type {
  94. display: flex;
  95. align-items: center;
  96. padding-top: 28rpx;
  97. .goods-card {
  98. height: 40rpx;
  99. background: #fdf2e2;
  100. border-radius: 6rpx;
  101. font-size: 26rpx;
  102. color: #502f00;
  103. line-height: 40rpx;
  104. padding: 0 12rpx;
  105. }
  106. .goods-num {
  107. font-size: 28rpx;
  108. color: #777;
  109. line-height: 36rpx;
  110. }
  111. }
  112. }
  113. .goodsInfos {
  114. margin-top: 32rpx;
  115. // border-top: 2rpx solid #F2F2F2;
  116. .qrcode-line {
  117. position: relative;
  118. background: linear-gradient(
  119. to right,
  120. transparent 50%,
  121. rgba(242, 242, 242, 1) 50%
  122. )
  123. repeat-x; // 设置水平方向的线性渐变,透明与半透明色交替,模拟虚线线段
  124. background-size: 6px 1px; // 设置背景大小,控制虚线的线段长度和粗细,这里线段长度为10px,粗细为1px
  125. height: 2rpx; // 元素高度,可根据实际需求调整,用于展示虚线效果的高度范围
  126. // margin: 42rpx 0 32rpx;
  127. &::before,
  128. &::after {
  129. content: "";
  130. position: absolute;
  131. top: -20rpx;
  132. display: block;
  133. width: 40rpx;
  134. height: 40rpx;
  135. background-color: #f4f4f4;
  136. border-radius: 50%;
  137. }
  138. &::before {
  139. left: -45rpx;
  140. }
  141. &::after {
  142. right: -45rpx;
  143. }
  144. }
  145. }
  146. .goodsInfo-item {
  147. display: flex;
  148. justify-content: space-between;
  149. align-items: center;
  150. padding-top: 32rpx;
  151. .title {
  152. font-weight: 400;
  153. font-size: 28rpx;
  154. color: #131415;
  155. line-height: 40rpx;
  156. }
  157. .goods-price {
  158. flex-shrink: 0;
  159. font-family: DINAlternate, DINAlternate;
  160. font-weight: bold;
  161. color: #131415;
  162. line-height: 48rpx;
  163. .stuff {
  164. font-size: 32rpx;
  165. padding-right: 4rpx;
  166. }
  167. .priceZ {
  168. font-size: 48rpx;
  169. }
  170. .priceF {
  171. font-size: 32rpx;
  172. }
  173. }
  174. .calc-price {
  175. font-weight: bold;
  176. font-size: 28rpx;
  177. color: #ff0047;
  178. line-height: 32rpx;
  179. }
  180. }
  181. .goodsInfo-count {
  182. display: flex;
  183. justify-content: flex-end;
  184. .goods-price {
  185. flex-shrink: 0;
  186. font-family: DINAlternate, DINAlternate;
  187. font-weight: bold;
  188. color: #131415;
  189. line-height: 48rpx;
  190. .before {
  191. font-weight: 500;
  192. font-size: 28rpx;
  193. color: #131415;
  194. line-height: 40rpx;
  195. }
  196. .stuff {
  197. font-size: 32rpx;
  198. padding-right: 4rpx;
  199. }
  200. .priceZ {
  201. font-size: 48rpx;
  202. }
  203. .priceF {
  204. font-size: 38rpx;
  205. }
  206. }
  207. }
  208. .select-section {
  209. margin: 24rpx 26rpx 0;
  210. background: #ffffff;
  211. border-radius: 20rpx;
  212. padding: 24rpx;
  213. display: flex;
  214. align-items: center;
  215. justify-content: space-between;
  216. .name {
  217. font-weight: 600;
  218. font-size: 30rpx;
  219. color: #000000;
  220. line-height: 42rpx;
  221. }
  222. .icon-arrow {
  223. width: 24rpx;
  224. height: 24rpx;
  225. }
  226. .add-buy-btn {
  227. width: 104rpx;
  228. background: linear-gradient(90deg, #544f4a 0%, #302f2b 100%);
  229. border-radius: 26rpx;
  230. margin: 0;
  231. padding: 0;
  232. font-weight: 600;
  233. font-size: 24rpx;
  234. color: #fbeac9;
  235. line-height: 44rpx;
  236. display: flex;
  237. align-items: center;
  238. justify-content: center;
  239. }
  240. }
  241. .addPhone {
  242. padding: 12rpx;
  243. .van-field__label {
  244. font-weight: 600;
  245. color: #666666;
  246. width: 200rpx;
  247. }
  248. .van-cell__title {
  249. max-width: 5em !important;
  250. min-width: 5em !important;
  251. }
  252. }
  253. .select-address {
  254. .address-info {
  255. padding-right: 36rpx;
  256. }
  257. .address-text {
  258. font-weight: 600;
  259. font-size: 30rpx;
  260. color: #000000;
  261. line-height: 42rpx;
  262. word-break: break-all;
  263. word-wrap: break-word;
  264. max-width: 650rpx;
  265. }
  266. .address-user {
  267. padding-top: 12rpx;
  268. font-size: 28rpx;
  269. color: #333333;
  270. line-height: 40rpx;
  271. display: flex;
  272. .username {
  273. display: inline-block;
  274. word-break: break-all;
  275. word-wrap: break-word;
  276. max-width: 250rpx;
  277. white-space: nowrap;
  278. overflow: hidden;
  279. text-overflow: ellipsis;
  280. }
  281. text {
  282. padding-right: 12rpx;
  283. &:last-child {
  284. color: #777;
  285. }
  286. }
  287. }
  288. .icon-arrow {
  289. width: 24rpx;
  290. height: 24rpx;
  291. flex-shrink: 0;
  292. }
  293. }
  294. .select-buy-user {
  295. flex-direction: column;
  296. padding: 34rpx 24rpx;
  297. .title {
  298. display: flex;
  299. width: 100%;
  300. justify-content: space-between;
  301. padding-bottom: 32rpx;
  302. border-bottom: 2rpx solid #f2f2f2;
  303. .name {
  304. color: #502f00;
  305. }
  306. }
  307. .user-list {
  308. padding-top: 32rpx;
  309. width: 100%;
  310. }
  311. .user-item {
  312. padding-bottom: 32rpx;
  313. font-size: 28rpx;
  314. color: #131415;
  315. line-height: 40rpx;
  316. display: flex;
  317. // align-items: center;
  318. justify-content: space-between;
  319. &:last-child {
  320. padding-bottom: 0;
  321. }
  322. .left-label {
  323. width: 196rpx;
  324. }
  325. .right-value {
  326. flex: 1;
  327. text-align: right;
  328. color: #777777;
  329. word-break: break-all;
  330. word-wrap: break-word;
  331. }
  332. }
  333. }
  334. .order-time {
  335. margin: 24rpx 26rpx 0;
  336. border-radius: 20rpx;
  337. // padding: 36rpx 24rpx;
  338. background-color: #ffffff;
  339. .order-item {
  340. display: flex;
  341. justify-content: space-between;
  342. // padding-bottom: 36rpx;
  343. padding: 36rpx 0;
  344. margin: 0 24rpx;
  345. border-bottom: 2rpx solid #f0f0f0;
  346. &:last-child {
  347. border-bottom: none;
  348. }
  349. .title {
  350. font-weight: 500;
  351. font-size: 30rpx;
  352. color: #131415;
  353. line-height: 42rpx;
  354. }
  355. .value {
  356. font-size: 30rpx;
  357. color: #777777;
  358. line-height: 42rpx;
  359. display: flex;
  360. &.red {
  361. color: #fe2451;
  362. }
  363. .copy {
  364. font-size: 30rpx;
  365. color: #131415;
  366. line-height: 42rpx;
  367. display: flex;
  368. align-items: center;
  369. &::before {
  370. content: "";
  371. display: block;
  372. width: 2rpx;
  373. height: 22rpx;
  374. background: #dcdcdc;
  375. margin: 0 16rpx;
  376. }
  377. }
  378. }
  379. }
  380. }
  381. .order-btn {
  382. margin-top: 24rpx;
  383. // position: fixed;
  384. // bottom: 0;
  385. // left: 0;
  386. width: 100%;
  387. background-color: #ffffff;
  388. padding: 20rpx 32rpx 58rpx 40rpx;
  389. display: flex;
  390. justify-content: space-between;
  391. box-sizing: border-box;
  392. .orders {
  393. display: flex;
  394. flex-direction: column;
  395. margin-right: 40rpx;
  396. image {
  397. width: 48rpx;
  398. height: 48rpx;
  399. }
  400. text {
  401. font-weight: 500;
  402. font-size: 22rpx;
  403. color: #131415;
  404. line-height: 32rpx;
  405. text-align: center;
  406. }
  407. }
  408. .more {
  409. display: flex;
  410. }
  411. // .price {
  412. // display: flex;
  413. // align-items: center;
  414. // .desc {
  415. // font-weight: 500;
  416. // font-size: 28rpx;
  417. // color: #131415;
  418. // line-height: 40rpx;
  419. // padding-top: 20rpx;
  420. // }
  421. // .currentPrice {
  422. // font-weight: bold;
  423. // color: #ff0047;
  424. // font-family: DINAlternate, DINAlternate;
  425. // .stuff {
  426. // font-size: 32rpx;
  427. // }
  428. // .priceZ {
  429. // font-size: 56rpx;
  430. // }
  431. // .priceF {
  432. // font-size: 32rpx;
  433. // }
  434. // }
  435. // }
  436. button {
  437. width: 100%;
  438. background: linear-gradient(90deg, #544f4a 0%, #302f2b 100%);
  439. border-radius: 88rpx;
  440. padding: 22rpx 84rpx;
  441. font-weight: 500;
  442. font-size: 32rpx;
  443. color: #fbeac9;
  444. line-height: 44rpx;
  445. display: flex;
  446. justify-content: center;
  447. }
  448. .btnGroup {
  449. position: relative;
  450. width: 100%;
  451. .currentPrice {
  452. font-weight: bold;
  453. color: #fbeac9;
  454. font-family: DINAlternate, DINAlternate;
  455. display: flex;
  456. align-items: flex-end;
  457. .before {
  458. font-size: 28rpx;
  459. font-weight: 500;
  460. padding-right: 4rpx;
  461. }
  462. .after {
  463. font-weight: 500;
  464. font-size: 32rpx;
  465. padding-left: 12rpx;
  466. }
  467. .stuff {
  468. font-size: 32rpx;
  469. }
  470. .priceZ {
  471. font-size: 56rpx;
  472. line-height: 1;
  473. }
  474. .priceF {
  475. font-size: 32rpx;
  476. }
  477. }
  478. }
  479. .btnInnerFree {
  480. position: absolute;
  481. right: 0;
  482. top: -28rpx;
  483. background: linear-gradient(180deg, #ff5181 0%, #ff0047 100%);
  484. border-radius: 150rpx 200rpx 200rpx 0rpx;
  485. border: 2rpx solid #ffffff;
  486. padding: 0 8rpx;
  487. font-size: 24rpx;
  488. color: #ffffff;
  489. line-height: 34rpx;
  490. padding-top: 2rpx;
  491. overflow: hidden;
  492. font-weight: bold;
  493. text {
  494. font-weight: bold;
  495. }
  496. }
  497. }
  498. .top-bg {
  499. position: absolute;
  500. top: 0;
  501. left: 0;
  502. width: 100%;
  503. height: 49px;
  504. background: linear-gradient(180deg, #fbead0 0%, #ffffff 100%);
  505. border-radius: 16px 16px 0rpx 0rpx;
  506. }
  507. .icon-close {
  508. position: absolute;
  509. z-index: 2;
  510. top: 14px;
  511. right: 6px;
  512. padding: 10px;
  513. width: 15px;
  514. height: 15px;
  515. }
  516. .pop-address-title {
  517. position: relative;
  518. z-index: 1;
  519. text-align: center;
  520. padding-top: 18px;
  521. padding-bottom: 13px;
  522. font-weight: 600;
  523. font-size: 18px;
  524. color: #131415;
  525. line-height: 25px;
  526. }
  527. .cell-group {
  528. .van-cell {
  529. padding: 13px 14px !important;
  530. font-size: 15px !important;
  531. // line-height: 42rpx !important;
  532. --cell-line-height: 21px !important;
  533. }
  534. .required {
  535. font-weight: 600;
  536. color: #666666;
  537. text {
  538. color: #ff5a56;
  539. }
  540. }
  541. .van-field__label {
  542. font-weight: 600;
  543. color: #666666;
  544. }
  545. .van-icon-arrow {
  546. color: #cccccc;
  547. font-weight: 600;
  548. }
  549. .textarea {
  550. height: 72rpx;
  551. }
  552. }
  553. .van-picker-column__item--selected {
  554. font-weight: 600;
  555. font-size: 16px;
  556. color: #6d4718 !important;
  557. }
  558. .pop-btn-group {
  559. padding: 50px 16px 30px;
  560. }
  561. .submit-btn {
  562. width: 100% !important;
  563. margin: 0 !important;
  564. padding: 0 !important;
  565. line-height: 44px;
  566. background: linear-gradient(90deg, #544f4a 0%, #302f2b 100%);
  567. border-radius: 44px;
  568. font-weight: 500;
  569. font-size: 16px;
  570. color: #fbeac9;
  571. }
  572. .address-list {
  573. padding: 30rpx 26rpx 0;
  574. max-height: 534rpx;
  575. overflow-x: hidden;
  576. overflow-y: auto;
  577. }
  578. .address-item {
  579. padding: 24rpx;
  580. background: #ffffff;
  581. border-radius: 20rpx;
  582. border: 2px solid #f2f2f2;
  583. margin-bottom: 22rpx;
  584. &.active {
  585. border: 2px solid #855f2e;
  586. }
  587. .item-title {
  588. font-weight: 600;
  589. font-size: 15px;
  590. color: #000000;
  591. line-height: 21px;
  592. word-break: break-all;
  593. word-wrap: break-word;
  594. }
  595. .item-users {
  596. display: flex;
  597. justify-content: space-between;
  598. padding-top: 12px;
  599. .item-user {
  600. font-size: 14px;
  601. color: #333333;
  602. line-height: 20px;
  603. display: flex;
  604. align-items: center;
  605. text {
  606. padding-right: 4px;
  607. &:first-child {
  608. max-width: 200rpx;
  609. white-space: nowrap;
  610. overflow: hidden;
  611. display: block;
  612. text-overflow: ellipsis;
  613. }
  614. &:last-child {
  615. color: #777;
  616. }
  617. }
  618. }
  619. .item-btn-group {
  620. display: flex;
  621. flex: 1;
  622. justify-content: flex-end;
  623. .btn {
  624. width: 52px;
  625. padding: 0 !important;
  626. margin: 0 0 0 12rpx !important;
  627. line-height: 22px;
  628. border-radius: 44rpx;
  629. font-weight: 600;
  630. font-size: 12px;
  631. color: #333333;
  632. border: 2rpx solid #dcdcdc;
  633. background-color: #fff;
  634. }
  635. .update-btn {
  636. background: linear-gradient(90deg, #544f4a 0%, #302f2b 100%);
  637. color: #fbeac9;
  638. border: none !important;
  639. line-height: 24px;
  640. }
  641. }
  642. }
  643. }
  644. .pop-btn-list {
  645. padding-top: 20rpx;
  646. box-shadow: inset 0rpx 2rpx 0rpx 0rpx #f0f0f0;
  647. }
  648. .dialog-section {
  649. width: 532rpx;
  650. .dialog-title {
  651. padding: 48rpx 0;
  652. text-align: center;
  653. font-weight: 600;
  654. font-size: 32rpx;
  655. color: #131415;
  656. line-height: 44rpx;
  657. }
  658. .dialog-btn-group {
  659. border-top: 2rpx solid #f2f2f2;
  660. display: flex;
  661. align-items: center;
  662. .btn {
  663. flex: 1;
  664. text-align: center;
  665. line-height: 80rpx;
  666. font-size: 28rpx;
  667. color: #777777;
  668. }
  669. .del-btn {
  670. color: #6d4718;
  671. border-left: 2rpx solid #f2f2f2;
  672. }
  673. }
  674. }
  675. .empty-box {
  676. text-align: center;
  677. font-size: 32rpx;
  678. font-family:
  679. PingFangSC-Regular,
  680. PingFang SC;
  681. font-weight: 400;
  682. color: #999999;
  683. padding-bottom: 32rpx;
  684. image {
  685. width: 408rpx;
  686. height: 204rpx;
  687. }
  688. .empty-text {
  689. font-size: 28rpx;
  690. color: #aaa;
  691. line-height: 40rpx;
  692. text-align: center;
  693. padding-top: 36rpx;
  694. }
  695. }