order-detail.less 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705
  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(219, 219, 219, 1) 50%) repeat-x; // 设置水平方向的线性渐变,透明与半透明色交替,模拟虚线线段
  115. background-size: 10px 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: -50rpx;
  131. }
  132. &::after {
  133. right: -50rpx;
  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. .order-time {
  200. margin: 24rpx 26rpx 0;
  201. border-radius: 20rpx;
  202. padding: 36rpx 24rpx;
  203. background-color: #ffffff;
  204. .order-item {
  205. display: flex;
  206. justify-content: space-between;
  207. padding-bottom: 36rpx;
  208. &:last-child {
  209. padding-bottom: 0;
  210. }
  211. .title {
  212. font-size: 28rpx;
  213. color: #131415;
  214. line-height: 40rpx;
  215. }
  216. .value {
  217. font-size: 28rpx;
  218. color: #777777;
  219. line-height: 40rpx;
  220. }
  221. }
  222. }
  223. .select-section {
  224. margin: 24rpx 26rpx 0;
  225. background: #ffffff;
  226. border-radius: 20rpx;
  227. padding: 24rpx;
  228. display: flex;
  229. align-items: center;
  230. justify-content: space-between;
  231. .name {
  232. font-weight: 600;
  233. font-size: 30rpx;
  234. color: #000000;
  235. line-height: 42rpx;
  236. }
  237. .icon-arrow {
  238. width: 24rpx;
  239. height: 24rpx;
  240. }
  241. .add-buy-btn {
  242. width: 104rpx;
  243. background: linear-gradient(90deg, #544f4a 0%, #302f2b 100%);
  244. border-radius: 26rpx;
  245. margin: 0;
  246. padding: 0;
  247. font-weight: 600;
  248. font-size: 24rpx;
  249. color: #fbeac9;
  250. line-height: 44rpx;
  251. display: flex;
  252. align-items: center;
  253. justify-content: center;
  254. }
  255. }
  256. .select-address {
  257. .address-text {
  258. font-weight: 600;
  259. font-size: 30rpx;
  260. color: #000000;
  261. line-height: 42rpx;
  262. }
  263. .address-user {
  264. padding-top: 12rpx;
  265. font-size: 28rpx;
  266. color: #333333;
  267. line-height: 40rpx;
  268. text {
  269. padding-right: 12rpx;
  270. }
  271. }
  272. .icon-arrow {
  273. width: 24rpx;
  274. height: 24rpx;
  275. }
  276. }
  277. .select-buy-user {
  278. flex-direction: column;
  279. padding: 34rpx 24rpx;
  280. .title {
  281. display: flex;
  282. width: 100%;
  283. justify-content: space-between;
  284. padding-bottom: 32rpx;
  285. border-bottom: 2rpx solid #F2F2F2;
  286. .name {
  287. color: #502F00;
  288. }
  289. }
  290. .user-list {
  291. padding-top: 32rpx;
  292. width: 100%;
  293. }
  294. .user-item {
  295. padding-bottom: 32rpx;
  296. font-size: 28rpx;
  297. color: #131415;
  298. line-height: 40rpx;
  299. display: flex;
  300. // align-items: center;
  301. justify-content: space-between;
  302. .left-label {
  303. width: 196rpx;
  304. }
  305. .right-value {
  306. flex: 1;
  307. text-align: right;
  308. color: #777777;
  309. }
  310. }
  311. }
  312. .order-btn {
  313. margin-top: 24rpx;
  314. // position: fixed;
  315. // bottom: 0;
  316. // left: 0;
  317. width: 100%;
  318. background-color: #ffffff;
  319. padding: 20rpx 32rpx 58rpx 40rpx;
  320. display: flex;
  321. justify-content: space-between;
  322. box-sizing: border-box;
  323. .orders {
  324. display: flex;
  325. flex-direction: column;
  326. margin-right: 40rpx;
  327. image {
  328. width: 48rpx;
  329. height: 48rpx;
  330. }
  331. text {
  332. font-weight: 500;
  333. font-size: 22rpx;
  334. color: #131415;
  335. line-height: 32rpx;
  336. text-align: center;
  337. }
  338. }
  339. .more {
  340. display: flex;
  341. }
  342. // .price {
  343. // display: flex;
  344. // align-items: center;
  345. // .desc {
  346. // font-weight: 500;
  347. // font-size: 28rpx;
  348. // color: #131415;
  349. // line-height: 40rpx;
  350. // padding-top: 20rpx;
  351. // }
  352. // .currentPrice {
  353. // font-weight: bold;
  354. // color: #ff0047;
  355. // font-family: DINAlternate, DINAlternate;
  356. // .stuff {
  357. // font-size: 32rpx;
  358. // }
  359. // .priceZ {
  360. // font-size: 56rpx;
  361. // }
  362. // .priceF {
  363. // font-size: 32rpx;
  364. // }
  365. // }
  366. // }
  367. button {
  368. margin: 0 0 0 12rpx;
  369. width: 100%;
  370. background: linear-gradient(90deg, #544f4a 0%, #302f2b 100%);
  371. border-radius: 44rpx;
  372. padding: 22rpx 84rpx;
  373. font-weight: 500;
  374. font-size: 32rpx;
  375. color: #fbeac9;
  376. line-height: 44rpx;
  377. display: flex;
  378. justify-content: center;
  379. }
  380. .btnGroup {
  381. position: relative;
  382. width: 100%;
  383. .currentPrice {
  384. font-weight: bold;
  385. color: #FBEAC9;
  386. font-family: DINAlternate, DINAlternate;
  387. .before {
  388. font-size: 28rpx;
  389. font-weight: 500;
  390. padding-right: 4rpx;
  391. }
  392. .after {
  393. font-weight: 500;
  394. font-size: 32rpx;
  395. padding-left: 12rpx;
  396. }
  397. .stuff {
  398. font-size: 32rpx;
  399. }
  400. .priceZ {
  401. font-size: 56rpx;
  402. }
  403. .priceF {
  404. font-size: 32rpx;
  405. }
  406. }
  407. }
  408. .btnInnerFree {
  409. position: absolute;
  410. right: 0;
  411. top: -28rpx;
  412. background: linear-gradient(180deg, #ff5181 0%, #ff0047 100%);
  413. border-radius: 150rpx 200rpx 200rpx 0rpx;
  414. border: 2rpx solid #ffffff;
  415. padding: 0 8rpx;
  416. font-size: 24rpx;
  417. color: #ffffff;
  418. line-height: 34rpx;
  419. padding-top: 2rpx;
  420. overflow: hidden;
  421. font-weight: bold;
  422. text {
  423. font-weight: bold;
  424. }
  425. }
  426. }
  427. .top-bg {
  428. position: absolute;
  429. top: 0;
  430. left: 0;
  431. width: 100%;
  432. height: 98rpx;
  433. background: linear-gradient(180deg, #FBEAD0 0%, #FFFFFF 100%);
  434. border-radius: 32rpx 32rpx 0rpx 0rpx;
  435. }
  436. .icon-close {
  437. position: absolute;
  438. z-index: 2;
  439. top: 28rpx;
  440. right: 12rpx;
  441. padding: 20rpx;
  442. width: 30rpx;
  443. height: 30rpx;
  444. }
  445. .pop-address-title {
  446. position: relative;
  447. z-index: 1;
  448. text-align: center;
  449. padding-top: 36rpx;
  450. padding-bottom: 36rpx;
  451. font-weight: 600;
  452. font-size: 36rpx;
  453. color: #131415;
  454. line-height: 50rpx;
  455. }
  456. .cell-group {
  457. .van-cell {
  458. padding: 26rpx 28rpx;
  459. font-size: 30rpx;
  460. }
  461. .van-field__label {
  462. font-weight: 600;
  463. color: #666666;
  464. }
  465. .van-icon-arrow {
  466. color: #CCCCCC;
  467. font-weight: 600;
  468. }
  469. .textarea {
  470. height: 72rpx;
  471. }
  472. }
  473. .van-picker-column__item--selected {
  474. font-weight: 600;
  475. font-size: 32rpx;
  476. color: #6D4718 !important;
  477. }
  478. .pop-btn-group {
  479. padding: 100rpx 32rpx 58rpx;
  480. }
  481. .submit-btn {
  482. width: 100% !important;
  483. margin: 0 !important;
  484. padding: 0 !important;
  485. line-height: 88rpx;
  486. background: linear-gradient(90deg, #544F4A 0%, #302F2B 100%);
  487. border-radius: 88rpx;
  488. font-weight: 500;
  489. font-size: 32rpx;
  490. color: #FBEAC9;
  491. }
  492. .address-list {
  493. padding: 40rpx 26rpx 0;
  494. max-height: 534rpx;
  495. overflow-x: hidden;
  496. overflow-y: auto;
  497. }
  498. .address-item {
  499. padding: 24rpx;
  500. background: #FFFFFF;
  501. border-radius: 20rpx;
  502. border: 4rpx solid #F2F2F2;
  503. margin-bottom: 22rpx;
  504. &.active {
  505. border: 4rpx solid #855F2E;
  506. }
  507. .item-title {
  508. font-weight: 600;
  509. font-size: 30rpx;
  510. color: #000000;
  511. line-height: 42rpx;
  512. }
  513. .item-users {
  514. display: flex;
  515. justify-content: space-between;
  516. padding-top: 24rpx;
  517. .item-user {
  518. font-size: 28rpx;
  519. color: #333333;
  520. line-height: 40rpx;
  521. text {
  522. padding-right: 8rpx;
  523. }
  524. }
  525. .item-btn-group {
  526. display: flex;
  527. flex: 1;
  528. justify-content: flex-end;
  529. .btn {
  530. width: 104rpx;
  531. padding: 0 !important;
  532. margin: 0 0 0 12rpx !important;
  533. line-height: 44rpx;
  534. border-radius: 44rpx;
  535. font-weight: 600;
  536. font-size: 24rpx;
  537. color: #333333;
  538. border: 2rpx solid #DCDCDC;
  539. background-color: #fff;
  540. }
  541. .update-btn {
  542. background: linear-gradient(90deg, #544F4A 0%, #302F2B 100%);
  543. color: #FBEAC9;
  544. }
  545. }
  546. }
  547. }
  548. .pop-btn-list {
  549. padding-top: 20rpx;
  550. box-shadow: inset 0rpx 2rpx 0rpx 0rpx #F0F0F0;
  551. }
  552. .dialog-section {
  553. width: 532rpx;
  554. .dialog-title {
  555. padding: 48rpx 0;
  556. text-align: center;
  557. font-weight: 600;
  558. font-size: 32rpx;
  559. color: #131415;
  560. line-height: 44rpx;
  561. }
  562. .dialog-btn-group {
  563. border-top: 2rpx solid #F2F2F2;
  564. display: flex;
  565. align-items: center;
  566. .btn {
  567. flex: 1;
  568. text-align: center;
  569. line-height: 80rpx;
  570. font-size: 28rpx;
  571. color: #777777;
  572. }
  573. .del-btn {
  574. color: #6D4718;
  575. border-left: 2rpx solid #F2F2F2;
  576. }
  577. }
  578. }
  579. .empty-box {
  580. text-align: center;
  581. font-size: 32rpx;
  582. font-family: PingFangSC-Regular, PingFang SC;
  583. font-weight: 400;
  584. color: #999999;
  585. padding-bottom: 32rpx;
  586. image {
  587. width: 408rpx;
  588. height: 204rpx;
  589. }
  590. .empty-text {
  591. font-size: 28rpx;
  592. color: #777777;
  593. line-height: 40rpx;
  594. text-align: center;
  595. padding-top: 36rpx;
  596. }
  597. }