更新金币明细类型
This commit is contained in:
@@ -5,7 +5,10 @@
|
|||||||
<view class="row">类型:{{ item.title }}</view>
|
<view class="row">类型:{{ item.title }}</view>
|
||||||
<view class="row">内容:{{ item.content }}</view>
|
<view class="row">内容:{{ item.content }}</view>
|
||||||
<view class="row">时间:{{ item.createTime }}</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>
|
||||||
</view>
|
</view>
|
||||||
<emprty-card v-if="!listData.list.length && listData.status == 'nomore'" />
|
<emprty-card v-if="!listData.list.length && listData.status == 'nomore'" />
|
||||||
@@ -25,6 +28,11 @@ const listData = reactive({
|
|||||||
status: 'loading'
|
status: 'loading'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
onReachBottom(() => {
|
||||||
|
listData.page++;
|
||||||
|
getList();
|
||||||
|
});
|
||||||
|
|
||||||
async function getList() {
|
async function getList() {
|
||||||
try {
|
try {
|
||||||
const res = await queryUserMoneyDetails({
|
const res = await queryUserMoneyDetails({
|
||||||
@@ -83,8 +91,13 @@ page {
|
|||||||
.btm {
|
.btm {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
color: rgb(253, 100, 22);
|
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
.add {
|
||||||
|
color: rgb(253, 100, 22);
|
||||||
|
}
|
||||||
|
.sub {
|
||||||
|
color: #5aaf2e;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user