更新金币明细类型

This commit is contained in:
gyq
2025-01-16 09:38:33 +08:00
parent a0f899c3cd
commit 679bc382dd

View File

@@ -5,7 +5,10 @@
<view class="row">类型{{ item.title }}</view>
<view class="row">内容{{ item.content }}</view>
<view class="row">时间{{ item.createTime }}</view>
<view class="btm">+{{ item.money }}</view>
<view class="btm">
<text class="add" v-if="item.type == 1">+{{ item.money }}</text>
<text class="sub" v-if="item.type == 2">-{{ item.money }}</text>
</view>
</view>
</view>
<emprty-card v-if="!listData.list.length && listData.status == 'nomore'" />
@@ -25,6 +28,11 @@ const listData = reactive({
status: 'loading'
});
onReachBottom(() => {
listData.page++;
getList();
});
async function getList() {
try {
const res = await queryUserMoneyDetails({
@@ -83,8 +91,13 @@ page {
.btm {
display: flex;
justify-content: flex-end;
color: rgb(253, 100, 22);
font-weight: bold;
.add {
color: rgb(253, 100, 22);
}
.sub {
color: #5aaf2e;
}
}
}
}