From e1944cbaeb8cd26168ceda80c2873e4f5fbba7b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=88=90?= Date: Thu, 11 Sep 2025 09:32:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=A8=E6=88=B7=E5=AE=9A?= =?UTF-8?q?=E4=BD=8D=E5=9C=B0=E5=9D=80=E7=9B=B8=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/FilterPopup/index.tsx | 1 + src/config/env.ts | 4 ++-- src/mod_user/pages/edit/index.config.ts | 6 +++++- src/pages/login/index/index.config.ts | 3 ++- src/store/listStore.ts | 4 +++- 5 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/components/FilterPopup/index.tsx b/src/components/FilterPopup/index.tsx index 9aedd48..6986f6e 100644 --- a/src/components/FilterPopup/index.tsx +++ b/src/components/FilterPopup/index.tsx @@ -40,6 +40,7 @@ const FilterPopup = (props: FilterPopupProps) => { const handleDateChange = (dates: Date[]) => { const dateArray = dates.map(date => dayjs(date).format('YYYY-MM-DD')) + onChange({ 'dateRange': dateArray, }) diff --git a/src/config/env.ts b/src/config/env.ts index 150c81c..c9592f4 100644 --- a/src/config/env.ts +++ b/src/config/env.ts @@ -17,8 +17,8 @@ const envConfigs: Record = { // 开发环境 development: { name: '开发环境', - //apiBaseURL: 'https://sit.light120.com', - apiBaseURL: 'http://localhost:9098', + // apiBaseURL: 'https://sit.light120.com', + apiBaseURL: 'http://localhost:9098', timeout: 15000, enableLog: true, enableMock: true diff --git a/src/mod_user/pages/edit/index.config.ts b/src/mod_user/pages/edit/index.config.ts index 2791f6d..a951369 100644 --- a/src/mod_user/pages/edit/index.config.ts +++ b/src/mod_user/pages/edit/index.config.ts @@ -1,4 +1,8 @@ export default definePageConfig({ navigationBarTitleText: '编辑资料', - navigationStyle: 'custom' + navigationBarBackgroundColor: '#ffffff', + navigationBarTextStyle: 'black', + backgroundColor: '#f5f5f5', + enablePullDownRefresh: false, + disableScroll: false, }) \ No newline at end of file diff --git a/src/pages/login/index/index.config.ts b/src/pages/login/index/index.config.ts index e52e376..cfb52c4 100644 --- a/src/pages/login/index/index.config.ts +++ b/src/pages/login/index/index.config.ts @@ -4,5 +4,6 @@ export default definePageConfig({ navigationBarTextStyle: 'black', backgroundColor: '#f5f5f5', enablePullDownRefresh: false, - disableScroll: false + disableScroll: false, + navigationStyle: 'custom', }) \ No newline at end of file diff --git a/src/store/listStore.ts b/src/store/listStore.ts index d554f9f..7de11ab 100644 --- a/src/store/listStore.ts +++ b/src/store/listStore.ts @@ -40,11 +40,12 @@ const defaultPageOption = { }; // 创建 store +const now = new Date(); export const useListStore = create()((set, get) => ({ currentPage: "", isSearchResult: false, searchResultData: [], - // dateRange: [new Date(), new Date()], // 日期区间 + dateRange: [now, new Date(now.getTime() + 30 * 24 * 60 * 60 * 1000)], // 日期区间 // 初始状态 matches: [], // 推荐列表 @@ -126,6 +127,7 @@ export const useListStore = create()((set, get) => ({ const state = get(); const filterOptions = state?.filterOptions || {}; const distanceQuickFilter = state?.distanceQuickFilter || {}; + const params = { pageOption: state.pageOption, seachOption: {