order-result.less 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  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: -50rpx;
  119. margin-left: -50rpx;
  120. z-index: 9;
  121. width: 100rpx;
  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. }
  208. .qrcode-text {
  209. font-size: 28rpx;
  210. color: #131415;
  211. line-height: 40rpx;
  212. border-radius: 12rpx;
  213. font-size: 24rpx;
  214. border: 2rpx solid #F2F2F2;
  215. padding: 16rpx 24rpx;
  216. text-align: left;
  217. text {
  218. color: #DDA64C;
  219. font-weight: bold;
  220. }
  221. &.used {
  222. color: #777;
  223. }
  224. }
  225. }
  226. .order-time {
  227. margin: 24rpx 26rpx 0;
  228. border-radius: 20rpx;
  229. // padding: 36rpx 24rpx;
  230. background-color: #FFFFFF;
  231. .order-item {
  232. display: flex;
  233. justify-content: space-between;
  234. // padding-bottom: 36rpx;
  235. padding: 36rpx 0;
  236. margin: 0 24rpx;
  237. border-bottom: 2rpx solid #F0F0F0;
  238. &:last-child {
  239. border-bottom: none;
  240. }
  241. .title {
  242. font-weight: 500;
  243. font-size: 30rpx;
  244. color: #131415;
  245. line-height: 42rpx;
  246. }
  247. .value {
  248. font-size: 30rpx;
  249. color: #777777;
  250. line-height: 42rpx;
  251. display: flex;
  252. &.red {
  253. color: #FE2451;
  254. }
  255. .copy {
  256. font-size: 30rpx;
  257. color: #131415;
  258. line-height: 42rpx;
  259. display: flex;
  260. align-items: center;
  261. &::before {
  262. content: '';
  263. display: block;
  264. width: 2rpx;
  265. height: 22rpx;
  266. background: #DCDCDC;
  267. margin: 0 16rpx;
  268. }
  269. }
  270. }
  271. }
  272. }
  273. .order-btn {
  274. position: fixed;
  275. bottom: 0;
  276. left: 0;
  277. width: 100%;
  278. background-color: #FFFFFF;
  279. padding: 20rpx 32rpx 58rpx 40rpx;
  280. display: flex;
  281. justify-content: space-between;
  282. box-sizing: border-box;
  283. .orders {
  284. display: flex;
  285. flex-direction: column;
  286. margin-right: 40rpx;
  287. image {
  288. width: 48rpx;
  289. height: 48rpx;
  290. }
  291. text {
  292. font-weight: 500;
  293. font-size: 22rpx;
  294. color: #131415;
  295. line-height: 32rpx;
  296. text-align: center;
  297. }
  298. }
  299. .price {
  300. display: flex;
  301. align-items: center;
  302. .desc {
  303. font-weight: 500;
  304. font-size: 28rpx;
  305. color: #131415;
  306. line-height: 40rpx;
  307. }
  308. .currentPrice {
  309. font-weight: bold;
  310. color: #FE2451;
  311. font-family: DINAlternate, DINAlternate;
  312. .stuff {
  313. font-size: 32rpx;
  314. }
  315. .priceZ {
  316. font-size: 56rpx;
  317. }
  318. .priceF {
  319. font-size: 32rpx;
  320. }
  321. }
  322. }
  323. button {
  324. margin: 0;
  325. width: 100%;
  326. background: linear-gradient( 90deg, #544F4A 0%, #302F2B 100%);
  327. border-radius: 78rpx;
  328. padding: 22rpx 84rpx;
  329. font-weight: 500;
  330. font-size: 32rpx;
  331. color: #FBEAC9;
  332. line-height: 44rpx;
  333. }
  334. }