order-detail.less 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651
  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. .before {
  279. font-weight: 400;
  280. font-size: 24rpx;
  281. color: #777777;
  282. vertical-align: middle;
  283. }
  284. .stuff {
  285. font-size: 38rpx;
  286. padding-right: 4rpx;
  287. }
  288. .priceZ {
  289. font-size: 40rpx;
  290. line-height: 1;
  291. }
  292. .priceF {
  293. font-size: 24rpx;
  294. }
  295. }
  296. }
  297. .order-time {
  298. margin: 24rpx 26rpx 0;
  299. border-radius: 20rpx;
  300. padding: 28rpx 24rpx;
  301. background-color: #FFFFFF;
  302. .line {
  303. width: 100%;
  304. height: 2rpx;
  305. background: #F2F2F2;
  306. margin-bottom: 28rpx;
  307. }
  308. .order-item {
  309. display: flex;
  310. justify-content: space-between;
  311. padding-bottom: 28rpx;
  312. &:last-child {
  313. padding-bottom: 0;
  314. }
  315. .title {
  316. font-size: 28rpx;
  317. color: #131415;
  318. line-height: 40rpx;
  319. flex-shrink: 0;
  320. padding-right: 46rpx;
  321. }
  322. .value {
  323. font-size: 28rpx;
  324. color: #777777;
  325. line-height: 42rpx;
  326. display: flex;
  327. align-items: center;
  328. text-align: right;
  329. word-break: break-all;
  330. word-wrap: break-word;
  331. &.red {
  332. color: #FE2451;
  333. }
  334. &.expanded {
  335. .iconDown {
  336. transform: rotate(0deg);
  337. }
  338. }
  339. .iconDown {
  340. margin-left: 8rpx;
  341. width: 24rpx;
  342. height: 24rpx;
  343. transform: rotate(180deg);
  344. }
  345. .copy {
  346. font-size: 28rpx;
  347. color: #FE2451;
  348. line-height: 42rpx;
  349. display: flex;
  350. align-items: center;
  351. padding-left: 16rpx;
  352. }
  353. }
  354. }
  355. }
  356. .wechat-section {
  357. background: #FFFFFF;
  358. border-radius: 20rpx;
  359. padding: 28rpx 24rpx;
  360. margin: 24rpx 26rpx;
  361. display: flex;
  362. justify-content: space-between;
  363. align-items: center;
  364. .wechat-left {
  365. font-weight: 600;
  366. font-size: 28rpx;
  367. color: #000000;
  368. line-height: 40rpx;
  369. display: flex;
  370. align-items: center;
  371. image {
  372. margin-right: 16rpx;
  373. width: 40rpx;
  374. height: 34rpx;
  375. }
  376. }
  377. .checkbox {
  378. width: 32rpx;
  379. height: 32rpx;
  380. }
  381. }
  382. .order-btn {
  383. position: fixed;
  384. bottom: 0;
  385. left: 0;
  386. width: 100%;
  387. background-color: #FFFFFF;
  388. padding: 20rpx 32rpx 58rpx 32rpx;
  389. display: flex;
  390. justify-content: flex-end;
  391. box-sizing: border-box;
  392. .orders {
  393. display: flex;
  394. flex-direction: column;
  395. margin-right: 40rpx;
  396. image {
  397. width: 48rpx;
  398. height: 48rpx;
  399. }
  400. text {
  401. font-weight: 500;
  402. font-size: 22rpx;
  403. color: #131415;
  404. line-height: 32rpx;
  405. text-align: center;
  406. }
  407. }
  408. .more {
  409. display: flex;
  410. }
  411. .price-section {
  412. display: flex;
  413. align-items: center;
  414. }
  415. .price {
  416. display: flex;
  417. align-items: flex-end;
  418. .desc {
  419. font-size: 28rpx;
  420. color: #777;
  421. line-height: 40rpx;
  422. flex-shrink: 0;
  423. }
  424. .currentPrice {
  425. font-weight: bold;
  426. color: #FE2451;
  427. font-family: DINAlternate, DINAlternate;
  428. display: flex;
  429. align-items: flex-end;
  430. .stuff {
  431. font-size: 32rpx;
  432. padding: 0 4rpx;
  433. }
  434. .priceZ {
  435. font-size: 48rpx;
  436. line-height: 1;
  437. }
  438. .priceF {
  439. font-size: 32rpx;
  440. }
  441. }
  442. .line {
  443. margin: 0 12rpx 8rpx;
  444. background-color: #D2D2D2;
  445. width: 2rpx;
  446. height: 20rpx;
  447. }
  448. .discountPrice {
  449. padding-bottom: 2rpx;
  450. font-size: 24rpx;
  451. color: #FE2451;
  452. }
  453. }
  454. button {
  455. margin-left: 24rpx !important;
  456. width: 240rpx !important;
  457. line-height: 88rpx;
  458. background: linear-gradient(270deg, #FF204B 0%, #FE5B71 100%);
  459. border-radius: 78rpx;
  460. padding: 0 !important;
  461. font-weight: 500;
  462. font-size: 32rpx;
  463. color: #FFFFFF;
  464. flex-shrink: 0;
  465. }
  466. }
  467. .van-picker__toolbar,
  468. .toolbar-top {
  469. margin: 0 40rpx !important;
  470. padding: 0 14rpx !important;
  471. border-bottom: 2rpx solid #F2F2F2;
  472. height: auto !important;
  473. line-height: normal !important;
  474. }
  475. .van-picker__cancel,
  476. .van-picker__confirm,
  477. .toolbar-cancel,
  478. toolbar-confirm {
  479. font-size: 32rpx !important;
  480. padding: 28rpx 0 !important;
  481. color: #777777 !important;
  482. }
  483. .van-picker__confirm,
  484. .toolbar-confirm {
  485. color: #FE2451 !important;
  486. }
  487. .toolbar-top {
  488. display: flex;
  489. align-items: center;
  490. justify-content: space-between;
  491. }
  492. .addressContainer {
  493. background: linear-gradient(180deg, #FFDEE7 0%, #FFFFFF 12%, #FFFFFF 100%);
  494. border-radius: 32rpx 32rpx 0rpx 0rpx;
  495. height: 928rpx;
  496. display: flex;
  497. flex-direction: column;
  498. .icon-close {
  499. position: absolute;
  500. z-index: 2;
  501. top: 28rpx;
  502. right: 12rpx;
  503. padding: 20rpx;
  504. width: 30rpx;
  505. height: 30rpx;
  506. }
  507. .pop-address-title {
  508. position: relative;
  509. z-index: 1;
  510. text-align: center;
  511. padding-top: 36rpx;
  512. padding-bottom: 20rpx;
  513. font-weight: 600;
  514. font-size: 36rpx;
  515. color: #131415;
  516. line-height: 50rpx;
  517. }
  518. .cell-group {
  519. flex: 1 auto;
  520. .van-cell {
  521. padding: 36rpx 40rpx;
  522. font-size: 30rpx;
  523. }
  524. .van-field__label {
  525. color: #666666;
  526. }
  527. .van-icon-arrow {
  528. color: #BFBFBF;
  529. }
  530. .textarea {
  531. max-height: 72rpx;
  532. }
  533. }
  534. .van-picker-column__item--selected {
  535. font-weight: 600;
  536. font-size: 32rpx;
  537. color: #6D4718 !important;
  538. }
  539. .pop-btn-group {
  540. padding: 32rpx 32rpx 58rpx;
  541. }
  542. .submit-btn {
  543. width: 100% !important;
  544. margin: 0 !important;
  545. padding: 0 !important;
  546. line-height: 88rpx;
  547. background: linear-gradient(270deg, #FF204B 0%, #FE5B71 100%);
  548. border-radius: 88rpx;
  549. font-weight: 500;
  550. font-size: 32rpx;
  551. color: #fff;
  552. }
  553. }