fix QueryPage equalsExample arg

This commit is contained in:
Timi
2025-12-08 18:48:54 +08:00
parent 6755c483c7
commit 3524de0cb6
3 changed files with 14 additions and 12 deletions

View File

@ -68,7 +68,7 @@ Page({
index: 0, index: 0,
size: 8, size: 8,
type: JournalPageType.NORMAL, type: JournalPageType.NORMAL,
equealsExample: { equalsExample: {
type: "NORMAL" type: "NORMAL"
} }
}, },
@ -178,7 +178,7 @@ Page({
index: this.data.page.index + 1, index: this.data.page.index + 1,
size: 8, size: 8,
type: JournalPageType.NORMAL, type: JournalPageType.NORMAL,
equealsExample: { equalsExample: {
type: "NORMAL" type: "NORMAL"
} }
}, },
@ -229,11 +229,9 @@ Page({
"url": "/pages/main/journal-creater/index?from=journal" "url": "/pages/main/journal-creater/index?from=journal"
}) })
}, },
toDetail() { toSearch() {
wx.showToast({ wx.navigateTo({
title: "此功能暂不可用", url: "/pages/main/journal-search/index"
icon: "none",
duration: 2000
}) })
} }
}); });

View File

@ -1,13 +1,14 @@
// pages/main/portfolio/index.ts // pages/main/portfolio/index.ts
import config from "../../../config/index"; import config from "../../../config/index";
import { JournalPage, JournalPageType } from "../../../types/Journal";
import { QueryPage } from "../../../types/Model"; import { QueryPage } from "../../../types/Model";
import Events from "../../../utils/Events"; import Events from "../../../utils/Events";
import Time from "../../../utils/Time"; import Time from "../../../utils/Time";
import { Journal, JournalItemType } from "../journal/index"; import { Journal, JournalItemType } from "../journal/index";
interface IPortfolioData { interface IPortfolioData {
page: QueryPage; page: JournalPage;
list: Journal[]; list: Journal[];
isFetching: boolean; isFetching: boolean;
isFinished: boolean; isFinished: boolean;
@ -19,7 +20,8 @@ Page({
page: { page: {
index: 0, index: 0,
size: 8, size: 8,
likeMap: { type: JournalPageType.NORMAL,
equalsExample: {
type: "PORTFOLIO" type: "PORTFOLIO"
} }
}, },
@ -34,7 +36,8 @@ Page({
page: { page: {
index: 0, index: 0,
size: 8, size: 8,
likeMap: { type: JournalPageType.NORMAL,
equalsExample: {
type: "PORTFOLIO" type: "PORTFOLIO"
} }
}, },
@ -105,7 +108,8 @@ Page({
page: { page: {
index: this.data.page.index + 1, index: this.data.page.index + 1,
size: 8, size: 8,
likeMap: { type: JournalPageType.NORMAL,
equalsExample: {
type: "PORTFOLIO" type: "PORTFOLIO"
} }
}, },

View File

@ -17,7 +17,7 @@ export type QueryPage = {
index: number; index: number;
size: number; size: number;
orderMap?: { [key: string]: OrderType }; orderMap?: { [key: string]: OrderType };
equealsExample?: { [key: string]: string | undefined | null }; equalsExample?: { [key: string]: string | undefined | null };
likeExample?: { [key: string]: string | undefined | null }; likeExample?: { [key: string]: string | undefined | null };
} }