From bbf6053159d566a096dfa26627dda19657d928af Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期一, 10 三月 2025 13:24:14 +0800
Subject: [PATCH] Merge branch 'master' of http://120.26.58.240:8888/r/flexJobMiniApp

---
 apps/cMiniApp/src/pages/home/index.vue |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/apps/cMiniApp/src/pages/home/index.vue b/apps/cMiniApp/src/pages/home/index.vue
index e8739cf..1c9395b 100644
--- a/apps/cMiniApp/src/pages/home/index.vue
+++ b/apps/cMiniApp/src/pages/home/index.vue
@@ -44,7 +44,7 @@
         <Menu>
           <MenuItem title="绛涢��" ref="selectItem">
             <HomeQueryMenuView
-              v-model:gender="queryState.gender"
+              v-model:query="queryMenuState"
               @close="handleMenuSelectClose"
             ></HomeQueryMenuView>
           </MenuItem>
@@ -68,7 +68,7 @@
 import { useUserStore } from '@/stores/modules/user';
 import { RectDown, Location2 } from '@nutui/icons-vue-taro';
 import Taro from '@tarojs/taro';
-import { LocationUtils, trim } from '@12333/utils';
+import { setLocationCity } from '@/utils';
 import _ from 'lodash';
 import IconLogo from '@/assets/home/icon-logo.png';
 import { TaskCard, ProTabs, ProTabPane } from '@12333/components';
@@ -79,7 +79,15 @@
 
 const userStore = useUserStore();
 
-const { searchValue, queryState, handleSearch, infiniteLoadingProps } = useTaskList();
+const { searchValue, queryState, handleSearch, infiniteLoadingProps, queryMenuState } = useTaskList(
+  { cityName: locationCity }
+);
+
+onMounted(async () => {
+  try {
+    await setLocationCity();
+  } catch (error) {}
+});
 
 function goCitySelect() {
   Taro.navigateTo({
@@ -100,7 +108,7 @@
   selectItem.value?.toggle?.();
 }
 
-function goTaskDetail(item: API.FrontOrderList) {
+function goTaskDetail(item: API.GetFlexTaskListOutput) {
   Taro.navigateTo({
     url: `${RouterPath.taskDetail}?id=${item.id}`,
   });

--
Gitblit v1.9.1