order-result.less 8.9 KB

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