order-result.less 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458
  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. vertical-align: middle;
  208. }
  209. .stuff {
  210. font-size: 38rpx;
  211. padding-right: 4rpx;
  212. }
  213. .priceZ {
  214. font-size: 40rpx;
  215. line-height: 1;
  216. }
  217. .priceF {
  218. font-size: 24rpx;
  219. }
  220. }
  221. }
  222. /* HTML: <div class="loader"></div> */
  223. .loader {
  224. position: absolute;
  225. top: 50%;
  226. left: 50%;
  227. right: 0;
  228. bottom: 0;
  229. margin-top: -50rpx;
  230. margin-left: -50rpx;
  231. z-index: 9;
  232. width: 100rpx;
  233. aspect-ratio: 1;
  234. border-radius: 50%;
  235. background:
  236. radial-gradient(farthest-side,#E8E8E8 94%,#0000) top/8px 8px no-repeat,
  237. conic-gradient(#0000 30%,#E8E8E8);
  238. -webkit-mask: radial-gradient(farthest-side,#0000 calc(100% - 8px),#000 0);
  239. animation: tempLoading 1s infinite linear;
  240. }
  241. @keyframes tempLoading{
  242. 100%{transform: rotate(1turn)}
  243. }
  244. .only_canvas {
  245. position: absolute;
  246. left: -300rpx;
  247. top: 0;
  248. width: 262rpx;
  249. height: 262rpx;
  250. }
  251. .qrcode-section {
  252. margin-top: 28rpx;
  253. border-top: 2rpx solid #F0F0F0;
  254. padding-top: 60rpx;
  255. padding-bottom: 32rpx;
  256. text-align: center;
  257. .qrcode-wrap {
  258. position: relative;
  259. margin: 0 auto;
  260. border: 3rpx solid #EDEDED;
  261. padding: 10rpx;
  262. display: inline-block;
  263. font-size: 0;
  264. }
  265. .my_draw_canvas {
  266. width: 262rpx;
  267. height: 262rpx;
  268. }
  269. .qrcode-text {
  270. margin-top: 32rpx;
  271. padding: 0 32rpx;
  272. font-weight: 500;
  273. font-size: 28rpx;
  274. color: #131415;
  275. line-height: 40rpx;
  276. &.used {
  277. color: #AAAAAA;
  278. }
  279. }
  280. .qrcode-btn--section {
  281. display: flex;
  282. align-items: center;
  283. justify-content: center;
  284. padding-top: 32rpx;
  285. button {
  286. border-radius: 78rpx;
  287. // line-height: 68rpx;
  288. padding: 14rpx 30rpx;
  289. width: auto;
  290. border-radius: 68rpx;
  291. font-weight: 500;
  292. font-size: 28rpx;
  293. margin: 0 16rpx;
  294. min-width: 200rpx;
  295. box-sizing: border-box;
  296. &[disabled] {
  297. opacity: 0.7;
  298. }
  299. }
  300. .submit {
  301. background: linear-gradient( 270deg, #FF7B57 0%, #FF3460 100%);
  302. color: #FFFFFF;
  303. }
  304. .download {
  305. background: #FEEDF0;
  306. color: #FE2451;
  307. }
  308. }
  309. }
  310. .order-time {
  311. margin: 24rpx 26rpx 0;
  312. border-radius: 20rpx;
  313. padding: 36rpx 24rpx;
  314. background-color: #FFFFFF;
  315. .order-item {
  316. display: flex;
  317. justify-content: space-between;
  318. padding-bottom: 36rpx;
  319. &:last-child {
  320. padding-bottom: 0;
  321. }
  322. .title {
  323. font-size: 28rpx;
  324. color: #131415;
  325. line-height: 40rpx;
  326. }
  327. .value {
  328. font-size: 30rpx;
  329. color: #777777;
  330. line-height: 42rpx;
  331. display: flex;
  332. &.red {
  333. color: #FE2451;
  334. }
  335. .copy {
  336. font-size: 30rpx;
  337. color: #FE2451;
  338. line-height: 42rpx;
  339. display: flex;
  340. align-items: center;
  341. padding-left: 16rpx;
  342. }
  343. }
  344. }
  345. }
  346. .btn-refound {
  347. padding-top: 40rpx;
  348. text-align: center;
  349. font-size: 28rpx;
  350. color: #A7ABAF;
  351. line-height: 40rpx;
  352. }
  353. .order-btn {
  354. position: fixed;
  355. bottom: 0;
  356. left: 0;
  357. width: 100%;
  358. background-color: #FFFFFF;
  359. padding: 20rpx 32rpx 58rpx 40rpx;
  360. display: flex;
  361. justify-content: space-between;
  362. box-sizing: border-box;
  363. .orders {
  364. display: flex;
  365. flex-direction: column;
  366. margin-right: 40rpx;
  367. image {
  368. width: 48rpx;
  369. height: 48rpx;
  370. }
  371. text {
  372. font-weight: 500;
  373. font-size: 22rpx;
  374. color: #131415;
  375. line-height: 32rpx;
  376. text-align: center;
  377. }
  378. }
  379. .price {
  380. display: flex;
  381. align-items: center;
  382. .desc {
  383. font-weight: 500;
  384. font-size: 28rpx;
  385. color: #131415;
  386. line-height: 40rpx;
  387. }
  388. .currentPrice {
  389. font-weight: bold;
  390. color: #FE2451;
  391. font-family: DINAlternate, DINAlternate;
  392. .stuff {
  393. font-size: 32rpx;
  394. }
  395. .priceZ {
  396. font-size: 56rpx;
  397. }
  398. .priceF {
  399. font-size: 32rpx;
  400. }
  401. }
  402. }
  403. button {
  404. margin: 0;
  405. width: 100%;
  406. background: linear-gradient( 270deg, #FF204B 0%, #FE5B71 100%);
  407. border-radius: 78rpx;
  408. padding: 22rpx 84rpx;
  409. font-weight: 500;
  410. font-size: 32rpx;
  411. color: #FFFFFF;
  412. line-height: 44rpx;
  413. &[disabled][type=primary] {
  414. color: #fff;
  415. background: linear-gradient( 270deg, #FF204B 0%, #FE5B71 100%);
  416. opacity: 0.7;
  417. }
  418. }
  419. }