order-detail.less 13 KB

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