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 | 17 +++++++++++++++--
1 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/hive-app/components/searchBar/index.vue b/hive-app/components/searchBar/index.vue
index 0bea1e8..e825f72 100644
--- a/hive-app/components/searchBar/index.vue
+++ b/hive-app/components/searchBar/index.vue
@@ -1,17 +1,30 @@
<template>
<view class="search-group">
<text class="iconfont iconsousuo"></text>
- <input class="uni-input" confirm-type="search" 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: '输入会员姓名、手机号、会员编号、拼音'
+ }
+ },
data() {
return {
-
};
+ },
+ methods:{
+ confirm(e){
+ this.$emit('confirm', e.detail.value);
+ }
}
+
}
</script>
--
Gitblit v1.9.1