From 7f93de11eb0000b68e240c701ded1ca97f256775 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Thu, 16 Jan 2025 18:29:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E6=8C=89=E9=92=AE=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/diy/search.vue | 52 +++++++++++++++++++++++++++++---------- 1 file changed, 39 insertions(+), 13 deletions(-) diff --git a/components/diy/search.vue b/components/diy/search.vue index 04789297..c2bdfcc4 100644 --- a/components/diy/search.vue +++ b/components/diy/search.vue @@ -36,19 +36,36 @@ - - - - - + + + + + + + + + + + + + + @@ -125,6 +142,7 @@ export default { box_style: '', search_button: '', keywords: '', + right_icon_style: '', }; }, watch: { @@ -152,6 +170,7 @@ export default { box_style: this.get_box_style(new_style, new_form), // 搜索框设置 search_box_style: `border: 1px solid ${new_style.search_border == '#fff' ? '#eee' : new_style.search_border};`, search_button: this.get_search_button(new_style), // 搜索按钮显示 + right_icon_style: `border-radius: 0px ${ new_style.search_button_radius?.radius_top_right || 0 }px ${ new_style.search_button_radius?.radius_bottom_right || 0 }px 0px;`, }); }, // get_style(new_style) { @@ -205,6 +224,13 @@ export default { } app.globalData.url_open(this.form.icon_link.page); }, + search_right_icon_tap() { + if (isEmpty(this.form.right_icon_link)) { + this.search_tap(); + return; + } + app.globalData.url_open(this.form.right_icon_link.page); + }, slideChange(e) { let actived_index = e.detail.current; this.setData({