From 935f34238713b63a1f44fb12d09cd2512b1bd46d Mon Sep 17 00:00:00 2001 From: li-guang <153605324@qq.com> Date: Wed, 23 Dec 2020 16:21:18 +0800 Subject: [PATCH] Merge branch 'master' of https://gitee.com/jyyforjava/hive-app --- hive-app/components/searchBar/index.vue | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/hive-app/components/searchBar/index.vue b/hive-app/components/searchBar/index.vue index 46f5ca2..8a5890e 100644 --- a/hive-app/components/searchBar/index.vue +++ b/hive-app/components/searchBar/index.vue @@ -1,7 +1,7 @@ <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" confirm-type="search" @confirm="confirm" :placeholder="placeholder" placeholder-class="placeholder" /> </view> </template> @@ -9,13 +9,19 @@ export default { props:{ placeholder: { - default: '输入会员姓名、手机号、编号查询' + default: '输入会员姓名、手机号、会员编号、拼音' } }, data() { return { }; + }, + methods:{ + confirm(e){ + this.$emit('confirm', e.detail.value); + } } + } </script> -- Gitblit v1.9.1