Wallet.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. <template>
  2. <view class="titlenav">
  3. <!-- <titlenav :flag="true"></titlenav> -->
  4. <view class="top"><view class="title">财务中心</view></view>
  5. <view class="content">
  6. <view>
  7. <view class="text1">9918.50</view>
  8. <view class="text2">可提现金额(元)</view>
  9. </view>
  10. <view class="btn" @click="Withdrawal">提现</view>
  11. </view>
  12. <view class="time">
  13. <view class="time2" @click="show = true"><input type="text" :readonly="readonly" v-model="startTime" /></view>
  14. <view>
  15. <text class="text1 text2">收入 ¥6832.50</text>
  16. <text class="text1">提现 ¥5200.00</text>
  17. </view>
  18. </view>
  19. <u-picker mode="time" v-model="show" :params="params"></u-picker>
  20. <div class="list">
  21. <van-empty v-if="empty" image="https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/wechat/kong_png_wodeguanzhu.png" description="暂无收益记录哦"></van-empty>
  22. <template>
  23. <div v-for="(item, index) in recordList" :key="index">
  24. <bill-info :Info="item"></bill-info>
  25. <!-- <bill-info billType="pay" :Info="item"></bill-info> -->
  26. </div>
  27. </template>
  28. </div>
  29. </view>
  30. </template>
  31. <script>
  32. import { mapState } from 'vuex';
  33. import BillInfo from '../components/BillInfo.vue';
  34. import Titlenav from '../components/Titlenav.vue';
  35. export default {
  36. components: { Titlenav },
  37. data() {
  38. return {
  39. params: {
  40. year: true,
  41. month: true,
  42. hour: false,
  43. minute: false,
  44. second: false
  45. },
  46. empty: false,
  47. startTime: '2021年9月',
  48. show: false,
  49. recordList: [
  50. {
  51. amount: 0.01,
  52. attach: '17561',
  53. createdAt: '2021-07-27 19:32:00',
  54. del: false,
  55. id: 17562,
  56. remark: '',
  57. settleTime: '2021-07-27 19:32:00',
  58. title: '提现',
  59. type: 'WITHDRAW'
  60. }
  61. ]
  62. };
  63. },
  64. computed: {
  65. ...mapState(['systemInfo'])
  66. },
  67. methods: {
  68. confirm(e) {
  69. console.log(e);
  70. },
  71. Withdrawal() {
  72. uni.showModal({
  73. title: '实名认证',
  74. content: '您的账户还未实名认证,认证后可进行提现',
  75. confirmText: '前往认证',
  76. success: function(res) {
  77. if (res.confirm) {
  78. uni.navigateTo({
  79. url: '/pages/Authentication'
  80. });
  81. } else if (res.cancel) {
  82. console.log('用户点击取消');
  83. }
  84. }
  85. });
  86. }
  87. }
  88. };
  89. </script>
  90. <style lang="scss" scoped>
  91. .titlenav {
  92. background: #214bbe;
  93. .top {
  94. padding-top: 10px;
  95. .title {
  96. font-size: 22px;
  97. font-weight: bold;
  98. color: #ffffff;
  99. line-height: 26px;
  100. margin-left: 20px;
  101. }
  102. }
  103. .content {
  104. display: flex;
  105. align-items: center;
  106. justify-content: space-between;
  107. margin: 33px 60px;
  108. .text1 {
  109. font-size: 36px;
  110. font-family: OSP-DIN, OSP;
  111. font-weight: normal;
  112. color: #ffffff;
  113. line-height: 40px;
  114. }
  115. .text2 {
  116. font-size: 13px;
  117. font-family: PingFangSC-Regular, PingFang SC;
  118. font-weight: 400;
  119. color: #ffffff;
  120. line-height: 18px;
  121. }
  122. .btn {
  123. width: 80px;
  124. height: 36px;
  125. background: #ffffff;
  126. border-radius: 4px;
  127. line-height: 36px;
  128. text-align: center;
  129. font-size: 14px;
  130. font-weight: 500;
  131. color: #214bbe;
  132. }
  133. }
  134. .time {
  135. height: 72px;
  136. background: #f5f7fa;
  137. border-radius: 16px 16px 0px 0px;
  138. padding: 20px;
  139. display: flex;
  140. align-items: center;
  141. justify-content: space-between;
  142. .time2 {
  143. width: 110px;
  144. padding: 5px 0;
  145. background: #ffffff;
  146. border-radius: 4px;
  147. text-align: center;
  148. }
  149. .text1 {
  150. font-size: 12px;
  151. font-weight: 400;
  152. color: #646566;
  153. line-height: 17px;
  154. &.text2 {
  155. margin-right: 16px;
  156. }
  157. }
  158. }
  159. .list {
  160. background: #ffffff;
  161. }
  162. }
  163. </style>