order-detail.less 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490
  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-size: 28rpx;
  131. color: #131415;
  132. line-height: 48rpx;
  133. text {
  134. font-size: 32rpx;
  135. padding-left: 4rpx;
  136. }
  137. }
  138. }
  139. .goods-price {
  140. flex-shrink: 0;
  141. font-family: DINAlternate, DINAlternate;
  142. font-weight: bold;
  143. color: #131415;
  144. line-height: 48rpx;
  145. .stuff {
  146. font-size: 28rpx;
  147. padding-right: 4rpx;
  148. }
  149. .priceZ {
  150. font-size: 40rpx;
  151. }
  152. .priceF {
  153. font-size: 32rpx;
  154. }
  155. }
  156. .origin-price {
  157. font-weight: 400;
  158. font-size: 24rpx;
  159. color: #6D4718;
  160. line-height: 1;
  161. }
  162. .goods-type {
  163. display: flex;
  164. align-items: center;
  165. padding-top: 10rpx;
  166. justify-content: space-between;
  167. .goods-card {
  168. background: #FEEDF0;
  169. border-radius: 6rpx;
  170. font-size: 26rpx;
  171. color: #FE2451;
  172. line-height: 40rpx;
  173. padding: 0 12rpx;
  174. }
  175. .goods-num {
  176. font-size: 26rpx;
  177. color: #777;
  178. line-height: 36rpx;
  179. }
  180. }
  181. }
  182. .goodsInfos {
  183. margin-top: 30rpx;
  184. // border-top: 2rpx solid #F2F2F2;
  185. .qrcode-line {
  186. position: relative;
  187. // background: linear-gradient(to right, transparent 50%, rgba(219, 219, 219, 1) 50%) repeat-x; // 设置水平方向的线性渐变,透明与半透明色交替,模拟虚线线段
  188. // background-size: 10px 1px; // 设置背景大小,控制虚线的线段长度和粗细,这里线段长度为10px,粗细为1px
  189. background-color: #F2F2F2;
  190. height: 2rpx; // 元素高度,可根据实际需求调整,用于展示虚线效果的高度范围
  191. margin: 24rpx 0 28rpx;
  192. // &::before,
  193. // &::after {
  194. // content: '';
  195. // position: absolute;
  196. // top: -20rpx;
  197. // display: block;
  198. // width: 40rpx;
  199. // height: 40rpx;
  200. // background-color: #F4F4F4;
  201. // border-radius: 50%;
  202. // }
  203. // &::before {
  204. // left: -50rpx;
  205. // }
  206. // &::after {
  207. // right: -50rpx;
  208. // }
  209. }
  210. }
  211. .goodsInfo-item {
  212. display: flex;
  213. justify-content: space-between;
  214. align-items: center;
  215. padding-top: 28rpx;
  216. &:first-child {
  217. padding-top: 0;
  218. .title {
  219. color: #777;
  220. }
  221. }
  222. .title {
  223. font-weight: 400;
  224. font-size: 28rpx;
  225. color: #FE2451;
  226. line-height: 40rpx;
  227. }
  228. .goods-price {
  229. flex-shrink: 0;
  230. font-family: DINAlternate, DINAlternate;
  231. font-weight: bold;
  232. color: #131415;
  233. line-height: 48rpx;
  234. .stuff {
  235. font-size: 28rpx;
  236. padding-right: 4rpx;
  237. }
  238. .priceZ {
  239. font-size: 32rpx;
  240. }
  241. .priceF {
  242. font-size: 24rpx;
  243. }
  244. }
  245. .calc-price {
  246. // font-weight: bold;
  247. // font-size: 28rpx;
  248. color: #FF0047;
  249. // line-height: 32rpx;
  250. }
  251. }
  252. .goodsInfo-count {
  253. display: flex;
  254. justify-content: flex-end;
  255. .goods-price {
  256. flex-shrink: 0;
  257. font-family: DINAlternate, DINAlternate;
  258. font-weight: bold;
  259. color: #131415;
  260. line-height: 48rpx;
  261. .before {
  262. font-weight: 400;
  263. font-size: 24rpx;
  264. color: #777777;
  265. vertical-align: middle;
  266. }
  267. .stuff {
  268. font-size: 38rpx;
  269. padding-right: 4rpx;
  270. }
  271. .priceZ {
  272. font-size: 40rpx;
  273. line-height: 1;
  274. }
  275. .priceF {
  276. font-size: 24rpx;
  277. }
  278. }
  279. }
  280. .order-time {
  281. margin: 24rpx 26rpx 0;
  282. border-radius: 20rpx;
  283. padding: 36rpx 24rpx;
  284. background-color: #FFFFFF;
  285. .order-item {
  286. display: flex;
  287. justify-content: space-between;
  288. padding-bottom: 36rpx;
  289. &:last-child {
  290. padding-bottom: 0;
  291. }
  292. .title {
  293. font-size: 28rpx;
  294. color: #131415;
  295. line-height: 40rpx;
  296. }
  297. .value {
  298. font-size: 28rpx;
  299. color: #777777;
  300. line-height: 40rpx;
  301. }
  302. }
  303. }
  304. .wechat-section {
  305. background: #FFFFFF;
  306. border-radius: 20rpx;
  307. padding: 28rpx 24rpx;
  308. margin: 24rpx 26rpx;
  309. display: flex;
  310. justify-content: space-between;
  311. align-items: center;
  312. .wechat-left {
  313. font-weight: 600;
  314. font-size: 28rpx;
  315. color: #000000;
  316. line-height: 40rpx;
  317. display: flex;
  318. align-items: center;
  319. image {
  320. margin-right: 16rpx;
  321. width: 40rpx;
  322. height: 34rpx;
  323. }
  324. }
  325. .checkbox {
  326. width: 32rpx;
  327. height: 32rpx;
  328. }
  329. }
  330. .order-btn {
  331. position: fixed;
  332. bottom: 0;
  333. left: 0;
  334. width: 100%;
  335. background-color: #FFFFFF;
  336. padding: 20rpx 32rpx 58rpx 32rpx;
  337. display: flex;
  338. justify-content: flex-end;
  339. box-sizing: border-box;
  340. .orders {
  341. display: flex;
  342. flex-direction: column;
  343. margin-right: 40rpx;
  344. image {
  345. width: 48rpx;
  346. height: 48rpx;
  347. }
  348. text {
  349. font-weight: 500;
  350. font-size: 22rpx;
  351. color: #131415;
  352. line-height: 32rpx;
  353. text-align: center;
  354. }
  355. }
  356. .more {
  357. display: flex;
  358. }
  359. .price-section {
  360. display: flex;
  361. align-items: center;
  362. }
  363. .price {
  364. display: flex;
  365. align-items: flex-end;
  366. .desc {
  367. font-size: 28rpx;
  368. color: #777;
  369. line-height: 40rpx;
  370. flex-shrink: 0;
  371. }
  372. .currentPrice {
  373. font-weight: bold;
  374. color: #FE2451;
  375. font-family: DINAlternate, DINAlternate;
  376. display: flex;
  377. align-items: flex-end;
  378. .stuff {
  379. font-size: 32rpx;
  380. padding: 0 4rpx;
  381. }
  382. .priceZ {
  383. font-size: 48rpx;
  384. line-height: 1;
  385. }
  386. .priceF {
  387. font-size: 32rpx;
  388. }
  389. }
  390. .line {
  391. margin: 0 12rpx 8rpx;
  392. background-color: #D2D2D2;
  393. width: 2rpx;
  394. height: 20rpx;
  395. }
  396. .discountPrice {
  397. padding-bottom: 2rpx;
  398. font-size: 24rpx;
  399. color: #FE2451;
  400. }
  401. }
  402. button {
  403. margin-left: 12rpx !important;
  404. width: 240rpx !important;
  405. line-height: 88rpx;
  406. background: linear-gradient(270deg, #FF204B 0%, #FE5B71 100%);
  407. border-radius: 78rpx;
  408. padding: 0 !important;
  409. font-weight: 500;
  410. font-size: 32rpx;
  411. color: #FFFFFF;
  412. flex-shrink: 0;
  413. }
  414. }