update
This commit is contained in:
@@ -23,16 +23,10 @@ const vo = reactive({
|
||||
total: 0,
|
||||
});
|
||||
const {loading, pagination, initFetchData} = useTableQuery({
|
||||
api: Api.system.getData,
|
||||
api: Api.system.getUserMoneyLog,
|
||||
parameter: sumPo,
|
||||
watchParameter: true,
|
||||
callback: (data) => {
|
||||
vo.page = data.page;
|
||||
vo.total = data.total;
|
||||
if (data.current === 1) {
|
||||
vo.rows.length = 0;
|
||||
}
|
||||
vo.rows = [...vo.rows, ...data.rows];
|
||||
Object.assign(vo, data);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@@ -42,6 +36,7 @@ const {loading, pagination, initFetchData} = useTableQuery({
|
||||
<x-nav></x-nav>
|
||||
|
||||
<x-filter
|
||||
@success="initFetchData"
|
||||
v-model:model="sumPo"
|
||||
v-model:visible="showFilter">
|
||||
<x-filter-item label="账单类型">
|
||||
@@ -81,17 +76,20 @@ const {loading, pagination, initFetchData} = useTableQuery({
|
||||
@scrolltolower="pagination.current++"
|
||||
scroll-y
|
||||
class="h-[calc(100vh-200rpx)]">
|
||||
<view class="p-[20rpx]" v-for="item in vo.rows">
|
||||
<view class="p-[20rpx]" v-for="item in vo.rows" :key="item.id">
|
||||
<view class="p-[20rpx] rounded-[12rpx] bg-[#fff] !flex justify-between items-center">
|
||||
<view class="!flex flex-col gap-[24rpx]">
|
||||
<view class="!flex items-center gap-[16rpx]">
|
||||
<view>提现退回</view>
|
||||
<x-tag type="success">收入</x-tag>
|
||||
<view>{{ item.purpose_name }}</view>
|
||||
<x-tag :type="Number(item.money) > 0 ? 'success' : 'info'">{{ item.purpose_type }}</x-tag>
|
||||
</view>
|
||||
<view class="text-[#86909C] test-24r">{{
|
||||
dayjs(item.createtime).format('YYYY-MM-DD HH:mm:ss')
|
||||
}}
|
||||
</view>
|
||||
<view class="text-[#86909C] test-24r">{{ dayjs().format('YYYY-MM-DD HH:mm:ss') }}</view>
|
||||
</view>
|
||||
<view class="test-36r font-bold HarmonyOS">
|
||||
+95.88
|
||||
{{ item.money }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user