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({