order-detail.less 13 KB

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