From 99edaff05a7be7b8c27e38e61748476bf5757716 Mon Sep 17 00:00:00 2001 From: zhangkai <847704969@qq.com> Date: Fri, 30 May 2025 16:36:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9ui=20=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/AppAbout.vue | 2 +- components/AppAboutdel.vue | 4 +- components/AppHeader.vue | 2 +- components/AppHome.vue | 9 ++++- components/AppMessage.vue | 9 ++++- components/AppNews.vue | 11 +++++- components/AppNewsdel.vue | 9 ++--- components/AppRegiment.vue | 9 ++++- components/AppSearchdel.vue | 79 ++++++++++++++++++++++++------------- pages/index.vue | 42 +++++++++----------- 10 files changed, 109 insertions(+), 67 deletions(-) diff --git a/components/AppAbout.vue b/components/AppAbout.vue index c71214b..21bd89c 100644 --- a/components/AppAbout.vue +++ b/components/AppAbout.vue @@ -298,7 +298,7 @@ onMounted(() => { padding-left: 30px; cursor: pointer; p{ - margin: 20px 30px ; + margin: 15px 30px ; } } } diff --git a/components/AppAboutdel.vue b/components/AppAboutdel.vue index 42e81d8..87b8974 100644 --- a/components/AppAboutdel.vue +++ b/components/AppAboutdel.vue @@ -10,13 +10,13 @@
-
+
diff --git a/components/AppHeader.vue b/components/AppHeader.vue index ea3e8bb..566cc9e 100644 --- a/components/AppHeader.vue +++ b/components/AppHeader.vue @@ -76,7 +76,7 @@ onUpdated(() => { position: absolute; z-index: 1000; .pc-nav { - margin-left: 70px; + margin-left: 60px; margin-top: 250px; text-align: center; } diff --git a/components/AppHome.vue b/components/AppHome.vue index d2d532f..236bdac 100644 --- a/components/AppHome.vue +++ b/components/AppHome.vue @@ -43,7 +43,7 @@
-
+
@@ -146,6 +146,13 @@ const swiperOptionsimgs = { }, } +const toSearch =() => { + emit('toSwpe',9); + emitter.emit('inputSea', { + keywords:inputSearch.value, + type: 1, + }); +} //跳转详情 const gotoDetail = (id: number) => { detailId.value = { diff --git a/components/AppMessage.vue b/components/AppMessage.vue index dfd2fb0..97689db 100644 --- a/components/AppMessage.vue +++ b/components/AppMessage.vue @@ -13,7 +13,7 @@
-
+
@@ -97,6 +97,13 @@ const getMesList = async () => { total.value = res.data.data.count; MesList.value = res.data.data.list; } +const toSearch =() => { + emit('toSwpe',9); + emitter.emit('inputSea', { + keywords:inputSearch.value, + type: 2, + }); +} //跳转详情 const gotoDetail = (id: number) => { diff --git a/components/AppNews.vue b/components/AppNews.vue index 1d88073..3343860 100644 --- a/components/AppNews.vue +++ b/components/AppNews.vue @@ -13,7 +13,7 @@
-
+
@@ -107,7 +107,14 @@ const gotoDetail = (id: number) => { emit('toSwpe',6) emitter.emit('detailId', detailId.value); } - +//搜索 +const toSearch =() => { + emit('toSwpe',9); + emitter.emit('inputSea', { + keywords:inputSearch.value, + type: 2, + }); +} const getPageList = async () => { page.value = page.value; getMesList(); diff --git a/components/AppNewsdel.vue b/components/AppNewsdel.vue index 69957cf..38210a2 100644 --- a/components/AppNewsdel.vue +++ b/components/AppNewsdel.vue @@ -9,13 +9,13 @@
-
+
@@ -197,10 +197,6 @@ onMounted(() => {