order-result.less 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  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. /* HTML: <div class="loader"></div> */
  112. .loader {
  113. position: absolute;
  114. top: 50%;
  115. left: 50%;
  116. right: 0;
  117. bottom: 0;
  118. margin-top: -25rpx;
  119. margin-left: -25rpx;
  120. z-index: 9;
  121. width: 50rpx;
  122. aspect-ratio: 1;
  123. border-radius: 50%;
  124. background:
  125. radial-gradient(farthest-side,#E8E8E8 94%,#0000) top/8px 8px no-repeat,
  126. conic-gradient(#0000 30%,#E8E8E8);
  127. -webkit-mask: radial-gradient(farthest-side,#0000 calc(100% - 8px),#000 0);
  128. animation: tempLoading 1s infinite linear;
  129. }
  130. @keyframes tempLoading{
  131. 100%{transform: rotate(1turn)}
  132. }
  133. .qrcode-title {
  134. padding: 40rpx 24rpx;
  135. font-weight: 600;
  136. font-size: 30rpx;
  137. color: #131415;
  138. line-height: 42rpx;
  139. }
  140. .qrcode-line {
  141. position: relative;
  142. background: linear-gradient(to right, transparent 50%, rgba(219, 219, 219, 1) 50%) repeat-x; // 设置水平方向的线性渐变,透明与半透明色交替,模拟虚线线段
  143. background-size: 10px 1px; // 设置背景大小,控制虚线的线段长度和粗细,这里线段长度为10px,粗细为1px
  144. height: 2rpx; // 元素高度,可根据实际需求调整,用于展示虚线效果的高度范围
  145. margin: 0 24rpx;
  146. &::before, &::after {
  147. content: '';
  148. position: absolute;
  149. top: -20rpx;
  150. display: block;
  151. width: 40rpx;
  152. height: 40rpx;
  153. background-color: #F4F4F4;
  154. border-radius: 50%;
  155. }
  156. &::before {
  157. left: -44rpx;
  158. }
  159. &::after {
  160. right: -44rpx;
  161. }
  162. }
  163. .only_canvas {
  164. position: absolute;
  165. left: -300rpx;
  166. top: 0;
  167. width: 202rpx;
  168. height: 202rpx;
  169. }
  170. .qrcode-section {
  171. margin-top: 20rpx;
  172. padding-bottom: 32rpx;
  173. padding: 0 24rpx 28rpx;
  174. .qrcode-block {
  175. display: flex;
  176. margin-top: 20rpx;
  177. background: #FBF5EE;
  178. border-radius: 20rpx;
  179. overflow: hidden;
  180. .left-text {
  181. padding: 0 18rpx 0 22rpx;
  182. background: linear-gradient( 180deg, #544F4A 0%, #302F2B 100%);
  183. display: flex;
  184. align-items: center;
  185. justify-content: center;
  186. writing-mode: vertical-lr;
  187. font-weight: 600;
  188. font-size: 26rpx;
  189. color: #FBEAC9;
  190. line-height: 36rpx;
  191. letter-spacing: 10rpx;
  192. }
  193. }
  194. .qrcode-wrap {
  195. position: relative;
  196. margin: 32rpx auto;
  197. border: 2rpx solid #EDEDED;
  198. padding: 6rpx;
  199. border-radius: 8rpx;
  200. display: inline-block;
  201. font-size: 0;
  202. }
  203. .my_draw_canvas {
  204. width: 202rpx;
  205. height: 202rpx;
  206. background-color: #fff;
  207. padding: 6rpx;
  208. }
  209. .qrcode-text {
  210. font-size: 28rpx;
  211. color: #777;
  212. line-height: 40rpx;
  213. border-radius: 12rpx;
  214. font-size: 26rpx;
  215. border: 2rpx solid #ECCEA0;
  216. padding: 16rpx 24rpx;
  217. text-align: left;
  218. text {
  219. color: #DDA64C;
  220. font-weight: bold;
  221. }
  222. &.used {
  223. color: #777;
  224. }
  225. }
  226. }
  227. .order-time {
  228. margin: 24rpx 26rpx 0;
  229. border-radius: 20rpx;
  230. // padding: 36rpx 24rpx;
  231. background-color: #FFFFFF;
  232. .order-item {
  233. display: flex;
  234. justify-content: space-between;
  235. // padding-bottom: 36rpx;
  236. padding: 36rpx 0;
  237. margin: 0 24rpx;
  238. border-bottom: 2rpx solid #F0F0F0;
  239. &:last-child {
  240. border-bottom: none;
  241. }
  242. .title {
  243. font-weight: 500;
  244. font-size: 30rpx;
  245. color: #131415;
  246. line-height: 42rpx;
  247. }
  248. .value {
  249. font-size: 30rpx;
  250. color: #777777;
  251. line-height: 42rpx;
  252. display: flex;
  253. &.red {
  254. color: #FE2451;
  255. }
  256. .copy {
  257. font-size: 30rpx;
  258. color: #131415;
  259. line-height: 42rpx;
  260. display: flex;
  261. align-items: center;
  262. &::before {
  263. content: '';
  264. display: block;
  265. width: 2rpx;
  266. height: 22rpx;
  267. background: #DCDCDC;
  268. margin: 0 16rpx;
  269. }
  270. }
  271. }
  272. }
  273. }
  274. .order-btn {
  275. position: fixed;
  276. bottom: 0;
  277. left: 0;
  278. width: 100%;
  279. background-color: #FFFFFF;
  280. padding: 20rpx 32rpx 58rpx 40rpx;
  281. display: flex;
  282. justify-content: space-between;
  283. box-sizing: border-box;
  284. .orders {
  285. display: flex;
  286. flex-direction: column;
  287. margin-right: 40rpx;
  288. image {
  289. width: 48rpx;
  290. height: 48rpx;
  291. }
  292. text {
  293. font-weight: 500;
  294. font-size: 22rpx;
  295. color: #131415;
  296. line-height: 32rpx;
  297. text-align: center;
  298. }
  299. }
  300. .price {
  301. display: flex;
  302. align-items: center;
  303. .desc {
  304. font-weight: 500;
  305. font-size: 28rpx;
  306. color: #131415;
  307. line-height: 40rpx;
  308. }
  309. .currentPrice {
  310. font-weight: bold;
  311. color: #FE2451;
  312. font-family: DINAlternate, DINAlternate;
  313. .stuff {
  314. font-size: 32rpx;
  315. }
  316. .priceZ {
  317. font-size: 56rpx;
  318. }
  319. .priceF {
  320. font-size: 32rpx;
  321. }
  322. }
  323. }
  324. button {
  325. margin: 0;
  326. width: 100%;
  327. background: linear-gradient( 90deg, #544F4A 0%, #302F2B 100%);
  328. border-radius: 78rpx;
  329. padding: 22rpx 84rpx;
  330. font-weight: 500;
  331. font-size: 32rpx;
  332. color: #FBEAC9;
  333. line-height: 44rpx;
  334. }
  335. }