order-detail.less 11 KB

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