You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

arrears.vue 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615
  1. <template>
  2. <view class="content-box" style="margin-top: 30rpx;">
  3. <view class="list">
  4. <view class="item">
  5. <view class="head">
  6. <view class="name">
  7. <image :src="`${$imgUrl}user/icon-ETC.png`" class="icon"></image>
  8. <text class="title m-10">20230010330</text>
  9. <text class="tag-green">待支付</text>
  10. </view>
  11. <view class="status text-black">贵A123456</view>
  12. </view>
  13. <view class="detail">
  14. <view class="orders">
  15. <view class="order-text">
  16. <text class="type">补缴单号:</text>
  17. <text class="value">01872753475754</text>
  18. </view>
  19. <view class="order-text odd">
  20. <text class="type">补缴单生成时间:</text>
  21. <text class="value">2023-01-12 15:09:18</text>
  22. </view>
  23. </view>
  24. </view>
  25. <view class="bottom">
  26. <view class="bottom-left"><text class="tit">欠费金额:¥</text><text class="amount">1200.00</text>
  27. </view>
  28. <view class="btns-box">
  29. <view class="btn btn-primary" @click="$util.navTo(`/pages/order/refund-confirm`)">支付</view>
  30. </view>
  31. </view>
  32. </view>
  33. <view class="item finished">
  34. <view class="head">
  35. <view class="name">
  36. <image :src="`${$imgUrl}user/icon-ETC.png`" class="icon"></image>
  37. <text class="title m-10">20230010330</text>
  38. <text class="tag-grey">已支付</text>
  39. </view>
  40. <view class="status text-black">贵A123456</view>
  41. </view>
  42. <view class="detail">
  43. <view class="orders">
  44. <view class="order-text">
  45. <text class="type">补缴单号:</text>
  46. <text class="value">01872753475754</text>
  47. </view>
  48. <view class="order-text odd">
  49. <text class="type">补缴单生成时间:</text>
  50. <text class="value">2023-01-12 15:09:18</text>
  51. </view>
  52. </view>
  53. </view>
  54. <view class="bottom">
  55. <view class="bottom-left"><text class="tit">欠费金额:¥</text><text class="amount">1200.00</text>
  56. </view>
  57. <view class="btns-box">
  58. <view class="btn btn-disable">已支付</view>
  59. </view>
  60. </view>
  61. </view>
  62. </view>
  63. <view class="footer">
  64. </view>
  65. </view>
  66. </template>
  67. <script lang="ts" setup>
  68. import {
  69. pathToBase64
  70. } from "@/utils/util/imageTool.js";
  71. import {
  72. getItem
  73. } from "@/utils/storage.ts"
  74. import {
  75. CardBill
  76. } from "@/utils/network/api.js";
  77. import {
  78. request
  79. } from "@/utils/network/request.js";
  80. import {
  81. stringToJson
  82. } from "@/utils/network/encryption";
  83. import {
  84. onLoad,
  85. onShow
  86. } from "@dcloudio/uni-app";
  87. </script>
  88. <style lang="scss">
  89. page {
  90. background: #eef7f7;
  91. }
  92. .content-box {
  93. padding-bottom: 30rpx;
  94. }
  95. .search-btn {
  96. color: white;
  97. background-color: #00B38B;
  98. width: 140rpx;
  99. height: 75rpx;
  100. line-height: 75rpx;
  101. font-size: 32rpx;
  102. border-radius: 40rpx;
  103. text-align: center;
  104. margin-right: 30rpx;
  105. margin-top: 10rpx;
  106. }
  107. .search-box {
  108. margin: 30rpx 30rpx 20rpx 30rpx;
  109. height: 72rpx;
  110. height: 81rpx;
  111. background: #FFFFFF;
  112. border: 1px solid #DCDCDC;
  113. border-radius: 40rpx;
  114. display: flex;
  115. justify-content: center;
  116. align-items: center;
  117. box-sizing: border-box;
  118. flex: 1;
  119. }
  120. .search-box .icon {
  121. width: 48rpx;
  122. height: 48rpx;
  123. margin: 0 20rpx;
  124. }
  125. .search-box .search {
  126. flex: 1;
  127. margin-right: 20rpx;
  128. height: 100%;
  129. padding: 0 10rpx;
  130. font-size: 28rpx;
  131. color: #00b38b;
  132. }
  133. .scroll-view {
  134. white-space: nowrap;
  135. position: sticky;
  136. top: 0;
  137. background: #ffffff;
  138. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  139. }
  140. .top-menu {
  141. display: flex;
  142. }
  143. .top-menu .tab {
  144. font-size: 26rpx;
  145. padding: 38rpx 30rpx;
  146. color: #333;
  147. position: relative;
  148. }
  149. .top-menu .active .border {
  150. position: absolute;
  151. width: 70%;
  152. height: 16rpx;
  153. background: #00b38b;
  154. opacity: 0.3;
  155. bottom: 40rpx;
  156. z-index: -99;
  157. left: 15%;
  158. border-radius: 6rpx;
  159. }
  160. .top-menu .active {
  161. font-weight: bold;
  162. font-size: 28rpx;
  163. }
  164. .top-menu .active::before {
  165. width: 100%;
  166. height: 16rpx;
  167. background: #00b38b;
  168. opacity: 0.3;
  169. }
  170. .search-time {
  171. display: flex;
  172. margin: 20rpx 30rpx 48rpx 30rpx;
  173. justify-content: space-between;
  174. .time-btn {
  175. width: 130rpx;
  176. height: 80rpx;
  177. background: #00B38B;
  178. border-radius: 40rpx;
  179. color: #FFFFFF;
  180. font-size: 32rpx;
  181. line-height: 80rpx;
  182. text-align: center;
  183. }
  184. .show-info {
  185. width: 260rpx;
  186. height: 80rpx;
  187. padding: 0 31rpx;
  188. background: #FFFFFF;
  189. border: 1px solid #DCDCDC;
  190. border-radius: 40rpx;
  191. display: flex;
  192. justify-content: space-between;
  193. align-items: center;
  194. .show-text {
  195. display: flex;
  196. align-items: center;
  197. }
  198. .date-text {
  199. color: #999999;
  200. font-size: 28rpx;
  201. }
  202. .text-val {
  203. color: #333
  204. }
  205. .line {
  206. width: 25rpx;
  207. height: 1rpx;
  208. background: #999999;
  209. margin: 0 24rpx;
  210. }
  211. }
  212. .show-info2 {
  213. width: 541rpx;
  214. height: 80rpx;
  215. padding: 0 31rpx;
  216. background: #FFFFFF;
  217. border: 1px solid #DCDCDC;
  218. border-radius: 40rpx;
  219. display: flex;
  220. justify-content: space-between;
  221. align-items: center;
  222. .show-text {
  223. display: flex;
  224. align-items: center;
  225. flex: 1;
  226. justify-content: space-evenly;
  227. }
  228. .date-text {
  229. color: #999999;
  230. font-size: 28rpx;
  231. }
  232. .text-val {
  233. color: #333
  234. }
  235. .line {
  236. width: 25rpx;
  237. height: 1rpx;
  238. background: #999999;
  239. margin: 0 24rpx;
  240. }
  241. }
  242. }
  243. .count {
  244. margin: 0 30rpx 25rpx 30rpx;
  245. font-size: 28rpx;
  246. font-family: Noto Sans S Chinese;
  247. font-weight: 400;
  248. color: #999999;
  249. line-height: 36rpx;
  250. }
  251. .search-payment-box {
  252. width: 260rpx;
  253. height: 80rpx;
  254. padding: 0 31rpx;
  255. background: #FFFFFF;
  256. border: 1px solid #DCDCDC;
  257. border-radius: 40rpx;
  258. display: flex;
  259. justify-content: space-between;
  260. align-items: center;
  261. color: #999999;
  262. }
  263. .list {
  264. padding: 0 30rpx;
  265. display: flex;
  266. flex-direction: column;
  267. }
  268. .bg-white {
  269. background: #FFFFFF;
  270. border-radius: 30rpx 30rpx 0 0;
  271. }
  272. .bg-white .sub-tabs {
  273. display: flex;
  274. justify-content: space-evenly;
  275. align-items: center;
  276. }
  277. .bg-white .sub-item {
  278. padding: 10rpx 0;
  279. margin: 20rpx 0 30rpx;
  280. border-bottom: 6rpx solid #fff;
  281. font-size: 26rpx;
  282. }
  283. .bg-white .active {
  284. border-bottom: 6rpx solid #00B38B;
  285. color: #00B38B;
  286. font-size: 30rpx;
  287. font-weight: bold;
  288. }
  289. .bg-none {
  290. background: none;
  291. border-radius: 30rpx 30rpx 0 0;
  292. }
  293. .list .item {
  294. background: #ffffff;
  295. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  296. border-radius: 20rpx;
  297. box-sizing: border-box;
  298. display: flex;
  299. flex-direction: column;
  300. margin-bottom: 30rpx;
  301. }
  302. .list.bg-white .item {
  303. box-shadow: 0rpx 4rpx 13rpx 3rpx rgba(223, 223, 223, 0.8);
  304. }
  305. .list .item .head {
  306. display: flex;
  307. justify-content: space-between;
  308. align-items: center;
  309. padding: 20rpx 28rpx;
  310. border-bottom: 1px solid #dcdcdc;
  311. }
  312. .list .item .head {
  313. .head-row {
  314. display: flex;
  315. width: 100%;
  316. justify-content: space-between;
  317. align-items: center;
  318. }
  319. .name {}
  320. .name>text {
  321. font-size: 26rpx;
  322. font-family: Noto Sans S Chinese;
  323. font-weight: 400;
  324. color: #999999;
  325. line-height: 36rpx;
  326. }
  327. }
  328. .list .item .head .icon {
  329. width: 48rpx;
  330. height: 48rpx;
  331. }
  332. .list .item .head .name {
  333. display: flex;
  334. align-items: center;
  335. }
  336. .list .text-green {
  337. font-size: 26rpx;
  338. color: #00b38b;
  339. }
  340. .list .text-orange {
  341. font-size: 26rpx;
  342. color: #ff8000;
  343. }
  344. .list .text-black {
  345. font-size: 28rpx;
  346. color: #333;
  347. font-weight: 500;
  348. }
  349. .list .title {
  350. font-size: 30rpx;
  351. color: #333;
  352. }
  353. .list .tag-green {
  354. font-size: 22rpx;
  355. height: 40rpx;
  356. line-height: 40rpx;
  357. padding: 0 12rpx;
  358. border-radius: 6rpx;
  359. background: #d9f4ee;
  360. color: #00b38b;
  361. }
  362. .list .tag-grey {
  363. font-size: 22rpx;
  364. height: 40rpx;
  365. line-height: 40rpx;
  366. padding: 0 12rpx;
  367. border-radius: 6rpx;
  368. background: #e8e8e8;
  369. color: #666;
  370. }
  371. .list .detail {
  372. display: flex;
  373. justify-content: space-between;
  374. align-items: center;
  375. padding: 30rpx 32rpx;
  376. }
  377. .list .detail .type {
  378. font-size: 26rpx;
  379. color: #999;
  380. }
  381. .list .detail .value {
  382. font-size: 26rpx;
  383. color: #333;
  384. }
  385. .list .finished .detail .value {
  386. color: #999;
  387. }
  388. .list .detail .odd {
  389. margin: 20rpx 0;
  390. }
  391. .list .cny {
  392. font-size: 26rpx;
  393. color: #333;
  394. }
  395. .list .finished .cny {
  396. color: #999;
  397. }
  398. .list .amount {
  399. font-size: 40rpx;
  400. font-weight: bold;
  401. }
  402. .list .bottom .amount {
  403. color: #ff8000;
  404. }
  405. .list .finished .amount {
  406. color: #999;
  407. }
  408. .list .btns {
  409. position: relative;
  410. display: flex;
  411. align-items: center;
  412. justify-content: flex-end;
  413. border-top: 1px solid #dcdcdc;
  414. margin: 0 30rpx;
  415. padding: 20rpx 0;
  416. }
  417. .list .bottom {
  418. display: flex;
  419. justify-content: space-between;
  420. align-items: center;
  421. border-top: 1px solid #dcdcdc;
  422. margin: 0 30rpx;
  423. padding: 20rpx 0;
  424. }
  425. .list .btn {
  426. height: 60rpx;
  427. line-height: 58rpx;
  428. border-radius: 30rpx;
  429. padding: 0 24rpx;
  430. font-size: 26rpx;
  431. box-sizing: border-box;
  432. margin-right: 20rpx;
  433. }
  434. .list .btns .btn:last-child {
  435. margin: 0;
  436. }
  437. .list .btns .state {
  438. position: absolute;
  439. left: 0;
  440. font-size: 26rpx;
  441. font-family: Noto Sans S Chinese;
  442. font-weight: 400;
  443. color: #999999;
  444. line-height: 58rpx;
  445. text {
  446. font-size: 26rpx;
  447. font-family: Noto Sans S Chinese;
  448. font-weight: 400;
  449. color: #00B38B;
  450. line-height: 58rpx;
  451. }
  452. }
  453. .list .btn-primary {
  454. border: 1px solid #00b38b;
  455. color: #00b38b;
  456. }
  457. .list .btn-disable {
  458. border: 1px solid #999;
  459. color: #999;
  460. }
  461. .list .btn-normal {
  462. border: 1px solid #dcdcdc;
  463. color: #333;
  464. }
  465. .m-10 {
  466. margin: 0 10rpx;
  467. }
  468. //
  469. .detail2 {
  470. display: flex;
  471. justify-content: space-between;
  472. align-items: center;
  473. padding: 30rpx 32rpx;
  474. position: relative;
  475. view {
  476. text-align: center;
  477. text {
  478. display: block;
  479. margin: 20rpx 0;
  480. }
  481. view {
  482. font-size: 24rpx;
  483. font-family: Noto Sans S Chinese;
  484. font-weight: 400;
  485. color: #999999;
  486. line-height: 36rpx;
  487. text {
  488. margin: 0;
  489. }
  490. }
  491. }
  492. .indicator {
  493. position: absolute;
  494. left: 50%;
  495. top: 50%;
  496. transform: translate(-50%, -50%);
  497. display: flex;
  498. flex-direction: column;
  499. text {
  500. margin: 0;
  501. font-size: 26rpx;
  502. font-family: Noto Sans S Chinese;
  503. font-weight: 400;
  504. color: #666666;
  505. line-height: 36rpx;
  506. }
  507. image {
  508. width: 186rpx;
  509. height: 12rpx;
  510. }
  511. }
  512. .state {
  513. position: absolute;
  514. left: 0;
  515. font-size: 26rpx;
  516. font-family: Noto Sans S Chinese;
  517. font-weight: 400;
  518. color: #999999;
  519. line-height: 58rpx;
  520. }
  521. }
  522. .emptyView {
  523. margin-top: 120rpx;
  524. }
  525. </style>