order-result.less 8.9 KB

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