Files
xingmeng-uniapp/pages/users/user_withdraw/index.vue
PC-202306242200\Administrator c7cbc11d07 first commit
2026-03-28 23:07:10 +08:00

118 lines
2.8 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<template>
<view class="earnings p30" style="width: 100%">
<z-paging ref="paging" v-model="dataList" @query="queryList">
<view class="mt30 wallet_list" v-for="(item, index) in dataList" :key="index">
<view class="wallet_list_left">
<view>{{ item.type == 1 ? '提现人' : '提现公司' }}{{ item.name }}</view>
<view>银行名称{{ item.bankName }}</view>
<view v-if="item.subbranchName">支行名称{{ item.subbranchName }}</view>
<view>银行卡号{{ item.bankCard }}</view>
<view>提现时间{{ item.createTime }}</view>
<view>处理时间{{ item.completeTime ? item.completeTime : '-' }}</view>
<view>处理结果{{ item.handleMessage || '-' }}</view>
</view>
<view class="wallet_list_right" style="display: flex; flex-direction: column; align-items: flex-end; height: 320rpx">
<view style="margin-bottom: 100rpx">
<view></view>
<u-tag v-if="item.status == 0" size="mini" text="申请中" type="warning" plain plainFill></u-tag>
<u-tag v-if="item.status == 1" size="mini" type="success" text="提现成功" plain plainFill></u-tag>
<u-tag v-if="item.status == -1" size="mini" type="error" text="失败" plain plainFill></u-tag>
</view>
<view>{{ item.amount }}</view>
</view>
</view>
</z-paging>
</view>
</template>
<script>
import { getWithdraw } from '@/api/user.js';
export default {
data() {
return {
dataList: []
};
},
methods: {
queryList(pageNo, pageSize) {
const params = {
page: pageNo,
limit: pageSize
};
getWithdraw(params)
.then((res) => {
console.log(res);
this.$refs.paging.complete(res.data);
})
.catch((err) => {
console.log(err);
this.$refs.paging.complete(false);
});
}
}
};
</script>
<style>
.zp-paging-container-content {
padding: 30rpx !important;
}
</style>
<style scoped lang="scss">
.wallet_pall {
width: 690rpx;
height: 272rpx;
border-radius: 16rpx 16rpx 16rpx 16rpx;
padding: 40rpx;
background: #ffffff;
&_header {
font-weight: bold;
font-size: 26rpx;
color: #002ea4;
}
&_ye {
display: flex;
align-items: center;
justify-content: space-between;
height: 70%;
view:nth-child(1) {
font-weight: bold;
font-size: 68rpx;
color: #002ea4;
}
view:nth-child(2) {
width: 128rpx;
height: 58rpx;
background: rgba(0, 46, 164, 0.07);
border-radius: 32rpx 32rpx 32rpx 32rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 26rpx;
color: #002ea4;
}
}
}
.wallet_list {
width: 690rpx;
background: #ffffff;
border-radius: 8rpx 8rpx 8rpx 8rpx;
padding: 15rpx 30rpx;
@include flex($space: space-between);
&_left {
view {
font-size: 28rpx;
color: #232323;
margin-bottom: 10rpx;
}
}
&_right {
font-weight: bold;
font-size: 28rpx;
color: #ff2727;
}
}
</style>