|
@@ -3,6 +3,7 @@
|
|
|
<div class="main-search-header">
|
|
<div class="main-search-header">
|
|
|
<input type="text" v-model="keyword" placeholder="请输入您要查找的型号或品牌" @keyup.13="onSearch()" autofocus>
|
|
<input type="text" v-model="keyword" placeholder="请输入您要查找的型号或品牌" @keyup.13="onSearch()" autofocus>
|
|
|
<span @click="onSearch()">搜索</span>
|
|
<span @click="onSearch()">搜索</span>
|
|
|
|
|
+ <a @click="cancelSearch">取消</a>
|
|
|
</div>
|
|
</div>
|
|
|
<ul class="associate-list" v-show="associate.show">
|
|
<ul class="associate-list" v-show="associate.show">
|
|
|
<li @click="onAssociateClick(similar.code)" v-for="similar in similarKeywords.all">
|
|
<li @click="onAssociateClick(similar.code)" v-for="similar in similarKeywords.all">
|
|
@@ -92,6 +93,9 @@
|
|
|
onAssociateClick (word) {
|
|
onAssociateClick (word) {
|
|
|
this.keyword = word
|
|
this.keyword = word
|
|
|
this.onSearch()
|
|
this.onSearch()
|
|
|
|
|
+ },
|
|
|
|
|
+ cancelSearch: function () {
|
|
|
|
|
+ this.$emit('cancelSearchAction')
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
created () {
|
|
created () {
|
|
@@ -132,7 +136,7 @@
|
|
|
display: flex;
|
|
display: flex;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
input {
|
|
input {
|
|
|
- width: 4.78rem;
|
|
|
|
|
|
|
+ width: 4.48rem;
|
|
|
height: .54rem;
|
|
height: .54rem;
|
|
|
line-height: .54rem;
|
|
line-height: .54rem;
|
|
|
font-size: .23rem;
|
|
font-size: .23rem;
|
|
@@ -156,6 +160,11 @@
|
|
|
border-bottom-right-radius: .05rem;
|
|
border-bottom-right-radius: .05rem;
|
|
|
background: #fff;
|
|
background: #fff;
|
|
|
}
|
|
}
|
|
|
|
|
+ a {
|
|
|
|
|
+ font-size: .27rem;
|
|
|
|
|
+ color: #fff;
|
|
|
|
|
+ margin-left: .2rem;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
.associate-list {
|
|
.associate-list {
|
|
|
padding-top: .25rem;
|
|
padding-top: .25rem;
|