order-result.less 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  1. /* pages/orders/order-detail.wxss */
  2. page {
  3. height: 100vh;
  4. display: flex;
  5. flex-direction: column;
  6. background: #F4F4F4;
  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. image {
  16. width: 48rpx;
  17. height: 48rpx;
  18. margin-right: 16rpx;
  19. }
  20. text {
  21. font-weight: 600;
  22. font-size: 36rpx;
  23. color: #131415;
  24. line-height: 48rpx;
  25. }
  26. }
  27. .tips {
  28. padding-top: 24rpx;
  29. font-size: 28rpx;
  30. color: #777777;
  31. line-height: 40rpx;
  32. }
  33. }
  34. .order-content {
  35. margin: 24rpx 26rpx 0;
  36. border-radius: 20rpx;
  37. display: flex;
  38. flex-direction: column;
  39. background-color: #FFFFFF;
  40. }
  41. .goods-content {
  42. margin: 24rpx 26rpx 0;
  43. border-radius: 20rpx;
  44. padding: 28rpx 24rpx;
  45. display: flex;
  46. flex-direction: column;
  47. background-color: #FFFFFF;
  48. }
  49. .item-content {
  50. display: flex;
  51. width: 100%;
  52. .goods-icon {
  53. width: 140rpx;
  54. height: 140rpx;
  55. margin-right: 24rpx;
  56. flex-shrink: 0;
  57. border-radius: 6px;
  58. overflow: hidden;
  59. }
  60. .goods-desc {
  61. flex: 1 auto;
  62. display: flex;
  63. flex-direction: column;
  64. }
  65. .goodsInfo {
  66. display: flex;
  67. justify-content: space-between;
  68. padding-top: 4rpx;
  69. .goods-name {
  70. flex: 1 auto;
  71. white-space: nowrap;
  72. overflow: hidden;
  73. font-weight: 600;
  74. font-size: 30rpx;
  75. color: #131415;
  76. text-overflow: ellipsis;
  77. max-width: 360rpx;
  78. }
  79. .goods-price {
  80. flex-shrink: 0;
  81. font-family: DINAlternate, DINAlternate;
  82. font-weight: bold;
  83. font-size: 28rpx;
  84. color: #131415;
  85. line-height: 48rpx;
  86. text {
  87. font-size: 34rpx;
  88. }
  89. }
  90. }
  91. .goods-type {
  92. display: flex;
  93. justify-content: space-between;
  94. align-items: center;
  95. padding-top: 12rpx;
  96. .goods-card {
  97. background: #FDF2E2;
  98. border-radius: 6rpx;
  99. font-size: 26rpx;
  100. color: #502F00;
  101. line-height: 36rpx;
  102. padding: 2rpx 10rpx;
  103. }
  104. .goods-num {
  105. font-size: 26rpx;
  106. color: #777777;
  107. line-height: 36rpx;
  108. }
  109. }
  110. }
  111. .qrcode-title {
  112. padding: 40rpx 24rpx;
  113. font-weight: 600;
  114. font-size: 30rpx;
  115. color: #131415;
  116. line-height: 42rpx;
  117. }
  118. .qrcode-line {
  119. position: relative;
  120. background: linear-gradient(to right, transparent 50%, rgba(219, 219, 219, 1) 50%) repeat-x; // 设置水平方向的线性渐变,透明与半透明色交替,模拟虚线线段
  121. background-size: 10px 1px; // 设置背景大小,控制虚线的线段长度和粗细,这里线段长度为10px,粗细为1px
  122. height: 2rpx; // 元素高度,可根据实际需求调整,用于展示虚线效果的高度范围
  123. margin: 0 24rpx;
  124. &::before, &::after {
  125. content: '';
  126. position: absolute;
  127. top: -20rpx;
  128. display: block;
  129. width: 40rpx;
  130. height: 40rpx;
  131. background-color: #F4F4F4;
  132. border-radius: 50%;
  133. }
  134. &::before {
  135. left: -44rpx;
  136. }
  137. &::after {
  138. right: -44rpx;
  139. }
  140. }
  141. .only_canvas {
  142. position: absolute;
  143. left: -300rpx;
  144. top: 0;
  145. width: 202rpx;
  146. height: 202rpx;
  147. }
  148. .qrcode-section {
  149. margin-top: 20rpx;
  150. padding-bottom: 32rpx;
  151. padding: 0 24rpx 28rpx;
  152. .qrcode-block {
  153. display: flex;
  154. margin-top: 20rpx;
  155. background: #FBF5EE;
  156. border-radius: 20rpx;
  157. overflow: hidden;
  158. .left-text {
  159. padding: 0 18rpx 0 22rpx;
  160. background: linear-gradient( 180deg, #544F4A 0%, #302F2B 100%);
  161. display: flex;
  162. align-items: center;
  163. justify-content: center;
  164. writing-mode: vertical-lr;
  165. font-weight: 600;
  166. font-size: 26rpx;
  167. color: #FBEAC9;
  168. line-height: 36rpx;
  169. letter-spacing: 10rpx;
  170. }
  171. }
  172. .qrcode-wrap {
  173. position: relative;
  174. margin: 32rpx auto;
  175. border: 2rpx solid #EDEDED;
  176. padding: 6rpx;
  177. border-radius: 8rpx;
  178. display: inline-block;
  179. font-size: 0;
  180. }
  181. .my_draw_canvas {
  182. width: 202rpx;
  183. height: 202rpx;
  184. background-color: #fff;
  185. }
  186. .qrcode-text {
  187. font-size: 28rpx;
  188. color: #131415;
  189. line-height: 40rpx;
  190. border-radius: 12rpx;
  191. font-size: 24rpx;
  192. border: 2rpx solid #F2F2F2;
  193. padding: 16rpx 24rpx;
  194. text-align: left;
  195. text {
  196. color: #DDA64C;
  197. font-weight: bold;
  198. }
  199. &.used {
  200. color: #777;
  201. }
  202. }
  203. }
  204. .order-time {
  205. margin: 24rpx 26rpx 0;
  206. border-radius: 20rpx;
  207. // padding: 36rpx 24rpx;
  208. background-color: #FFFFFF;
  209. .order-item {
  210. display: flex;
  211. justify-content: space-between;
  212. // padding-bottom: 36rpx;
  213. padding: 36rpx 0;
  214. margin: 0 24rpx;
  215. border-bottom: 2rpx solid #F0F0F0;
  216. &:last-child {
  217. border-bottom: none;
  218. }
  219. .title {
  220. font-weight: 500;
  221. font-size: 30rpx;
  222. color: #131415;
  223. line-height: 42rpx;
  224. }
  225. .value {
  226. font-size: 30rpx;
  227. color: #777777;
  228. line-height: 42rpx;
  229. display: flex;
  230. &.red {
  231. color: #FE2451;
  232. }
  233. .copy {
  234. font-size: 30rpx;
  235. color: #131415;
  236. line-height: 42rpx;
  237. display: flex;
  238. align-items: center;
  239. &::before {
  240. content: '';
  241. display: block;
  242. width: 2rpx;
  243. height: 22rpx;
  244. background: #DCDCDC;
  245. margin: 0 16rpx;
  246. }
  247. }
  248. }
  249. }
  250. }
  251. .order-btn {
  252. position: fixed;
  253. bottom: 0;
  254. left: 0;
  255. width: 100%;
  256. background-color: #FFFFFF;
  257. padding: 20rpx 32rpx 58rpx 40rpx;
  258. display: flex;
  259. justify-content: space-between;
  260. box-sizing: border-box;
  261. .orders {
  262. display: flex;
  263. flex-direction: column;
  264. margin-right: 40rpx;
  265. image {
  266. width: 48rpx;
  267. height: 48rpx;
  268. }
  269. text {
  270. font-weight: 500;
  271. font-size: 22rpx;
  272. color: #131415;
  273. line-height: 32rpx;
  274. text-align: center;
  275. }
  276. }
  277. .price {
  278. display: flex;
  279. align-items: center;
  280. .desc {
  281. font-weight: 500;
  282. font-size: 28rpx;
  283. color: #131415;
  284. line-height: 40rpx;
  285. }
  286. .currentPrice {
  287. font-weight: bold;
  288. color: #FE2451;
  289. font-family: DINAlternate, DINAlternate;
  290. .stuff {
  291. font-size: 32rpx;
  292. }
  293. .priceZ {
  294. font-size: 56rpx;
  295. }
  296. .priceF {
  297. font-size: 32rpx;
  298. }
  299. }
  300. }
  301. button {
  302. margin: 0;
  303. width: 100%;
  304. background: linear-gradient( 90deg, #544F4A 0%, #302F2B 100%);
  305. border-radius: 78rpx;
  306. padding: 22rpx 84rpx;
  307. font-weight: 500;
  308. font-size: 32rpx;
  309. color: #FBEAC9;
  310. line-height: 44rpx;
  311. }
  312. }