From a6eb0b9b2183e43bdc5b74aac09dcbc525d461cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Fri, 27 Sep 2024 16:59:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BE=93=E5=85=A5=E6=A1=86?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/diy/carousel.vue | 2 +- components/diy/header.vue | 24 +++- components/diy/modules/hot-word-list.vue | 74 ++++++++++++ components/diy/search.vue | 139 ++++++++++++++++++----- 4 files changed, 205 insertions(+), 34 deletions(-) create mode 100644 components/diy/modules/hot-word-list.vue diff --git a/components/diy/carousel.vue b/components/diy/carousel.vue index 25e37c4e..fbaa14fd 100644 --- a/components/diy/carousel.vue +++ b/components/diy/carousel.vue @@ -20,7 +20,7 @@ - + diff --git a/components/diy/header.vue b/components/diy/header.vue index d74d4f19..7c6be3fa 100644 --- a/components/diy/header.vue +++ b/components/diy/header.vue @@ -4,18 +4,18 @@ - + {{ form.content.title }} @@ -27,11 +27,11 @@ - + @@ -43,6 +43,7 @@ + @@ -50,6 +51,7 @@ const app = getApp(); import componentDiySearch from '@/components/diy/search'; import imageEmpty from '@/components/diy/modules/image-empty'; + import hotWordList from '@/components/diy/modules/hot-word-list'; import { isEmpty, background_computer, gradient_computer } from '@/common/js/common/common.js'; // 状态栏高度 var bar_height = parseInt(app.globalData.get_system_info('statusBarHeight', 0)); @@ -66,9 +68,11 @@ components: { componentDiySearch, imageEmpty, + hotWordList, }, data() { return { + is_click: false, form: {}, new_style: {}, position: '', @@ -126,6 +130,16 @@ go_map_event() { console.log('地图方法'); }, + search_tap(value) { + this.setData({ + is_click: value + }) + }, + search_hot_close() { + this.setData({ + is_click: false + }) + }, url_event(e) { app.globalData.url_event(e); }, diff --git a/components/diy/modules/hot-word-list.vue b/components/diy/modules/hot-word-list.vue new file mode 100644 index 00000000..065d708a --- /dev/null +++ b/components/diy/modules/hot-word-list.vue @@ -0,0 +1,74 @@ + + + + + \ No newline at end of file diff --git a/components/diy/search.vue b/components/diy/search.vue index a1669e6c..59a18206 100644 --- a/components/diy/search.vue +++ b/components/diy/search.vue @@ -1,41 +1,71 @@