|
@@ -3,11 +3,13 @@
|
|
<!-- top -->
|
|
<!-- top -->
|
|
<view class="topView">
|
|
<view class="topView">
|
|
<!-- 搜索 -->
|
|
<!-- 搜索 -->
|
|
- <view class="searchBox">
|
|
|
|
|
|
+ <!-- <view class="searchBox">
|
|
<image src="../../static/img/icon_search.png" class="searchImg"></image>
|
|
<image src="../../static/img/icon_search.png" class="searchImg"></image>
|
|
<input type="text" class="searchInput" placeholder="请输入门店名称、联系人、手机号" v-model="searchValue"
|
|
<input type="text" class="searchInput" placeholder="请输入门店名称、联系人、手机号" v-model="searchValue"
|
|
@confirm="searchDone" />
|
|
@confirm="searchDone" />
|
|
- </view>
|
|
|
|
|
|
+ </view> -->
|
|
|
|
+
|
|
|
|
+ <searchBox placeholder="请输入门店名称、联系人、手机号" @search='search'></searchBox>
|
|
|
|
|
|
<!-- 条件筛选 -->
|
|
<!-- 条件筛选 -->
|
|
<view class="siftBg">
|
|
<view class="siftBg">
|
|
@@ -82,8 +84,12 @@
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
-<script>
|
|
|
|
- export default {
|
|
|
|
|
|
+<script>
|
|
|
|
+ import searchBox from '@/components/searchBox/searchBox.vue'
|
|
|
|
+ export default {
|
|
|
|
+ components:{
|
|
|
|
+ searchBox
|
|
|
|
+ },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
searchValue: '',
|
|
searchValue: '',
|
|
@@ -131,7 +137,10 @@
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
- methods: {
|
|
|
|
|
|
+ methods: {
|
|
|
|
+ search(val){
|
|
|
|
+ console.log(val);
|
|
|
|
+ },
|
|
searchDone(e) {
|
|
searchDone(e) {
|
|
this.searchValue = e.target.value
|
|
this.searchValue = e.target.value
|
|
this.page = 1
|
|
this.page = 1
|