rechargeRecord.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <template>
  2. <view>
  3. <u-navbar title="充值记录" title-color="#101010" ></u-navbar>
  4. <!-- 折线图 -->
  5. <view class="chart-box">
  6. <view class="title">
  7. 1月电费共支出
  8. </view>
  9. <view class="sum">
  10. 1000.00<text class="unit">元</text>
  11. </view>
  12. <view class="chart">
  13. <image class="img" src="../../assets/img/jVzkNKE@1x.png" mode=""></image>
  14. </view>
  15. </view>
  16. <!-- 标签 -->
  17. <view class="tabs">
  18. <view class="tabs-item">
  19. 全部类型<u-icon size="24" name="arrow-down" color="#B6BBB8"></u-icon>
  20. </view>
  21. <view class="tabs-item">
  22. 全部时间<u-icon size="24" name="arrow-down" color="#B6BBB8"></u-icon>
  23. </view>
  24. </view>
  25. <!-- 记录 -->
  26. <view class="records" v-for="item in 2">
  27. <view class="time">
  28. 01月 支出 1000.00元
  29. </view>
  30. <view class="details">
  31. <view class="details-title">
  32. <view class="name">
  33. 电费充值-联通公司-荆鹏软件园
  34. </view>
  35. <view class="record-time">
  36. 01-07 10:00 420667788991100
  37. </view>
  38. </view>
  39. <view class="sum">
  40. 1000.00
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. </template>
  46. <script>
  47. export default {
  48. data() {
  49. return {
  50. }
  51. },
  52. methods: {
  53. }
  54. }
  55. </script>
  56. <style lang="scss" scoped>
  57. // 折线图
  58. .chart-box{
  59. padding: 24rpx 32rpx;
  60. background: linear-gradient(180deg, rgba(203,234,255,1) 0%,rgba(255,255,255,1) 100%);
  61. .title{
  62. color: rgb(16,16,16);
  63. }
  64. .sum{
  65. color: rgb(51,51,51);
  66. font-size: 64rpx;
  67. margin-top: 16rpx;
  68. .unit{
  69. color: rgb(16,16,16);
  70. font-size: 28rpx;
  71. margin-left: 8rpx;
  72. }
  73. }
  74. .chart{
  75. width: 100%;
  76. height: 240rpx;
  77. margin-top: 8rpx;
  78. .img{
  79. width: 100%;
  80. height: 100%;
  81. }
  82. }
  83. }
  84. // 标签
  85. .tabs{
  86. display: flex;
  87. justify-content: space-between;
  88. height: 96rpx;
  89. line-height: 96rpx;
  90. background-color: #fff;
  91. border-top: 1px solid rgba(241,241,241,1);
  92. .tabs-item{
  93. width: 50%;
  94. text-align: center;
  95. }
  96. }
  97. // 记录
  98. .records{
  99. .time{
  100. padding: 24rpx 32rpx;
  101. color: rgba(119,119,119,1);
  102. font-size: 32rpx;
  103. }
  104. .details{
  105. background-color: #fff;
  106. padding: 32rpx;
  107. display: flex;
  108. justify-content: space-between;
  109. align-items: center;
  110. .details-title{
  111. .title{
  112. color: rgba(51,51,51,1);
  113. font-size: 32rpx;
  114. }
  115. .record-time{
  116. color: rgb(153,153,153);
  117. font-size: 24rpx;
  118. margin-top: 8rpx;
  119. }
  120. }
  121. .sum{
  122. color: rgb(16,16,16);
  123. font-size: 40rpx;
  124. }
  125. }
  126. }
  127. </style>