order-result.less 8.2 KB

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