platformRevenueStatistics.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <template>
  2. <view>
  3. <u-navbar title="平台收入统计" title-color="#101010"></u-navbar>
  4. <!-- 标签 -->
  5. <view class="tabs">
  6. <u-picker v-model="tabShow1" mode="selector" :default-selector="[0]" :range="selector"></u-picker>
  7. <u-picker v-model="tabShow2" mode="time"></u-picker>
  8. <view class="tabsItem" @click="tabShow1=!tabShow1" >荆鹏软件园 <u-icon
  9. name="arrow-up" v-if="tabShow1" ></u-icon><u-icon v-else name="arrow-down"></u-icon></view>
  10. <view class="tabsItem" @click="tabShow2=!tabShow2" >2024-06 <u-icon
  11. name="arrow-up" v-if="tabShow2"> 2024-06</u-icon><u-icon v-else name="arrow-down"></u-icon></view>
  12. </view>
  13. <!-- 统计 -->
  14. <view class="statistics">
  15. <view class="statistics-total">
  16. <view class="total-title">
  17. 6月预计收入
  18. </view>
  19. <view class="total-number">
  20. 324.75元
  21. </view>
  22. </view>
  23. <view class="statistics-group">
  24. <view class="statistics-item" v-for="item in 3" >
  25. <view class="content">
  26. <!-- 收入 -->
  27. <view class="income">
  28. <view class="income-title">
  29. 线损电费收入
  30. </view>
  31. <view class="income-number">
  32. 108.25元
  33. </view>
  34. </view>
  35. <!-- 电量 -->
  36. <view class="electric-quantity">
  37. <view class="electric-quantity-title">
  38. 线损电量
  39. </view>
  40. <view class="electric-quantity-number">
  41. 125.33度
  42. </view>
  43. </view>
  44. </view>
  45. <view class="icon">
  46. <u-icon name="arrow-right" color="#acacac" size="24" ></u-icon>
  47. </view>
  48. </view>
  49. </view>
  50. </view>
  51. <!-- 图表 -->
  52. <view class="chart">
  53. <img src="@/assets/img/incomeChart1@3x.png" alt="" />
  54. </view>
  55. </view>
  56. </template>
  57. <script>
  58. export default {
  59. data() {
  60. return {
  61. tabShow1:false,
  62. tabShow2:false,
  63. selector: [1, 2, 3],
  64. }
  65. },
  66. methods: {
  67. }
  68. }
  69. </script>
  70. <style>
  71. page{
  72. padding-bottom: 100px;
  73. background-color: #fff;
  74. }
  75. </style>
  76. <style lang="scss" scoped>
  77. // 标签
  78. .tabs {
  79. height: 96rpx;
  80. line-height: 96rpx;
  81. background-color: #fff;
  82. border-top: 1px solid rgba(241, 241, 241, 1);
  83. display: flex;
  84. justify-content: space-around;
  85. }
  86. // 统计
  87. .statistics{
  88. .statistics-total{
  89. display: flex;
  90. align-items: center;
  91. justify-content: space-between;
  92. padding: 36rpx 32rpx;
  93. background-color: rgba(22,119,255,1);
  94. color: rgba(255,255,255,1);
  95. font-size:40rpx;
  96. font-weight: bold;
  97. }
  98. .statistics-group{
  99. .statistics-item{
  100. padding: 24rpx 32rpx;
  101. display: flex;
  102. align-items: center;
  103. justify-content: space-between;
  104. border-bottom: 1px solid rgba(245,245,245,1);
  105. .content{
  106. flex: 0.99;
  107. // 收入
  108. .income{
  109. display: flex;
  110. align-items: center;
  111. justify-content: space-between;
  112. font-size: 32rpx;
  113. font-weight: bold;
  114. .income-title{
  115. color: rgba(51,51,51,1);
  116. }
  117. .income-number{
  118. color: rgba(22,119,255,1);
  119. }
  120. }
  121. // 电量
  122. .electric-quantity{
  123. display: flex;
  124. align-items: center;
  125. justify-content: space-between;
  126. font-size: 24rpx;
  127. color: rgba(119,119,119,1);
  128. }
  129. }
  130. }
  131. }
  132. }
  133. // 图表
  134. .chart{
  135. margin-top: 40rpx;
  136. padding: 0 15rpx;
  137. img{
  138. width: 100%;
  139. height: 600rpx;
  140. }
  141. }
  142. </style>