order-detail.less 13 KB

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