order-result.less 7.8 KB

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