From 5fc0cba8af1a9e9b1cc41fa65c8a4db89e82ee3e Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期五, 08 八月 2025 13:22:10 +0800
Subject: [PATCH] fix: 任务发布

---
 apps/cMiniApp/src/pages/home/index.vue |   30 ++++++++++++++++++++++--------
 1 files changed, 22 insertions(+), 8 deletions(-)

diff --git a/apps/cMiniApp/src/pages/home/index.vue b/apps/cMiniApp/src/pages/home/index.vue
index 9be0cad..f9c3298 100644
--- a/apps/cMiniApp/src/pages/home/index.vue
+++ b/apps/cMiniApp/src/pages/home/index.vue
@@ -16,17 +16,17 @@
           ></BlSearchbar>
         </div>
         <div class="city-btn" @click="goCitySelect">
-          <Location2 :size="16" />
+          <img :src="IconLocaltion" class="city-btn-icon" />
           <div class="city-btn-text">{{ locationCity }}</div>
         </div>
       </div>
-      <div class="home-banner-wrapper">
+      <!-- <div class="home-banner-wrapper">
         <nut-swiper :auto-play="3000">
           <nut-swiper-item v-for="(item, index) in list" :key="index">
             <img :src="item" class="banner-img" draggable="false" />
           </nut-swiper-item>
         </nut-swiper>
-      </div>
+      </div> -->
     </div>
     <ProTabs
       v-model="queryState.orderType"
@@ -44,7 +44,7 @@
         <Menu>
           <MenuItem title="绛涢��" ref="selectItem">
             <HomeQueryMenuView
-              v-model:gender="queryState.gender"
+              v-model:query="queryMenuState"
               @close="handleMenuSelectClose"
             ></HomeQueryMenuView>
           </MenuItem>
@@ -68,17 +68,26 @@
 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';
 import HomeQueryMenuView from './HomeQueryMenuView.vue';
+import IconLocaltion from '@/assets/task/icon-localtion.png';
 
 const { locationCity } = useUser();
 
 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({
@@ -99,9 +108,9 @@
   selectItem.value?.toggle?.();
 }
 
-function goTaskDetail(item: API.FrontOrderList) {
+function goTaskDetail(item: API.GetFlexTaskListOutput) {
   Taro.navigateTo({
-    url: `${RouterPath.taskDetail}?id=${item.id}`,
+    url: `${RouterPath.taskDetail}?id=${item.taskId}`,
   });
 }
 </script>
@@ -134,6 +143,11 @@
       padding-left: 36px;
       color: boleGetCssVar('text-color', 'primary');
 
+      .city-btn-icon {
+        width: 40px;
+        height: 40px;
+      }
+
       .city-btn-text {
         max-width: 200px;
         @include ellipsis;

--
Gitblit v1.9.1