order-detail.less 11 KB

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