order-result.less 7.1 KB

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