myMoney.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <template>
  2. <view class="main">
  3. <view class="head_bg">
  4. <u-avatar size="130" :src="vuex_user.avatar" mode="circle">
  5. </u-avatar>
  6. <view class="userName">
  7. {{vuex_user.name||'用户名'+vuex_user.phone}}
  8. </view>
  9. </view>
  10. <view class="pr" style="z-index:2;bottom: 120rpx;">
  11. <view class="plr15">
  12. <view class="bdr4 bg-white u-padding-bottom-20"
  13. style="margin-top: 38rpx;border-radius: 16rpx;box-shadow: 6rpx 6rpx 10rpx rgba(122, 122, 122, 0.2);">
  14. <view class="m-dpflex flex-direction align-center justify-center header-box"
  15. style="height: 200rpx;">
  16. <view @click="moneyRecord" class="text-right u-margin-right-50" style="width: 100%;">
  17. 提现记录
  18. </view>
  19. <view class="text-bold text-black" style="font-size: 68rpx;">
  20. {{obj.balance/100}}
  21. </view>
  22. <view class="" style="font-size: 28rpx;color: #666;">
  23. 可提现金额(元)
  24. </view>
  25. </view>
  26. <view class="pr m-xcenter plr20 header-box"
  27. style="padding: 40rpx 40rpx;background-color: #fff;border-radius: 16rpx;">
  28. <view class="m-flex tl f14 m-ycenter dpb">
  29. <view class="m-gray-big f20 fb pr10">{{obj.withdraw/100}}</view>
  30. <view class="m-gray-letter mt5 f12">已提现金额(元)</view>
  31. </view>
  32. <view class="m-flex tl f14 m-ycenter">
  33. <view class="m-gray-big f20 fb">{{obj.uncomplete_commission/100}}</view>
  34. <view class="m-gray-letter mt5 f12">未完成佣金(元)</view>
  35. </view>
  36. </view>
  37. <u-button shape="circle" @click="withdrawal" hover-class="none" :custom-style="customStyle"
  38. throttle-time="1000">马上提现
  39. </u-button>
  40. </view>
  41. </view>
  42. </view>
  43. <view class="padding-lr u-margin-top-20 flex justify-between align-center"
  44. style="position: relative;bottom: 120rpx;">
  45. <view class="commonStyle bg-white" style="width: 298rpx;">
  46. <view class="">
  47. 订单
  48. </view>
  49. <view class="flex justify-between align-center u-margin-top-15">
  50. <view class="flex u-flex-col justify-center align-center u-font-24">
  51. <text>{{obj.order_count}}</text>
  52. <text>总订单数</text>
  53. </view>
  54. <view class="flex u-flex-col justify-center align-center u-font-24">
  55. <text>{{obj.complete_order}}</text>
  56. <text>已完成订单数</text>
  57. </view>
  58. </view>
  59. </view>
  60. <view class="commonStyle bg-white flex u-flex-col justify-center" style="width: 298rpx;">
  61. <u-cell-item style="padding: 0;" hover-class="none" :border-bottom="false" title="收入明细"
  62. @click="accountInfo">
  63. </u-cell-item>
  64. <view class="u-margin-top-15 flex align-center">
  65. <u-icon name="/static/md-monetization_on@3x.png" size="40"></u-icon>
  66. <text class="u-font-24">总收入:{{(obj.balance+obj.withdraw)/100}}元</text>
  67. </view>
  68. </view>
  69. </view>
  70. <view class="u-margin-top-35" style="position: relative;bottom: 120rpx;">
  71. <u-button shape="circle" @click="bank_card" hover-class="none"
  72. :custom-style="{...customStyle,width:'500rpx',height:'66rpx'}" throttle-time="1000">银行卡绑定</u-button>
  73. </view>
  74. </view>
  75. </template>
  76. <script>
  77. export default {
  78. data() {
  79. return {
  80. customStyle: {
  81. width: '214rpx',
  82. height: '52rpx',
  83. color: '#fff',
  84. background: '#FBC600',
  85. border: 'none'
  86. },
  87. obj: {}
  88. }
  89. },
  90. onShow() {
  91. this.getInfoMoney()
  92. },
  93. methods: {
  94. async getInfoMoney() {
  95. let res = await this.$u.post("manager/wallet")
  96. if (res.code == 200) {
  97. this.obj = res.data
  98. }
  99. },
  100. bank_card() {
  101. uni.navigateTo({
  102. url: "./bank_card"
  103. })
  104. },
  105. accountInfo() {
  106. uni.navigateTo({
  107. url: "./accountInfo"
  108. })
  109. },
  110. withdrawal() {
  111. uni.navigateTo({
  112. url: "./withdrawal"
  113. })
  114. },
  115. moneyRecord(){
  116. uni.navigateTo({
  117. url:"./moneyRecord"
  118. })
  119. }
  120. }
  121. }
  122. </script>
  123. <style>
  124. @import url("./mine.css");
  125. .main {
  126. min-height: 100vh;
  127. }
  128. .head_bg {
  129. background-color: #FBC600;
  130. height: 350rpx;
  131. width: 100%;
  132. display: flex;
  133. justify-content: center;
  134. align-items: center;
  135. flex-direction: column;
  136. /* border-radius: 0 0 50rpx 50rpx; */
  137. }
  138. .userName {
  139. font-size: 36rpx;
  140. color: #fff;
  141. margin-top: 10rpx;
  142. margin-bottom: 30rpx;
  143. }
  144. .commonStyle {
  145. padding: 20rpx;
  146. border-radius: 16rpx;
  147. height: 160rpx;
  148. box-shadow: 6rpx 6rpx 10rpx rgba(122, 122, 122, 0.2);
  149. }
  150. </style>