order-result.less 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459
  1. /* pages/orders/order-detail.wxss */
  2. page {
  3. height: 100vh;
  4. display: flex;
  5. flex-direction: column;
  6. background: #F5F6F7;
  7. }
  8. .container {
  9. display: flex;
  10. flex-direction: column;
  11. width: 100%;
  12. flex: 1;
  13. overflow-y: auto;
  14. }
  15. .record-list {
  16. flex: 1;
  17. overflow-y: scroll;
  18. box-sizing: border-box;
  19. }
  20. .scroll-container {
  21. padding-bottom: 180rpx;
  22. }
  23. .order-status {
  24. margin: 24rpx 26rpx 0;
  25. background-color: #FFFFFF;
  26. border-radius: 20rpx;
  27. padding: 24rpx 32rpx;
  28. .status {
  29. display: flex;
  30. image {
  31. width: 48rpx;
  32. height: 48rpx;
  33. margin-right: 16rpx;
  34. }
  35. text {
  36. font-weight: 600;
  37. font-size: 36rpx;
  38. color: #131415;
  39. line-height: 48rpx;
  40. }
  41. }
  42. .tips {
  43. padding-top: 24rpx;
  44. font-size: 28rpx;
  45. color: #777777;
  46. line-height: 40rpx;
  47. }
  48. }
  49. .order-content {
  50. margin: 24rpx 26rpx 0;
  51. border-radius: 20rpx;
  52. padding: 28rpx 24rpx;
  53. display: flex;
  54. flex-direction: column;
  55. background-color: #FFFFFF;
  56. }
  57. .item-content {
  58. display: flex;
  59. width: 100%;
  60. &+.item-content {
  61. padding-top: 40rpx;
  62. }
  63. .goods-icon {
  64. width: 160rpx;
  65. height: 160rpx;
  66. margin-right: 24rpx;
  67. flex-shrink: 0;
  68. border-radius: 6px;
  69. overflow: hidden;
  70. }
  71. .goods-desc {
  72. flex: 1 auto;
  73. display: flex;
  74. flex-direction: column;
  75. }
  76. .goodsInfo {
  77. display: flex;
  78. justify-content: space-between;
  79. padding-top: 4rpx;
  80. .goods-name {
  81. flex: 1 auto;
  82. white-space: nowrap;
  83. overflow: hidden;
  84. font-weight: 600;
  85. font-size: 30rpx;
  86. color: #131415;
  87. line-height: 50rpx;
  88. text-overflow: ellipsis;
  89. max-width: 280rpx;
  90. }
  91. .goods-price {
  92. flex-shrink: 0;
  93. font-family: DINAlternate, DINAlternate;
  94. font-weight: bold;
  95. font-size: 28rpx;
  96. color: #131415;
  97. line-height: 48rpx;
  98. text {
  99. font-size: 32rpx;
  100. padding-left: 4rpx;
  101. }
  102. }
  103. }
  104. .goods-type {
  105. display: flex;
  106. justify-content: space-between;
  107. align-items: center;
  108. padding-top: 12rpx;
  109. .goods-card {
  110. background: #FEEDF0;
  111. border-radius: 6rpx;
  112. font-size: 26rpx;
  113. color: #FE2451;
  114. line-height: 40rpx;
  115. padding: 0 12rpx;
  116. }
  117. .goods-num {
  118. font-size: 26rpx;
  119. color: #777777;
  120. line-height: 36rpx;
  121. }
  122. }
  123. }
  124. .goodsInfos {
  125. margin-top: 30rpx;
  126. // border-top: 2rpx solid #F2F2F2;
  127. .qrcode-line {
  128. position: relative;
  129. // background: linear-gradient(to right, transparent 50%, rgba(219, 219, 219, 1) 50%) repeat-x; // 设置水平方向的线性渐变,透明与半透明色交替,模拟虚线线段
  130. // background-size: 10px 1px; // 设置背景大小,控制虚线的线段长度和粗细,这里线段长度为10px,粗细为1px
  131. background-color: #F2F2F2;
  132. height: 2rpx; // 元素高度,可根据实际需求调整,用于展示虚线效果的高度范围
  133. margin: 24rpx 0 28rpx;
  134. // &::before,
  135. // &::after {
  136. // content: '';
  137. // position: absolute;
  138. // top: -20rpx;
  139. // display: block;
  140. // width: 40rpx;
  141. // height: 40rpx;
  142. // background-color: #F4F4F4;
  143. // border-radius: 50%;
  144. // }
  145. // &::before {
  146. // left: -50rpx;
  147. // }
  148. // &::after {
  149. // right: -50rpx;
  150. // }
  151. }
  152. }
  153. .goodsInfo-item {
  154. display: flex;
  155. justify-content: space-between;
  156. align-items: center;
  157. padding-top: 28rpx;
  158. &:first-child {
  159. padding-top: 0;
  160. .title {
  161. color: #777;
  162. }
  163. }
  164. .title {
  165. font-weight: 400;
  166. font-size: 28rpx;
  167. color: #FE2451;
  168. line-height: 40rpx;
  169. }
  170. .goods-price {
  171. flex-shrink: 0;
  172. font-family: DINAlternate, DINAlternate;
  173. font-weight: bold;
  174. color: #131415;
  175. line-height: 48rpx;
  176. .stuff {
  177. font-size: 28rpx;
  178. padding-right: 4rpx;
  179. }
  180. .priceZ {
  181. font-size: 32rpx;
  182. }
  183. .priceF {
  184. font-size: 24rpx;
  185. }
  186. }
  187. .calc-price {
  188. // font-weight: bold;
  189. // font-size: 28rpx;
  190. color: #FF0047;
  191. // line-height: 32rpx;
  192. }
  193. }
  194. .goodsInfo-count {
  195. display: flex;
  196. justify-content: flex-end;
  197. .goods-price {
  198. flex-shrink: 0;
  199. font-family: DINAlternate, DINAlternate;
  200. font-weight: bold;
  201. color: #131415;
  202. line-height: 48rpx;
  203. .before {
  204. font-weight: 400;
  205. font-size: 24rpx;
  206. color: #777777;
  207. }
  208. .stuff {
  209. font-size: 38rpx;
  210. padding-right: 4rpx;
  211. }
  212. .priceZ {
  213. font-size: 40rpx;
  214. line-height: 1;
  215. }
  216. .priceF {
  217. font-size: 24rpx;
  218. }
  219. }
  220. }
  221. /* HTML: <div class="loader"></div> */
  222. .loader {
  223. position: absolute;
  224. top: 50%;
  225. left: 50%;
  226. right: 0;
  227. bottom: 0;
  228. margin-top: -50rpx;
  229. margin-left: -50rpx;
  230. z-index: 9;
  231. width: 100rpx;
  232. aspect-ratio: 1;
  233. border-radius: 50%;
  234. background:
  235. radial-gradient(farthest-side,#E8E8E8 94%,#0000) top/8px 8px no-repeat,
  236. conic-gradient(#0000 30%,#E8E8E8);
  237. -webkit-mask: radial-gradient(farthest-side,#0000 calc(100% - 8px),#000 0);
  238. animation: tempLoading 1s infinite linear;
  239. }
  240. @keyframes tempLoading{
  241. 100%{transform: rotate(1turn)}
  242. }
  243. .only_canvas {
  244. position: absolute;
  245. left: -300rpx;
  246. top: 0;
  247. width: 262rpx;
  248. height: 262rpx;
  249. }
  250. .qrcode-section {
  251. margin-top: 28rpx;
  252. border-top: 2rpx solid #F0F0F0;
  253. padding-top: 60rpx;
  254. padding-bottom: 32rpx;
  255. text-align: center;
  256. .qrcode-wrap {
  257. position: relative;
  258. margin: 0 auto;
  259. border: 3rpx solid #EDEDED;
  260. padding: 10rpx;
  261. display: inline-block;
  262. font-size: 0;
  263. }
  264. .my_draw_canvas {
  265. width: 262rpx;
  266. height: 262rpx;
  267. }
  268. .qrcode-text {
  269. margin-top: 32rpx;
  270. padding: 0 32rpx;
  271. font-weight: 500;
  272. font-size: 28rpx;
  273. color: #131415;
  274. line-height: 40rpx;
  275. &.used {
  276. color: #AAAAAA;
  277. }
  278. }
  279. .qrcode-btn--section {
  280. display: flex;
  281. align-items: center;
  282. justify-content: center;
  283. padding-top: 32rpx;
  284. button {
  285. border-radius: 78rpx;
  286. // line-height: 68rpx;
  287. padding: 14rpx 30rpx;
  288. width: auto;
  289. border-radius: 68rpx;
  290. font-weight: 500;
  291. font-size: 28rpx;
  292. margin: 0 16rpx;
  293. min-width: 200rpx;
  294. box-sizing: border-box;
  295. &[disabled] {
  296. opacity: 0.7;
  297. }
  298. }
  299. .submit {
  300. background: linear-gradient( 270deg, #FF7B57 0%, #FF3460 100%);
  301. color: #FFFFFF;
  302. }
  303. .download {
  304. background: #FEEDF0;
  305. color: #FE2451;
  306. }
  307. }
  308. }
  309. .order-time {
  310. margin: 24rpx 26rpx 0;
  311. border-radius: 20rpx;
  312. padding: 28rpx 24rpx;
  313. background-color: #FFFFFF;
  314. .order-item {
  315. display: flex;
  316. justify-content: space-between;
  317. padding-bottom: 36rpx;
  318. &:last-child {
  319. padding-bottom: 0;
  320. }
  321. .title {
  322. font-size: 28rpx;
  323. color: #131415;
  324. line-height: 40rpx;
  325. flex-shrink: 0;
  326. padding-right: 26rpx;
  327. }
  328. .value {
  329. font-size: 28rpx;
  330. color: #777777;
  331. line-height: 42rpx;
  332. display: flex;
  333. &.red {
  334. color: #FE2451;
  335. }
  336. .copy {
  337. font-size: 28rpx;
  338. color: #FE2451;
  339. line-height: 42rpx;
  340. display: flex;
  341. align-items: center;
  342. padding-left: 16rpx;
  343. }
  344. }
  345. }
  346. }
  347. .btn-refound {
  348. padding-top: 40rpx;
  349. text-align: center;
  350. font-size: 28rpx;
  351. color: #A7ABAF;
  352. line-height: 40rpx;
  353. }
  354. .order-btn {
  355. position: fixed;
  356. bottom: 0;
  357. left: 0;
  358. width: 100%;
  359. background-color: #FFFFFF;
  360. padding: 20rpx 32rpx 58rpx 40rpx;
  361. display: flex;
  362. justify-content: space-between;
  363. box-sizing: border-box;
  364. .orders {
  365. display: flex;
  366. flex-direction: column;
  367. margin-right: 40rpx;
  368. image {
  369. width: 48rpx;
  370. height: 48rpx;
  371. }
  372. text {
  373. font-weight: 500;
  374. font-size: 22rpx;
  375. color: #131415;
  376. line-height: 32rpx;
  377. text-align: center;
  378. }
  379. }
  380. .price {
  381. display: flex;
  382. align-items: center;
  383. .desc {
  384. font-weight: 500;
  385. font-size: 28rpx;
  386. color: #131415;
  387. line-height: 40rpx;
  388. }
  389. .currentPrice {
  390. font-weight: bold;
  391. color: #FE2451;
  392. font-family: DINAlternate, DINAlternate;
  393. .stuff {
  394. font-size: 32rpx;
  395. }
  396. .priceZ {
  397. font-size: 56rpx;
  398. }
  399. .priceF {
  400. font-size: 32rpx;
  401. }
  402. }
  403. }
  404. button {
  405. margin: 0;
  406. width: 100%;
  407. background: linear-gradient( 270deg, #FF204B 0%, #FE5B71 100%);
  408. border-radius: 78rpx;
  409. padding: 22rpx 84rpx;
  410. font-weight: 500;
  411. font-size: 32rpx;
  412. color: #FFFFFF;
  413. line-height: 44rpx;
  414. &[disabled][type=primary] {
  415. color: #fff;
  416. background: linear-gradient( 270deg, #FF204B 0%, #FE5B71 100%);
  417. opacity: 0.7;
  418. }
  419. }
  420. }