Browse Source

用户提现历史

master
yangrz 2 years ago
parent
commit
e5099e0d86
  1. 2
      agentApp/common/api.js
  2. 107
      agentApp/pages/withdrawal-history/withdrawal-history.vue

2
agentApp/common/api.js

@ -55,3 +55,5 @@ export const userOrderList = (params) => http.post(baseUrl + '/api/user/orderLis
export const userFillAlipayAccount = (params) => http.post(baseUrl + '/api/user/fillAlipayAccount', params, userConfig()) export const userFillAlipayAccount = (params) => http.post(baseUrl + '/api/user/fillAlipayAccount', params, userConfig())
export const userWithdraw = (params) => http.post(baseUrl + '/api/user/withdraw', params, userConfig()) export const userWithdraw = (params) => http.post(baseUrl + '/api/user/withdraw', params, userConfig())
export const userWithdrawList = (params) => http.post(baseUrl + '/api/user/withdrawList', params, userConfig())

107
agentApp/pages/withdrawal-history/withdrawal-history.vue

@ -2,86 +2,73 @@
<view class="app-container"> <view class="app-container">
<u-gap height="10rpx" bgColor="#F7F7F7"></u-gap> <u-gap height="10rpx" bgColor="#F7F7F7"></u-gap>
<view class="his-content"> <view class="his-content">
<view class="his-item u-border-bottom">
<view class="his-item u-border-bottom" v-for="(item,index) in withdrawList" :key="item.id">
<view class="hit-left"> <view class="hit-left">
<view class="his-name"> <view class="his-name">
流水号: 139812983213
</view>
<view class="his-state">
提现成功
</view>
<view class="his-time">
2023-11-28 15:45:39
</view>
</view>
<view class="hit-right">
-458.00
流水号: {{item.out_biz_no}}
</view> </view>
<view class="his-state" v-if="item.status==0">
审核中
</view> </view>
<view class="his-item u-border-bottom">
<view class="hit-left">
<view class="his-name">
流水号: 139812983213
</view>
<view class="his-state">
<view class="his-state" v-if="item.status==1" style="color:green">
提现成功 提现成功
</view> </view>
<view class="his-time">
2023-11-28 15:45:39
</view>
</view>
<view class="hit-right">
-458.00
</view>
</view>
<view class="his-item u-border-bottom">
<view class="hit-left">
<view class="his-name">
流水号: 139812983213
</view>
<view class="his-state">
提现成功
<view class="his-state" v-if="item.status==2" style="color:red">
审核不通过{{item.review_remark}}
</view> </view>
<view class="his-time"> <view class="his-time">
2023-11-28 15:45:39
</view>
</view>
<view class="hit-right">
-458.00
</view>
申请时间{{item.created_at}}
</view> </view>
<view class="his-item u-border-bottom">
<view class="hit-left">
<view class="his-name">
流水号: 139812983213
<view class="his-time">
审核时间{{item.reviewed_at}}
</view> </view>
<view class="his-state">
提现成功
<view class="his-time">
提现金额{{item.amount}}
</view> </view>
<view class="his-time"> <view class="his-time">
2023-11-28 15:45:39
扣手续费{{item.fee}}
</view> </view>
<view class="his-time">
实际到账{{item.receive_amount}}
</view> </view>
<view class="hit-right">
-458.00
</view> </view>
<!-- <view class="hit-right">
<view class="amount">提现金额{{item.amount}}</view>
<view class="fee">手续费{{item.fee}}</view>
<view class="receive-amount">实到账{{item.receive_amount}}</view>
</view> -->
</view> </view>
</view> </view>
</view> </view>
</template> </template>
<script> <script>
export default {
import {
userWithdrawList
} from '../../common/api.js'
export default {
data() { data() {
return { return {
withdrawList: [],
}; };
},
onLoad() {
this.getWithdrawList()
},
methods: {
getWithdrawList() {
userWithdrawList({
page: 1,
page_size: 15,
}).then(data => this.withdrawList = data.list)
}
}
} }
}
</script> </script>
<style lang="scss"> <style lang="scss">
.his-content {
.his-content {
padding: 0 30rpx; padding: 0 30rpx;
.his-item { .his-item {
@ -112,11 +99,21 @@ export default {
} }
.hit-right { .hit-right {
height: 130rpx;
line-height: 130rpx;
font-size: 14px; font-size: 14px;
color: #454545; color: #454545;
font-weight: bold; font-weight: bold;
.amount {
font-size: 14px;
}
.fee {
font-size: 14px;
}
.receive_amount {
font-size: 14px;
}
} }
} }
@ -124,5 +121,5 @@ export default {
.u-border-top { .u-border-top {
border-color: #eee !important; border-color: #eee !important;
} }
}
}
</style> </style>
Loading…
Cancel
Save