financialDetails.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. <template>
  2. <view>
  3. <view class="header">
  4. <ujp-navbar title="充电金" title-color="#fff" :border-bottom="false" back-icon-color="#fff">
  5. <view slot="right" style="margin-right: 10px;" @click="openModalBl=true">
  6. <view class="iconfont qr-code">
  7. &#xe60d;
  8. </view>
  9. </view>
  10. </ujp-navbar>
  11. <!-- 金额 -->
  12. <view class="money">
  13. <view class="amount">
  14. <view class="title">
  15. 总金额(元)
  16. </view>
  17. <view class="number">
  18. 2000.88
  19. </view>
  20. </view>
  21. <view class="earnings">
  22. <view class="title">
  23. 累计收益(元)
  24. </view>
  25. <view class="number">
  26. 160.88
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. <!-- 明细 -->
  32. <view class="detail">
  33. <view class="title">
  34. 展示近3个月明细
  35. <view class="select" @click="flag=!flag">
  36. 全部<u-icon name="arrow-down" size="24"></u-icon>
  37. <view class="option" v-if="flag==true" >
  38. <view class="option-item">选项1</view>
  39. <view class="option-item">选项2</view>
  40. <view class="option-item">选项3</view>
  41. </view>
  42. </view>
  43. </view>
  44. <view class="item">
  45. <view class="left">
  46. <view class="text">
  47. 每日收益
  48. </view>
  49. <view class="date">
  50. 2023-07-24 00:00:38
  51. </view>
  52. </view>
  53. <view class="right">
  54. <view class="add">
  55. +0.88
  56. </view>
  57. <view class="balance">
  58. 2000.00
  59. </view>
  60. </view>
  61. </view>
  62. <view class="item">
  63. <view class="left">
  64. <view class="text">
  65. 单次转入
  66. </view>
  67. <view class="date">
  68. 2023-07-24 00:00:38
  69. </view>
  70. </view>
  71. <view class="right">
  72. <view class="add">
  73. +2888
  74. </view>
  75. <view class="balance">
  76. 2000.00
  77. </view>
  78. </view>
  79. </view>
  80. </view>
  81. <u-divider color="#B0B4B8" bg-color="#F2F4F4" margin-top="40">已经到底了</u-divider>
  82. </view>
  83. </template>
  84. <script>
  85. export default {
  86. data() {
  87. return {
  88. flag:false,
  89. }
  90. },
  91. methods: {
  92. }
  93. }
  94. </script>
  95. <style lang="scss" scoped>
  96. .header{
  97. height: 320rpx;
  98. margin-bottom: 80rpx;
  99. background: linear-gradient(180deg, rgba(0,185,98,1) 56%,rgba(246,246,246,1) 100%);
  100. ::v-deep.u-navbar{
  101. z-index: 1 !important;
  102. background: none !important;
  103. }
  104. .qr-code {
  105. color: #fff;
  106. }
  107. // 金额
  108. .money{
  109. border-radius: 12px;
  110. background-color: rgba(255, 255, 255, 1);
  111. margin: 24rpx 32rpx;
  112. padding: 56rpx 40rpx;
  113. display: flex;
  114. justify-content: space-between;
  115. .title{
  116. color: rgba(51, 51, 51, 1);
  117. }
  118. .number{
  119. color: rgba(51, 51, 51, 1);
  120. font-size: 64rpx;
  121. margin-top: 16rpx;
  122. }
  123. .amount{
  124. .number{
  125. color: #FF3D00;
  126. }
  127. }
  128. }
  129. }
  130. // 明细
  131. .detail{
  132. background-color: rgba(255, 255, 255, 1);
  133. border-radius: 12px;
  134. margin: 0 32rpx;
  135. padding: 0 32rpx;
  136. .title{
  137. display: flex;
  138. align-items: center;
  139. padding: 36rpx 0;
  140. border-bottom: 1px solid #F0F0F2;
  141. .select{
  142. margin-left: auto;
  143. width: 144rpx;
  144. height: 56rpx;
  145. line-height: 56rpx;
  146. border-radius: 4px;
  147. background-color: rgba(255, 255, 255, 1);
  148. color: rgba(0, 185, 98, 1);
  149. text-align: center;
  150. border: 1px solid rgba(0, 185, 98, 1);
  151. position: relative;
  152. ::v-deep.u-icon{
  153. margin-left: 10rpx;
  154. }
  155. }
  156. .option{
  157. background-color: #fff;
  158. z-index: 999;
  159. position: absolute;
  160. top: 28px;
  161. left: 0;
  162. right: 0;
  163. color: #333333;
  164. box-shadow: 0 0px 4px 2px #999999;
  165. }
  166. }
  167. .item{
  168. display: flex;
  169. justify-content: space-between;
  170. align-items: center;
  171. padding: 28rpx 0;
  172. border-bottom: 1px solid #F0F0F2;
  173. .left{
  174. .text{
  175. color: rgba(51, 51, 51, 1);
  176. font-size: 32rpx;
  177. }
  178. .date{
  179. color: rgba(119, 119, 119, 1);
  180. font-size: 24rpx;
  181. }
  182. }
  183. .right{
  184. text-align: right;
  185. .add{
  186. color: rgba(51, 51, 51, 1);
  187. font-size: 40rpx;
  188. }
  189. .balance{
  190. color: rgba(119, 119, 119, 1);
  191. font-size: 24rpx;
  192. }
  193. }
  194. }
  195. }
  196. </style>