Files
kangyuan-mobile/pages/home/liquidationRecord.vue
T

74 lines
2.0 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"> 发起变现 </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.liquidationAmount) }}
</view>
<view class="status size24 m-t-10">
{{ v.statusDescription }}
</view>
</view>
</view>
</view>
</card_mescroll>
</s-pages>
</template>
<script setup>
import sheep from '@/sheep';
import { ref } from 'vue';
import { onLoad } from '@dcloudio/uni-app';
import card_mescroll from '@/components/card_pages/card_mescroll.vue';
import { fen2yuan } from '@/sheep/hooks/useGoods';
import * as api from '@/sheep/api/increment';
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) => {
const res = await api.walletLiquidationRecordPage({
pageNo: mescroll.num,
pageSize: mescroll.size,
});
if (res.code === 0) {
const 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);
}
};
onLoad(() => {});
</script>
<style scoped lang="scss">
.price {
text-align: right;
}
.status {
text-align: right;
color: #366eee;
}
</style>