|
@@ -1,6 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<view>
|
|
<view>
|
|
- <luo-nav-bar @rightClick='cancel' @input='companyInput' :isSearch="true" :isPlaceText='true' placeText='输入企业名称' rightText='取消' leftIcon='back'></luo-nav-bar>
|
|
|
|
|
|
+ <luo-nav-bar :searchText='searchText' @rightClick='cancel' @input='companyInput' :isSearch="true" :isPlaceText='true' placeText='输入企业名称' rightText='取消' leftIcon='back'></luo-nav-bar>
|
|
<view v-if='searching' style='padding:10px;'>
|
|
<view v-if='searching' style='padding:10px;'>
|
|
<view style='color:#999;margin-bottom:40px;font-size:14px;' v-if='more'>#输入更多关键字精准获取企业</view>
|
|
<view style='color:#999;margin-bottom:40px;font-size:14px;' v-if='more'>#输入更多关键字精准获取企业</view>
|
|
<view @click='checkcompany(item)' class='company' v-for='item in companyList'>
|
|
<view @click='checkcompany(item)' class='company' v-for='item in companyList'>
|
|
@@ -30,7 +30,8 @@
|
|
companyList:[],
|
|
companyList:[],
|
|
lastTime:0,
|
|
lastTime:0,
|
|
history:[],
|
|
history:[],
|
|
- searching:false
|
|
|
|
|
|
+ searching:false,
|
|
|
|
+ searchText:''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
components:{
|
|
components:{
|
|
@@ -53,6 +54,7 @@
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
cancel(){
|
|
cancel(){
|
|
|
|
+ this.searchText=''
|
|
this.searching=false
|
|
this.searching=false
|
|
this.companyList=[]
|
|
this.companyList=[]
|
|
},
|
|
},
|
|
@@ -62,8 +64,10 @@
|
|
return str.replace(reg, replace);
|
|
return str.replace(reg, replace);
|
|
},
|
|
},
|
|
clicksearch(item){
|
|
clicksearch(item){
|
|
- this.s
|
|
|
|
- }
|
|
|
|
|
|
+ this.searchText=item.searchContent
|
|
|
|
+ this.companyInput('',this.searchText)
|
|
|
|
+ // this.s
|
|
|
|
+ },
|
|
checkcompany(item){
|
|
checkcompany(item){
|
|
uni.setStorageSync('currectcompany', item)
|
|
uni.setStorageSync('currectcompany', item)
|
|
this.goDetailPage('pages/mine/cargoowner/addEnerprise')
|
|
this.goDetailPage('pages/mine/cargoowner/addEnerprise')
|