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