order-detail.less 15 KB

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