order-result.less 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483
  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: 46rpx;
  22. overflow: hidden;
  23. }
  24. .order-status {
  25. margin: 24rpx 26rpx 0;
  26. background-color: #FFFFFF;
  27. border-radius: 20rpx;
  28. padding: 24rpx 32rpx;
  29. .status {
  30. display: flex;
  31. image {
  32. width: 48rpx;
  33. height: 48rpx;
  34. margin-right: 16rpx;
  35. }
  36. text {
  37. font-weight: 600;
  38. font-size: 36rpx;
  39. color: #131415;
  40. line-height: 48rpx;
  41. }
  42. }
  43. .tips {
  44. padding-top: 24rpx;
  45. font-size: 28rpx;
  46. color: #777777;
  47. line-height: 40rpx;
  48. }
  49. }
  50. .order-content {
  51. margin: 24rpx 26rpx 0;
  52. border-radius: 20rpx;
  53. padding: 28rpx 24rpx;
  54. display: flex;
  55. flex-direction: column;
  56. background-color: #FFFFFF;
  57. }
  58. .item-content {
  59. display: flex;
  60. width: 100%;
  61. &+.item-content {
  62. padding-top: 40rpx;
  63. }
  64. .goods-icon {
  65. width: 160rpx;
  66. height: 160rpx;
  67. margin-right: 24rpx;
  68. flex-shrink: 0;
  69. border-radius: 6px;
  70. overflow: hidden;
  71. }
  72. .goods-desc {
  73. flex: 1 auto;
  74. display: flex;
  75. flex-direction: column;
  76. }
  77. .goodsInfo {
  78. display: flex;
  79. justify-content: space-between;
  80. padding-top: 4rpx;
  81. .goods-name {
  82. flex: 1 auto;
  83. white-space: nowrap;
  84. overflow: hidden;
  85. font-weight: 600;
  86. font-size: 30rpx;
  87. color: #131415;
  88. line-height: 50rpx;
  89. text-overflow: ellipsis;
  90. max-width: 280rpx;
  91. }
  92. .goods-price {
  93. flex-shrink: 0;
  94. font-family: DINAlternate, DINAlternate;
  95. font-weight: bold;
  96. font-size: 28rpx;
  97. color: #131415;
  98. line-height: 48rpx;
  99. text {
  100. font-size: 32rpx;
  101. padding-left: 4rpx;
  102. }
  103. }
  104. }
  105. .goods-type {
  106. display: flex;
  107. justify-content: space-between;
  108. align-items: center;
  109. padding-top: 12rpx;
  110. .goods-card {
  111. background: #FEEDF0;
  112. border-radius: 6rpx;
  113. font-size: 26rpx;
  114. color: #FE2451;
  115. line-height: 40rpx;
  116. padding: 0 12rpx;
  117. }
  118. .goods-num {
  119. font-size: 26rpx;
  120. color: #777777;
  121. line-height: 36rpx;
  122. }
  123. }
  124. }
  125. .goodsInfos {
  126. margin-top: 30rpx;
  127. // border-top: 2rpx solid #F2F2F2;
  128. .qrcode-line {
  129. position: relative;
  130. // background: linear-gradient(to right, transparent 50%, rgba(219, 219, 219, 1) 50%) repeat-x; // 设置水平方向的线性渐变,透明与半透明色交替,模拟虚线线段
  131. // background-size: 10px 1px; // 设置背景大小,控制虚线的线段长度和粗细,这里线段长度为10px,粗细为1px
  132. background-color: #F2F2F2;
  133. height: 2rpx; // 元素高度,可根据实际需求调整,用于展示虚线效果的高度范围
  134. margin: 24rpx 0 28rpx;
  135. // &::before,
  136. // &::after {
  137. // content: '';
  138. // position: absolute;
  139. // top: -20rpx;
  140. // display: block;
  141. // width: 40rpx;
  142. // height: 40rpx;
  143. // background-color: #F4F4F4;
  144. // border-radius: 50%;
  145. // }
  146. // &::before {
  147. // left: -50rpx;
  148. // }
  149. // &::after {
  150. // right: -50rpx;
  151. // }
  152. }
  153. }
  154. .goodsInfo-item {
  155. display: flex;
  156. justify-content: space-between;
  157. align-items: center;
  158. padding-top: 28rpx;
  159. &:first-child {
  160. padding-top: 0;
  161. .title {
  162. color: #777;
  163. }
  164. }
  165. .title {
  166. font-weight: 400;
  167. font-size: 28rpx;
  168. color: #FE2451;
  169. line-height: 40rpx;
  170. }
  171. .goods-price {
  172. flex-shrink: 0;
  173. font-family: DINAlternate, DINAlternate;
  174. font-weight: bold;
  175. color: #131415;
  176. line-height: 48rpx;
  177. .stuff {
  178. font-size: 28rpx;
  179. padding-right: 4rpx;
  180. }
  181. .priceZ {
  182. font-size: 32rpx;
  183. }
  184. .priceF {
  185. font-size: 24rpx;
  186. }
  187. }
  188. .calc-price {
  189. // font-weight: bold;
  190. // font-size: 28rpx;
  191. color: #FF0047;
  192. // line-height: 32rpx;
  193. }
  194. }
  195. .goodsInfo-count {
  196. display: flex;
  197. justify-content: flex-end;
  198. .goods-price {
  199. flex-shrink: 0;
  200. font-family: DINAlternate, DINAlternate;
  201. font-weight: bold;
  202. color: #131415;
  203. line-height: 48rpx;
  204. .before {
  205. font-weight: 400;
  206. font-size: 24rpx;
  207. color: #777777;
  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: 28rpx 24rpx;
  314. background-color: #FFFFFF;
  315. .line {
  316. width: 100%;
  317. height: 2rpx;
  318. background: #F2F2F2;
  319. margin-bottom: 28rpx;
  320. }
  321. .order-item {
  322. display: flex;
  323. justify-content: space-between;
  324. padding-bottom: 28rpx;
  325. &:last-child {
  326. padding-bottom: 0;
  327. }
  328. .title {
  329. font-size: 28rpx;
  330. color: #131415;
  331. line-height: 40rpx;
  332. flex-shrink: 0;
  333. padding-right: 46rpx;
  334. }
  335. .value {
  336. font-size: 28rpx;
  337. color: #777777;
  338. line-height: 42rpx;
  339. display: flex;
  340. align-items: center;
  341. text-align: right;
  342. &.red {
  343. color: #FE2451;
  344. }
  345. &.expanded {
  346. .iconDown {
  347. transform: rotate(0deg);
  348. }
  349. }
  350. .iconDown {
  351. margin-left: 8rpx;
  352. width: 24rpx;
  353. height: 24rpx;
  354. transform: rotate(180deg);
  355. }
  356. .copy {
  357. font-size: 28rpx;
  358. color: #FE2451;
  359. line-height: 42rpx;
  360. display: flex;
  361. align-items: center;
  362. padding-left: 16rpx;
  363. }
  364. }
  365. }
  366. }
  367. .btn-refound {
  368. padding-top: 40rpx;
  369. text-align: center;
  370. font-size: 28rpx;
  371. color: #A7ABAF;
  372. line-height: 40rpx;
  373. }
  374. .order-btn {
  375. position: fixed;
  376. bottom: 0;
  377. left: 0;
  378. width: 100%;
  379. background-color: #FFFFFF;
  380. padding: 20rpx 32rpx 58rpx 40rpx;
  381. display: flex;
  382. justify-content: space-between;
  383. box-sizing: border-box;
  384. .orders {
  385. display: flex;
  386. flex-direction: column;
  387. margin-right: 40rpx;
  388. image {
  389. width: 48rpx;
  390. height: 48rpx;
  391. }
  392. text {
  393. font-weight: 500;
  394. font-size: 22rpx;
  395. color: #131415;
  396. line-height: 32rpx;
  397. text-align: center;
  398. }
  399. }
  400. .price {
  401. display: flex;
  402. align-items: center;
  403. .desc {
  404. font-weight: 500;
  405. font-size: 28rpx;
  406. color: #131415;
  407. line-height: 40rpx;
  408. }
  409. .currentPrice {
  410. font-weight: bold;
  411. color: #FE2451;
  412. font-family: DINAlternate, DINAlternate;
  413. .stuff {
  414. font-size: 32rpx;
  415. }
  416. .priceZ {
  417. font-size: 56rpx;
  418. }
  419. .priceF {
  420. font-size: 32rpx;
  421. }
  422. }
  423. }
  424. button {
  425. margin: 0;
  426. width: 100%;
  427. background: linear-gradient( 270deg, #FF204B 0%, #FE5B71 100%);
  428. border-radius: 78rpx;
  429. padding: 22rpx 84rpx;
  430. font-weight: 500;
  431. font-size: 32rpx;
  432. color: #FFFFFF;
  433. line-height: 44rpx;
  434. &[disabled][type=primary] {
  435. color: #fff;
  436. background: linear-gradient( 270deg, #FF204B 0%, #FE5B71 100%);
  437. opacity: 0.7;
  438. }
  439. }
  440. }