From 45fb4b11ad51bb38306765b11a6747402e382cee Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Sat, 20 Feb 2021 17:37:33 +0800 Subject: [PATCH] fix --- hive-app/components/searchBar/index.vue | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/hive-app/components/searchBar/index.vue b/hive-app/components/searchBar/index.vue index 46f5ca2..e825f72 100644 --- a/hive-app/components/searchBar/index.vue +++ b/hive-app/components/searchBar/index.vue @@ -1,21 +1,30 @@ <template> <view class="search-group"> <text class="iconfont iconsousuo"></text> - <input class="uni-input" confirm-type="search" :placeholder=placeholder placeholder-class="placeholder" /> + <input class="uni-input" :focus="focus" confirm-type="search" @confirm="confirm" :placeholder="placeholder" placeholder-class="placeholder" /> </view> </template> <script> export default { props:{ + focus: { + default: false + }, placeholder: { - default: '输入会员姓名、手机号、编号查询' + default: '输入会员姓名、手机号、会员编号、拼音' } }, data() { return { }; + }, + methods:{ + confirm(e){ + this.$emit('confirm', e.detail.value); + } } + } </script> -- Gitblit v1.9.1