Files
kangyuan-mobile/pages/home/pay/withdrawRecord.vue
T
2026-05-26 15:52:30 +08:00

80 lines
2.2 KiB
Vue

<template>
<s-pages title="提现记录">
<card_mescroll ref="cardPages" @upCallback="getList" :height="height">
<view class="bg24 radius12 m-x-42 p-y-28 p-x-40" v-if="detailList.length">
<view
class="flex-between border-bottom"
style="height: 150rpx"
v-for="(v, i) in detailList"
:key="i"
>
<view class="c0">
<view class="size28"> {{ v.typeName }}-提现到银行卡 </view>
<view class="c_999 size24 m-t-10">
{{ sheep.$helper.timeFormat(v.createTime, 'yyyy-mm-dd hh:MM:ss') }}
</view>
</view>
<view class="c0">
<view class="size28 price">
{{ fen2yuan(v.price) }}
</view>
<view class="status size24 m-t-10">
{{ v.statusName }}
</view>
</view>
</view>
</view>
</card_mescroll>
</s-pages>
</template>
<script setup>
import sheep from '@/sheep';
import { ref } from 'vue';
import * as api from '@/sheep/api/home/pay';
import { onLoad } from '@dcloudio/uni-app';
import card_mescroll from '@/components/card_pages/card_mescroll.vue';
import { fen2yuan } from '@/sheep/hooks/useGoods';
let detailList = ref([]);
let height = ref('100%');
let sysInfo = uni.getSystemInfoSync();
height.value = sysInfo.windowHeight - sysInfo.statusBarHeight - uni.upx2px(88) + 'px';
let cardPages = ref(null);
const getList = async (mescroll) => {
let res = await api.withdrawRecord({
pageNo: mescroll.num,
pageSize: mescroll.size,
});
if (res.code === 0) {
let data = res.data.list || [];
if (mescroll.num == 1) detailList.value = [];
detailList.value = detailList.value.concat(data);
cardPages.value.getState(true, data.length);
} else {
cardPages.value.getState(false);
}
// api.withdrawRecord().then((e) => {
// if (e.code === 0) {
// detailList.value = e.data.list;
// console.log(e.data.list);
// list.value = e.data.list;
// }
// });
};
</script>
<style scoped lang="scss">
.price {
text-align: right;
}
.status {
text-align: right;
color: #366eee;
}
.nomore {
text-align: center;
}
</style>