order-detail.less 13 KB

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