update Page obj
This commit is contained in:
@ -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),
|
||||
|
||||
Reference in New Issue
Block a user