order-detail.less 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430
  1. /* pages/orders/order-detail.wxss */
  2. page {
  3. height: 100vh;
  4. display: flex;
  5. flex-direction: column;
  6. background: #F5F6F7;
  7. }
  8. .order-status {
  9. margin: 24rpx 26rpx 0;
  10. background-color: #FFFFFF;
  11. border-radius: 20rpx;
  12. padding: 24rpx 32rpx;
  13. .status {
  14. display: flex;
  15. padding-bottom: 24rpx;
  16. image {
  17. width: 48rpx;
  18. height: 48rpx;
  19. margin-right: 16rpx;
  20. }
  21. text {
  22. font-weight: 600;
  23. font-size: 36rpx;
  24. color: #131415;
  25. line-height: 48rpx;
  26. }
  27. }
  28. .tips {
  29. font-size: 28rpx;
  30. color: #777777;
  31. line-height: 40rpx;
  32. }
  33. }
  34. .addBuyer {
  35. position: relative;
  36. margin: 26rpx;
  37. background: #fff;
  38. border-radius: 20rpx;
  39. display: flex;
  40. align-items: center;
  41. justify-content: space-between;
  42. padding: 24rpx;
  43. overflow: hidden;
  44. .addressTop {
  45. position: absolute;
  46. z-index: 1;
  47. top: 0;
  48. left: 0;
  49. width: 100%;
  50. }
  51. .icon-man {
  52. width: 36rpx;
  53. height: 36rpx;
  54. margin-right: 16rpx;
  55. }
  56. .addBuyer-left {
  57. display: flex;
  58. }
  59. .users {
  60. font-weight: 600;
  61. font-size: 32rpx;
  62. color: #131415;
  63. line-height: 40rpx;
  64. width: 520rpx;
  65. white-space: nowrap;
  66. overflow: hidden;
  67. text-overflow: ellipsis;
  68. }
  69. .address {
  70. padding-top: 16rpx;
  71. font-size: 26rpx;
  72. color: #777777;
  73. line-height: 34rpx;
  74. text {
  75. padding-right: 24rpx;
  76. }
  77. }
  78. .arrow-right {
  79. width: 24rpx;
  80. height: 24rpx;
  81. }
  82. }
  83. .order-content {
  84. margin: 24rpx 26rpx 0;
  85. border-radius: 20rpx;
  86. padding: 28rpx 24rpx;
  87. background-color: #FFFFFF;
  88. }
  89. .item-content {
  90. display: flex;
  91. width: 100%;
  92. &+.item-content {
  93. padding-top: 60rpx;
  94. }
  95. .goods-icon {
  96. width: 140rpx;
  97. height: 140rpx;
  98. margin-right: 24rpx;
  99. flex-shrink: 0;
  100. border-radius: 6px;
  101. overflow: hidden;
  102. }
  103. .goods-desc {
  104. flex: 1 auto;
  105. display: flex;
  106. flex-direction: column;
  107. }
  108. .goodsInfo {
  109. display: flex;
  110. justify-content: space-between;
  111. padding-top: 4rpx;
  112. .goods-name {
  113. flex: 1 auto;
  114. white-space: nowrap;
  115. overflow: hidden;
  116. font-weight: 600;
  117. font-size: 30rpx;
  118. color: #131415;
  119. line-height: 50rpx;
  120. text-overflow: ellipsis;
  121. max-width: 480rpx;
  122. }
  123. }
  124. .goods-price {
  125. flex-shrink: 0;
  126. font-family: DINAlternate, DINAlternate;
  127. font-weight: bold;
  128. color: #131415;
  129. line-height: 48rpx;
  130. .stuff {
  131. font-size: 28rpx;
  132. padding-right: 4rpx;
  133. }
  134. .priceZ {
  135. font-size: 40rpx;
  136. }
  137. .priceF {
  138. font-size: 32rpx;
  139. }
  140. }
  141. .origin-price {
  142. font-weight: 400;
  143. font-size: 24rpx;
  144. color: #6D4718;
  145. line-height: 1;
  146. }
  147. .goods-type {
  148. display: flex;
  149. align-items: center;
  150. padding-top: 28rpx;
  151. .goods-card {
  152. height: 40rpx;
  153. background: #fdf2e2;
  154. border-radius: 6rpx;
  155. font-size: 26rpx;
  156. color: #502f00;
  157. line-height: 40rpx;
  158. padding: 0 12rpx;
  159. }
  160. .goods-num {
  161. font-size: 28rpx;
  162. color: #777;
  163. line-height: 36rpx;
  164. }
  165. }
  166. }
  167. .goodsInfos {
  168. margin-top: 32rpx;
  169. // border-top: 2rpx solid #F2F2F2;
  170. .qrcode-line {
  171. position: relative;
  172. background: linear-gradient(to right, transparent 50%, rgba(219, 219, 219, 1) 50%) repeat-x; // 设置水平方向的线性渐变,透明与半透明色交替,模拟虚线线段
  173. background-size: 10px 1px; // 设置背景大小,控制虚线的线段长度和粗细,这里线段长度为10px,粗细为1px
  174. height: 2rpx; // 元素高度,可根据实际需求调整,用于展示虚线效果的高度范围
  175. // margin: 42rpx 0 32rpx;
  176. &::before,
  177. &::after {
  178. content: '';
  179. position: absolute;
  180. top: -20rpx;
  181. display: block;
  182. width: 40rpx;
  183. height: 40rpx;
  184. background-color: #F4F4F4;
  185. border-radius: 50%;
  186. }
  187. &::before {
  188. left: -50rpx;
  189. }
  190. &::after {
  191. right: -50rpx;
  192. }
  193. }
  194. }
  195. .goodsInfo-item {
  196. display: flex;
  197. justify-content: space-between;
  198. align-items: center;
  199. padding-top: 32rpx;
  200. .title {
  201. font-weight: 400;
  202. font-size: 28rpx;
  203. color: #131415;
  204. line-height: 40rpx;
  205. }
  206. .goods-price {
  207. flex-shrink: 0;
  208. font-family: DINAlternate, DINAlternate;
  209. font-weight: bold;
  210. color: #131415;
  211. line-height: 48rpx;
  212. .stuff {
  213. font-size: 32rpx;
  214. padding-right: 4rpx;
  215. }
  216. .priceZ {
  217. font-size: 48rpx;
  218. }
  219. .priceF {
  220. font-size: 32rpx;
  221. }
  222. }
  223. .calc-price {
  224. font-weight: bold;
  225. font-size: 28rpx;
  226. color: #FF0047;
  227. line-height: 32rpx;
  228. }
  229. }
  230. .order-time {
  231. margin: 24rpx 26rpx 0;
  232. border-radius: 20rpx;
  233. padding: 36rpx 24rpx;
  234. background-color: #FFFFFF;
  235. .order-item {
  236. display: flex;
  237. justify-content: space-between;
  238. padding-bottom: 36rpx;
  239. &:last-child {
  240. padding-bottom: 0;
  241. }
  242. .title {
  243. font-size: 28rpx;
  244. color: #131415;
  245. line-height: 40rpx;
  246. }
  247. .value {
  248. font-size: 28rpx;
  249. color: #777777;
  250. line-height: 40rpx;
  251. }
  252. }
  253. }
  254. .wechat-section {
  255. background: #FFFFFF;
  256. border-radius: 20rpx;
  257. padding: 28rpx 24rpx;
  258. margin: 24rpx 26rpx;
  259. display: flex;
  260. justify-content: space-between;
  261. align-items: center;
  262. .wechat-left {
  263. font-weight: 600;
  264. font-size: 28rpx;
  265. color: #000000;
  266. line-height: 40rpx;
  267. display: flex;
  268. align-items: center;
  269. image {
  270. margin-right: 16rpx;
  271. width: 40rpx;
  272. height: 34rpx;
  273. }
  274. }
  275. .checkbox {
  276. width: 32rpx;
  277. height: 32rpx;
  278. }
  279. }
  280. .order-btn {
  281. position: fixed;
  282. bottom: 0;
  283. left: 0;
  284. width: 100%;
  285. background-color: #FFFFFF;
  286. padding: 20rpx 32rpx 58rpx 32rpx;
  287. display: flex;
  288. justify-content: flex-end;
  289. box-sizing: border-box;
  290. .orders {
  291. display: flex;
  292. flex-direction: column;
  293. margin-right: 40rpx;
  294. image {
  295. width: 48rpx;
  296. height: 48rpx;
  297. }
  298. text {
  299. font-weight: 500;
  300. font-size: 22rpx;
  301. color: #131415;
  302. line-height: 32rpx;
  303. text-align: center;
  304. }
  305. }
  306. .more {
  307. display: flex;
  308. }
  309. .price-section {
  310. display: flex;
  311. align-items: center;
  312. }
  313. .price {
  314. display: flex;
  315. align-items: flex-end;
  316. .desc {
  317. font-weight: 500;
  318. font-size: 28rpx;
  319. color: #777;
  320. line-height: 40rpx;
  321. flex-shrink: 0;
  322. }
  323. .currentPrice {
  324. font-weight: bold;
  325. color: #FE2451;
  326. font-family: DINAlternate, DINAlternate;
  327. display: flex;
  328. align-items: flex-end;
  329. .stuff {
  330. font-size: 32rpx;
  331. }
  332. .priceZ {
  333. font-size: 48rpx;
  334. line-height: 1;
  335. }
  336. .priceF {
  337. font-size: 32rpx;
  338. }
  339. }
  340. .line {
  341. margin: 0 12rpx 8rpx;
  342. background-color: #D2D2D2;
  343. width: 2rpx;
  344. height: 20rpx;
  345. }
  346. .discountPrice {
  347. // padding-bottom: 6rpx;
  348. font-size: 24rpx;
  349. color: #FE2451;
  350. }
  351. }
  352. button {
  353. margin-left: 12rpx !important;
  354. width: 240rpx !important;
  355. line-height: 88rpx;
  356. background: linear-gradient(270deg, #FF204B 0%, #FE5B71 100%);
  357. border-radius: 78rpx;
  358. padding: 0 !important;
  359. font-weight: 500;
  360. font-size: 32rpx;
  361. color: #FFFFFF;
  362. flex-shrink: 0;
  363. }
  364. }