update Page obj

This commit is contained in:
Timi
2025-12-08 14:56:29 +08:00
parent 2685ff4524
commit 1002d463e0
3 changed files with 59 additions and 30 deletions

View File

@ -1,17 +1,13 @@
// pages/main/portfolio/index.ts
import config from "../../../config/index";
import { QueryPage } from "../../../types/Model";
import Events from "../../../utils/Events";
import Time from "../../../utils/Time";
import { Journal, JournalItemType } from "../journal/index";
interface IPortfolioData {
page: {
index: number;
size: number;
type: string;
orderMap?: object;
}
page: QueryPage;
list: Journal[];
isFetching: boolean;
isFinished: boolean;
@ -23,9 +19,8 @@ Page({
page: {
index: 0,
size: 8,
type: "PORTFOLIO",
orderMap: {
createdAt: "DESC"
likeMap: {
type: "PORTFOLIO"
}
},
list: [],
@ -39,9 +34,8 @@ Page({
page: {
index: 0,
size: 8,
type: "PORTFOLIO",
orderMap: {
createdAt: "DESC"
likeMap: {
type: "PORTFOLIO"
}
},
list: [],
@ -111,9 +105,8 @@ Page({
page: {
index: this.data.page.index + 1,
size: 8,
type: "PORTFOLIO",
orderMap: {
createdAt: "DESC"
likeMap: {
type: "PORTFOLIO"
}
},
list: this.data.list.concat(result),