投注记录增加分页
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-07-19 18:10:42 +08:00
parent 57728506da
commit cab39ebbe0

View File

@@ -125,8 +125,8 @@ const getList = async () => {
PageNum: page.value.page,
PageSize: page.value.size,
});
// console.log(res);
const arr = res.data.map((item) => ({
const arr =
res.data.map((item) => ({
type: 1,
qs: `${item.Periods}`,
hm: [item.Name],
@@ -135,8 +135,8 @@ const getList = async () => {
draw_num: item.DrawNum,
state: item.State,
periods_num: item.PeriodsNum,
}));
data.value.push(arr);
})) || [];
data.value.push(...arr);
page.value.total = res.data.total || 0;
Taro.hideLoading();
};