order-detail.less 11 KB

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