balance.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <template>
  2. <view>
  3. <u-navbar title="我的余额"></u-navbar>
  4. <view class="balance">
  5. <view class="balanceHead">
  6. <view class="balanceCard">
  7. <view class="balanceCard-head">
  8. <font>总金额</font><u-icon name="question-line" custom-prefix="custom-icon" color="#fff" size="32"></u-icon>
  9. </view>
  10. <view class="balanceCard-main">
  11. <h2>120.00</h2>
  12. <view class="balanceCard-btn" @click="rechargeNow">立即充值</view>
  13. </view>
  14. <view class="balanceCard-foot">
  15. <view class="balanceCard-item">充值金额 100.00</view>
  16. <view class="balanceCard-item">赠送金额 100.00</view>
  17. </view>
  18. </view>
  19. </view>
  20. <view class="balanceMain">
  21. <view class="balanceMain-title">
  22. <view class="title">
  23. <u-icon name="todo-fill" custom-prefix="custom-icon" color="#6BC6A7" size="40"></u-icon>
  24. <span>余额明细</span>
  25. </view>
  26. <view class="more" @click="seeAll">
  27. <span>查看全部</span>
  28. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#B3B3B3" size="32"></u-icon>
  29. </view>
  30. </view>
  31. <view class="balanceMain-list">
  32. <view class="balanceMain-item" @click="gotoUrl('pages/user/finance/rechargeDet?id=')">
  33. <view class="title">
  34. <font>充值 - 微信支付</font>
  35. <p>2021-12-31 09:00</p>
  36. </view>
  37. <h4>100.00</h4>
  38. </view>
  39. <view class="balanceMain-item">
  40. <view class="title">
  41. <font>充值 - 微信支付</font>
  42. <p>2021-12-31 09:00</p>
  43. </view>
  44. <h4>100.00</h4>
  45. </view>
  46. <view class="balanceMain-item">
  47. <view class="title">
  48. <font>充值 - 微信支付</font>
  49. <p>2021-12-31 09:00</p>
  50. </view>
  51. <h4>100.00</h4>
  52. </view>
  53. </view>
  54. </view>
  55. </view>
  56. </view>
  57. </template>
  58. <script>
  59. export default {
  60. data() {
  61. return {
  62. }
  63. },
  64. methods: {
  65. rechargeNow() {
  66. uni.navigateTo({
  67. url: '/pages/user/finance/recharge'
  68. })
  69. },
  70. seeAll() {
  71. uni.navigateTo({
  72. url: '/pages/user/finance/rechargeList'
  73. })
  74. }
  75. }
  76. }
  77. </script>
  78. <style lang="scss" scoped>
  79. .balanceHead{
  80. background-color: #fff;
  81. padding: 16px;
  82. .balanceCard{
  83. background-color: #00B962;
  84. border-radius: 12px;
  85. padding: 16px;
  86. .balanceCard-head{
  87. font{
  88. font-size: 18px;
  89. color:#fff;
  90. margin-right: 8px;
  91. }
  92. }
  93. .balanceCard-main{
  94. display: flex;
  95. align-items: center;
  96. justify-content: space-between;
  97. margin-top: 8px;
  98. h2{
  99. font-size: 40px;
  100. color:#fff;
  101. font-weight: normal;
  102. }
  103. .balanceCard-btn{
  104. padding: 8px 20px;
  105. background-color: #fff;
  106. color:#00B962;
  107. border-radius: 18px;
  108. }
  109. }
  110. .balanceCard-foot{
  111. display: flex;
  112. margin-top: 16px;
  113. .balanceCard-item{
  114. flex: 1;
  115. color:#fff;
  116. }
  117. }
  118. }
  119. }
  120. .balanceMain{
  121. background-color: #fff;
  122. margin-top: 12px;
  123. .balanceMain-title{
  124. display: flex;
  125. align-items: center;
  126. justify-content: space-between;
  127. height: 48px;
  128. border-bottom: 1px solid #f7f7f7;
  129. padding: 0 16PX;
  130. .title{
  131. display: flex;
  132. align-items: center;
  133. span{
  134. margin-left: 8px;
  135. font-size: 16px;
  136. }
  137. }
  138. }
  139. .balanceMain-item{
  140. display: flex;
  141. align-items: center;
  142. justify-content: space-between;
  143. padding: 12px 16px;
  144. p{
  145. font-size: 12px;
  146. color:#888;
  147. margin-top: 3px;
  148. }
  149. }
  150. }
  151. </style>