Commit 6d520fed by 胡悦

Merge branch 'huy_v2.8.1' of http://192.168.3.233:8090/h5/vite-integral into huy_v2.8.1

2 parents 515588c8 4f6a1836
...@@ -229,8 +229,10 @@ const onLoad = async () => { ...@@ -229,8 +229,10 @@ const onLoad = async () => {
// 如果列表长度小于总长度下拉刷新 // 如果列表长度小于总长度下拉刷新
if (pageData.pageNum <= total.value) { if (pageData.pageNum <= total.value) {
const res = await req("scrm.api.renewal.h5.integral.record.list", params); const res = await req("scrm.api.renewal.h5.integral.record.list", params);
list.push(...res.list); if (res) {
total.value = res.pages; list.push(...res.list);
total.value = res.pages;
}
pageData.pageNum++; pageData.pageNum++;
if (pageData.pageNum == total.value) { if (pageData.pageNum == total.value) {
finished.value = true; finished.value = true;
......
...@@ -91,9 +91,6 @@ const getHistoryList = async () => { ...@@ -91,9 +91,6 @@ const getHistoryList = async () => {
"scrm.api.renewal.h5.integral.convert.record.list", "scrm.api.renewal.h5.integral.convert.record.list",
params params
); );
// const { code, data, message } = res;
// if (code == 0) {
console.log(res, "000");
if (res) { if (res) {
res.list.map((item) => { res.list.map((item) => {
item.bankNo = item.bankNo.substring(item.bankNo.length - 4); item.bankNo = item.bankNo.substring(item.bankNo.length - 4);
...@@ -102,13 +99,6 @@ const getHistoryList = async () => { ...@@ -102,13 +99,6 @@ const getHistoryList = async () => {
useList.push(...res.list); useList.push(...res.list);
total.value = res.pages; total.value = res.pages;
} }
// useList.push(...data.list);
// total.value = data.pages;
// loading.value = false;
// } else {
// Toast(message);
// router.replace("/login");
// }
loading.value = false; loading.value = false;
pageData.pageNum++; pageData.pageNum++;
if (pageData.pageNum == total.value) { if (pageData.pageNum == total.value) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!