From 5e36cbb24436925037e578fdf6c6e8d91def8012 Mon Sep 17 00:00:00 2001 From: xuli3099 Date: Mon, 18 Aug 2025 16:11:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=90=9C=E7=B4=A2=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/customSearch.vue | 4 +- src/pages/business/business.vue | 56 +++++--- src/pages/home/home.vue | 243 +++++++++++++++++--------------- src/pages/notice/notice.vue | 22 +-- 4 files changed, 178 insertions(+), 147 deletions(-) diff --git a/src/components/customSearch.vue b/src/components/customSearch.vue index 540300d..28ad531 100644 --- a/src/components/customSearch.vue +++ b/src/components/customSearch.vue @@ -68,7 +68,7 @@ const props = defineProps({ searchKeywords:{//搜索文本 type:String }, - searchType:{//哪种类型显示对象 + searchType:{//哪种类型显示对象 typeId:1-首页,2-业务首页,3-消息 之后可以自动添加 type:Object }, searchTypeList:{//类型列表 @@ -111,7 +111,7 @@ const emit = defineEmits(['confirm']); // 加载历史记录 const loadHistory = () => { - let typeId = props.searchType.typeId + let typeId = props.searchType?props.searchType.typeId:undefined const history = uni.getStorageSync('searchHistory'+typeId) || [] historyList.value = history } diff --git a/src/pages/business/business.vue b/src/pages/business/business.vue index 6b1d7ed..2d2aede 100644 --- a/src/pages/business/business.vue +++ b/src/pages/business/business.vue @@ -3,23 +3,33 @@ + - + + - @@ -59,7 +69,8 @@