From 86eb96901916b29f7cec87de88b9aefc77fcbcbf Mon Sep 17 00:00:00 2001 From: li-guang <153605324@qq.com> Date: Thu, 07 Jan 2021 19:10:57 +0800 Subject: [PATCH] 忘记密码,跟进记录 --- 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