From e7b67cfe0a9dc400c3efa327fb2f1e7b5f106459 Mon Sep 17 00:00:00 2001
From: sws <1141121512@qq.com>
Date: Thu, 17 Oct 2024 10:50:29 +0800
Subject: [PATCH] =?UTF-8?q?1.=E9=A1=B6=E9=83=A8=E5=AF=BC=E8=88=AA=E4=BC=98?=
=?UTF-8?q?=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/diy/diy.vue | 20 ++++++++++++--------
components/diy/header.vue | 16 ++++++++++------
2 files changed, 22 insertions(+), 14 deletions(-)
diff --git a/components/diy/diy.vue b/components/diy/diy.vue
index 666a1658..7364637f 100644
--- a/components/diy/diy.vue
+++ b/components/diy/diy.vue
@@ -8,8 +8,8 @@
-
-
+
+
@@ -123,7 +123,7 @@
import componentSearch from '@/components/search/search';
var system = app.globalData.get_system_info(null, null, true);
var sys_width = app.globalData.window_width_handle(system.windowWidth);
-
+
// 状态栏高度
var bar_height = parseInt(app.globalData.get_system_info('statusBarHeight', 0));
// #ifdef MP-TOUTIAO
@@ -175,7 +175,7 @@
componentNoData,
componentBottomLine,
componentGoodsBuy,
- componentSearch
+ componentSearch,
},
data() {
return {
@@ -244,6 +244,8 @@
video_src: '',
popup_width: '0rpx',
popup_height: '0rpx',
+ // 顶部导航是否换行
+ is_search_alone_row: false,
};
},
watch: {
@@ -289,6 +291,8 @@
is_header_top: parseInt(this.propValue.header.com_data.style.up_slide_display) == 1 ? true : false,
temp_sticky_top: this.sticky_top,
temp_header_top: this.header_top,
+ // 顶部导航高度是否变化--------------------------------------------------
+ is_search_alone_row: false,
});
// 缓存数据
@@ -524,7 +528,7 @@
search_form: form,
hot_word_list: list,
search_hot_words_color: color,
- is_focus: true
+ is_focus: true,
});
this.$refs.searchPopup.open();
},
@@ -552,7 +556,7 @@
diff --git a/components/diy/header.vue b/components/diy/header.vue
index ce3cf16e..cad9e60a 100644
--- a/components/diy/header.vue
+++ b/components/diy/header.vue
@@ -9,7 +9,7 @@
{{ form.content.title }}
-
+
@@ -33,7 +33,7 @@
-
+
@@ -46,6 +46,9 @@
+
+
+
@@ -135,6 +138,8 @@
up_slide_img_style: '',
// 当前页面是否在底部菜单中
is_tabbar_pages: app.globalData.is_tabbar_pages(),
+ // 判断header的查询是否独行
+ is_search_alone_row: false,
};
},
watch: {
@@ -198,6 +203,8 @@
header_style: menu_button_info,
header_background_type: header_background_type,
is_immersion_model: header_background_type !== 'color_image' && immersive_style == '1',
+ // is_search_alone_row: new_content.is_search_alone_row == '1',
+ is_search_alone_row: true,
});
this.$emit('immersion-model-call-back', this.is_immersion_model);
},
@@ -237,9 +244,6 @@
.header-around {
z-index: 4;
}
- .header-content {
- height: 66rpx;
- }
.model-top {
.roll {
width: 100%;