order-detail.less 9.9 KB

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