order-detail.less 13 KB

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