修改用户定位地址相关

This commit is contained in:
张成
2025-09-11 09:32:33 +08:00
parent a9511ea828
commit e1944cbaeb
5 changed files with 13 additions and 5 deletions

View File

@@ -40,6 +40,7 @@ const FilterPopup = (props: FilterPopupProps) => {
const handleDateChange = (dates: Date[]) => { const handleDateChange = (dates: Date[]) => {
const dateArray = dates.map(date => dayjs(date).format('YYYY-MM-DD')) const dateArray = dates.map(date => dayjs(date).format('YYYY-MM-DD'))
onChange({ onChange({
'dateRange': dateArray, 'dateRange': dateArray,
}) })

View File

@@ -17,8 +17,8 @@ const envConfigs: Record<EnvType, EnvConfig> = {
// 开发环境 // 开发环境
development: { development: {
name: '开发环境', name: '开发环境',
//apiBaseURL: 'https://sit.light120.com', // apiBaseURL: 'https://sit.light120.com',
apiBaseURL: 'http://localhost:9098', apiBaseURL: 'http://localhost:9098',
timeout: 15000, timeout: 15000,
enableLog: true, enableLog: true,
enableMock: true enableMock: true

View File

@@ -1,4 +1,8 @@
export default definePageConfig({ export default definePageConfig({
navigationBarTitleText: '编辑资料', navigationBarTitleText: '编辑资料',
navigationStyle: 'custom' navigationBarBackgroundColor: '#ffffff',
navigationBarTextStyle: 'black',
backgroundColor: '#f5f5f5',
enablePullDownRefresh: false,
disableScroll: false,
}) })

View File

@@ -4,5 +4,6 @@ export default definePageConfig({
navigationBarTextStyle: 'black', navigationBarTextStyle: 'black',
backgroundColor: '#f5f5f5', backgroundColor: '#f5f5f5',
enablePullDownRefresh: false, enablePullDownRefresh: false,
disableScroll: false disableScroll: false,
navigationStyle: 'custom',
}) })

View File

@@ -40,11 +40,12 @@ const defaultPageOption = {
}; };
// 创建 store // 创建 store
const now = new Date();
export const useListStore = create<TennisStore>()((set, get) => ({ export const useListStore = create<TennisStore>()((set, get) => ({
currentPage: "", currentPage: "",
isSearchResult: false, isSearchResult: false,
searchResultData: [], searchResultData: [],
// dateRange: [new Date(), new Date()], // 日期区间 dateRange: [now, new Date(now.getTime() + 30 * 24 * 60 * 60 * 1000)], // 日期区间
// 初始状态 // 初始状态
matches: [], matches: [],
// 推荐列表 // 推荐列表
@@ -126,6 +127,7 @@ export const useListStore = create<TennisStore>()((set, get) => ({
const state = get(); const state = get();
const filterOptions = state?.filterOptions || {}; const filterOptions = state?.filterOptions || {};
const distanceQuickFilter = state?.distanceQuickFilter || {}; const distanceQuickFilter = state?.distanceQuickFilter || {};
const params = { const params = {
pageOption: state.pageOption, pageOption: state.pageOption,
seachOption: { seachOption: {