order-detail.less 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817
  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 24rpx;
  243. .van-cell {
  244. padding-left: 0;
  245. }
  246. .van-field__label {
  247. font-weight: 600;
  248. color: #666666;
  249. width: 200rpx;
  250. }
  251. .van-cell__title {
  252. max-width: 5em !important;
  253. min-width: 5em !important;
  254. }
  255. }
  256. .select-address {
  257. .address-info {
  258. padding-right: 36rpx;
  259. }
  260. .address-text {
  261. font-weight: 600;
  262. font-size: 30rpx;
  263. color: #000000;
  264. line-height: 42rpx;
  265. word-break: break-all;
  266. word-wrap: break-word;
  267. max-width: 650rpx;
  268. }
  269. .address-user {
  270. padding-top: 12rpx;
  271. font-size: 28rpx;
  272. color: #333333;
  273. line-height: 40rpx;
  274. display: flex;
  275. .username {
  276. display: inline-block;
  277. word-break: break-all;
  278. word-wrap: break-word;
  279. max-width: 250rpx;
  280. white-space: nowrap;
  281. overflow: hidden;
  282. text-overflow: ellipsis;
  283. }
  284. text {
  285. padding-right: 12rpx;
  286. &:last-child {
  287. color: #777;
  288. }
  289. }
  290. }
  291. .icon-arrow {
  292. width: 24rpx;
  293. height: 24rpx;
  294. flex-shrink: 0;
  295. }
  296. }
  297. .select-buy-user {
  298. flex-direction: column;
  299. padding: 34rpx 24rpx;
  300. .title {
  301. display: flex;
  302. width: 100%;
  303. justify-content: space-between;
  304. padding-bottom: 32rpx;
  305. border-bottom: 2rpx solid #f2f2f2;
  306. .name {
  307. color: #502f00;
  308. }
  309. }
  310. .user-list {
  311. padding-top: 32rpx;
  312. width: 100%;
  313. }
  314. .user-item {
  315. padding-bottom: 32rpx;
  316. font-size: 28rpx;
  317. color: #131415;
  318. line-height: 40rpx;
  319. display: flex;
  320. // align-items: center;
  321. justify-content: space-between;
  322. &:last-child {
  323. padding-bottom: 0;
  324. }
  325. .left-label {
  326. width: 196rpx;
  327. }
  328. .right-value {
  329. flex: 1;
  330. text-align: right;
  331. color: #777777;
  332. word-break: break-all;
  333. word-wrap: break-word;
  334. }
  335. }
  336. }
  337. .order-time {
  338. margin: 24rpx 26rpx 0;
  339. border-radius: 20rpx;
  340. // padding: 36rpx 24rpx;
  341. background-color: #ffffff;
  342. .order-item {
  343. display: flex;
  344. justify-content: space-between;
  345. // padding-bottom: 36rpx;
  346. padding: 36rpx 0;
  347. margin: 0 24rpx;
  348. border-bottom: 2rpx solid #f0f0f0;
  349. &:last-child {
  350. border-bottom: none;
  351. }
  352. .title {
  353. font-weight: 500;
  354. font-size: 30rpx;
  355. color: #131415;
  356. line-height: 42rpx;
  357. }
  358. .value {
  359. font-size: 30rpx;
  360. color: #777777;
  361. line-height: 42rpx;
  362. display: flex;
  363. &.red {
  364. color: #fe2451;
  365. }
  366. .copy {
  367. font-size: 30rpx;
  368. color: #131415;
  369. line-height: 42rpx;
  370. display: flex;
  371. align-items: center;
  372. &::before {
  373. content: "";
  374. display: block;
  375. width: 2rpx;
  376. height: 22rpx;
  377. background: #dcdcdc;
  378. margin: 0 16rpx;
  379. }
  380. }
  381. }
  382. }
  383. }
  384. .order-btn {
  385. margin-top: 24rpx;
  386. // position: fixed;
  387. // bottom: 0;
  388. // left: 0;
  389. width: 100%;
  390. background-color: #ffffff;
  391. padding: 20rpx 32rpx 58rpx 40rpx;
  392. display: flex;
  393. justify-content: space-between;
  394. box-sizing: border-box;
  395. .orders {
  396. display: flex;
  397. flex-direction: column;
  398. margin-right: 40rpx;
  399. image {
  400. width: 48rpx;
  401. height: 48rpx;
  402. }
  403. text {
  404. font-weight: 500;
  405. font-size: 22rpx;
  406. color: #131415;
  407. line-height: 32rpx;
  408. text-align: center;
  409. }
  410. }
  411. .more {
  412. display: flex;
  413. }
  414. // .price {
  415. // display: flex;
  416. // align-items: center;
  417. // .desc {
  418. // font-weight: 500;
  419. // font-size: 28rpx;
  420. // color: #131415;
  421. // line-height: 40rpx;
  422. // padding-top: 20rpx;
  423. // }
  424. // .currentPrice {
  425. // font-weight: bold;
  426. // color: #ff0047;
  427. // font-family: DINAlternate, DINAlternate;
  428. // .stuff {
  429. // font-size: 32rpx;
  430. // }
  431. // .priceZ {
  432. // font-size: 56rpx;
  433. // }
  434. // .priceF {
  435. // font-size: 32rpx;
  436. // }
  437. // }
  438. // }
  439. button {
  440. width: 100%;
  441. background: linear-gradient(90deg, #544f4a 0%, #302f2b 100%);
  442. border-radius: 88rpx;
  443. padding: 22rpx 84rpx;
  444. font-weight: 500;
  445. font-size: 32rpx;
  446. color: #fbeac9;
  447. line-height: 44rpx;
  448. display: flex;
  449. justify-content: center;
  450. }
  451. .btnGroup {
  452. position: relative;
  453. width: 100%;
  454. .currentPrice {
  455. font-weight: bold;
  456. color: #fbeac9;
  457. font-family: DINAlternate, DINAlternate;
  458. display: flex;
  459. align-items: flex-end;
  460. .before {
  461. font-size: 28rpx;
  462. font-weight: 500;
  463. padding-right: 4rpx;
  464. }
  465. .after {
  466. font-weight: 500;
  467. font-size: 32rpx;
  468. padding-left: 12rpx;
  469. }
  470. .stuff {
  471. font-size: 32rpx;
  472. }
  473. .priceZ {
  474. font-size: 56rpx;
  475. line-height: 1;
  476. }
  477. .priceF {
  478. font-size: 32rpx;
  479. }
  480. }
  481. }
  482. .btnInnerFree {
  483. position: absolute;
  484. right: 0;
  485. top: -28rpx;
  486. background: linear-gradient(180deg, #ff5181 0%, #ff0047 100%);
  487. border-radius: 150rpx 200rpx 200rpx 0rpx;
  488. border: 2rpx solid #ffffff;
  489. padding: 0 8rpx;
  490. font-size: 24rpx;
  491. color: #ffffff;
  492. line-height: 34rpx;
  493. padding-top: 2rpx;
  494. overflow: hidden;
  495. font-weight: bold;
  496. text {
  497. font-weight: bold;
  498. }
  499. }
  500. }
  501. .top-bg {
  502. position: absolute;
  503. top: 0;
  504. left: 0;
  505. width: 100%;
  506. height: 49px;
  507. background: linear-gradient(180deg, #fbead0 0%, #ffffff 100%);
  508. border-radius: 16px 16px 0rpx 0rpx;
  509. }
  510. .icon-close {
  511. position: absolute;
  512. z-index: 2;
  513. top: 14px;
  514. right: 6px;
  515. padding: 10px;
  516. width: 15px;
  517. height: 15px;
  518. }
  519. .pop-address-title {
  520. position: relative;
  521. z-index: 1;
  522. text-align: center;
  523. padding-top: 18px;
  524. padding-bottom: 13px;
  525. font-weight: 600;
  526. font-size: 18px;
  527. color: #131415;
  528. line-height: 25px;
  529. }
  530. .cell-group {
  531. .van-cell {
  532. padding: 13px 14px !important;
  533. font-size: 15px !important;
  534. // line-height: 42rpx !important;
  535. --cell-line-height: 21px !important;
  536. }
  537. .required {
  538. font-weight: 600;
  539. color: #666666;
  540. text {
  541. color: #ff5a56;
  542. }
  543. }
  544. .van-field__label {
  545. font-weight: 600;
  546. color: #666666;
  547. }
  548. .van-icon-arrow {
  549. color: #cccccc;
  550. font-weight: 600;
  551. }
  552. .textarea {
  553. height: 72rpx;
  554. }
  555. }
  556. .van-picker-column__item--selected {
  557. font-weight: 600;
  558. font-size: 16px;
  559. color: #6d4718 !important;
  560. }
  561. .pop-btn-group {
  562. padding: 50px 16px 30px;
  563. }
  564. .submit-btn {
  565. width: 100% !important;
  566. margin: 0 !important;
  567. padding: 0 !important;
  568. line-height: 44px;
  569. background: linear-gradient(90deg, #544f4a 0%, #302f2b 100%);
  570. border-radius: 44px;
  571. font-weight: 500;
  572. font-size: 16px;
  573. color: #fbeac9;
  574. }
  575. .address-list {
  576. padding: 30rpx 26rpx 0;
  577. max-height: 534rpx;
  578. overflow-x: hidden;
  579. overflow-y: auto;
  580. }
  581. .address-item {
  582. padding: 24rpx;
  583. background: #ffffff;
  584. border-radius: 20rpx;
  585. border: 2px solid #f2f2f2;
  586. margin-bottom: 22rpx;
  587. &.active {
  588. border: 2px solid #855f2e;
  589. }
  590. .item-title {
  591. font-weight: 600;
  592. font-size: 15px;
  593. color: #000000;
  594. line-height: 21px;
  595. word-break: break-all;
  596. word-wrap: break-word;
  597. }
  598. .item-users {
  599. display: flex;
  600. justify-content: space-between;
  601. padding-top: 12px;
  602. .item-user {
  603. font-size: 14px;
  604. color: #333333;
  605. line-height: 20px;
  606. display: flex;
  607. align-items: center;
  608. text {
  609. padding-right: 4px;
  610. &:first-child {
  611. max-width: 200rpx;
  612. white-space: nowrap;
  613. overflow: hidden;
  614. display: block;
  615. text-overflow: ellipsis;
  616. }
  617. &:last-child {
  618. color: #777;
  619. }
  620. }
  621. }
  622. .item-btn-group {
  623. display: flex;
  624. flex: 1;
  625. justify-content: flex-end;
  626. .btn {
  627. width: 52px;
  628. padding: 0 !important;
  629. margin: 0 0 0 12rpx !important;
  630. line-height: 22px;
  631. border-radius: 44rpx;
  632. font-weight: 600;
  633. font-size: 12px;
  634. color: #333333;
  635. border: 2rpx solid #dcdcdc;
  636. background-color: #fff;
  637. }
  638. .update-btn {
  639. background: linear-gradient(90deg, #544f4a 0%, #302f2b 100%);
  640. color: #fbeac9;
  641. border: none !important;
  642. line-height: 24px;
  643. }
  644. }
  645. }
  646. }
  647. .pop-btn-list {
  648. padding-top: 20rpx;
  649. box-shadow: inset 0rpx 2rpx 0rpx 0rpx #f0f0f0;
  650. }
  651. .dialog-section {
  652. width: 532rpx;
  653. .dialog-title {
  654. padding: 48rpx 0;
  655. text-align: center;
  656. font-weight: 600;
  657. font-size: 32rpx;
  658. color: #131415;
  659. line-height: 44rpx;
  660. }
  661. .dialog-btn-group {
  662. border-top: 2rpx solid #f2f2f2;
  663. display: flex;
  664. align-items: center;
  665. .btn {
  666. flex: 1;
  667. text-align: center;
  668. line-height: 80rpx;
  669. font-size: 28rpx;
  670. color: #777777;
  671. }
  672. .del-btn {
  673. color: #6d4718;
  674. border-left: 2rpx solid #f2f2f2;
  675. }
  676. }
  677. }
  678. .empty-box {
  679. text-align: center;
  680. font-size: 32rpx;
  681. font-family:
  682. PingFangSC-Regular,
  683. PingFang SC;
  684. font-weight: 400;
  685. color: #999999;
  686. padding-bottom: 32rpx;
  687. image {
  688. width: 408rpx;
  689. height: 204rpx;
  690. }
  691. .empty-text {
  692. font-size: 28rpx;
  693. color: #aaa;
  694. line-height: 40rpx;
  695. text-align: center;
  696. padding-top: 36rpx;
  697. }
  698. }