|
|
@@ -4,7 +4,7 @@
|
|
|
<div class="input-group" style="display: table;">
|
|
|
<input :placeholder="placeholder" class="form-control" type="text" v-model="keyword" @input="onKeywordInput()" @keyup.13="onSearch()" />
|
|
|
<span class="input-group-btn">
|
|
|
- <button type="button" class="btn btn-default" @click="onSearch()"><i class="iconfont"></i></button>
|
|
|
+ <button type="button" class="btn btn-default" @click="onSearch()">搜索</button>
|
|
|
</span>
|
|
|
</div>
|
|
|
<!--<input type="text" v-model="keyword" @input="onKeywordInput()" :placeholder="placeholder" @keyup.13="onSearch()">-->
|
|
|
@@ -15,7 +15,7 @@
|
|
|
<li class="text-ellipse" v-for="brand in similarList.pBrandEn.slice(0, 4)" @click="onSearch(brand.nameEn, 'pBrandEn', $event)">{{brand.nameEn}}</li>
|
|
|
</template>
|
|
|
<template v-if="similarList.kind && similarList.kind.length">
|
|
|
- <li class="title text-ellipse">类目</li>
|
|
|
+ <li class="title text-ellipse">类目(产品名称)</li>
|
|
|
<li class="text-ellipse" v-for="kind in similarList.kind.slice(0, 4)" @click="onSearch(kind.kind, 'kind', $event)">{{kind.kind}}</li>
|
|
|
</template>
|
|
|
<template v-if="similarList.pCmpCode && similarList.pCmpCode.length">
|
|
|
@@ -29,7 +29,7 @@
|
|
|
<li class="text-ellipse" v-for="brand in similarList.brand.slice(0, 4)" @click="onSearch(brand.nameEn, 'brand', $event)">{{brand.nameEn}}</li>
|
|
|
</template>
|
|
|
<template v-if="similarList.kind && similarList.kind.length">
|
|
|
- <li class="title text-ellipse">类目</li>
|
|
|
+ <li class="title text-ellipse">类目(产品名称)</li>
|
|
|
<li class="text-ellipse" v-for="kind in similarList.kind.slice(0, 4)" @click="onSearch(kind.nameCn, 'kind', $event)">{{kind.nameCn}}</li>
|
|
|
</template>
|
|
|
<template v-if="similarList.component && similarList.component.length">
|
|
|
@@ -40,7 +40,6 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
- import {scrollTo} from '~utils/scroll'
|
|
|
export default {
|
|
|
props: {
|
|
|
placeholder: {
|
|
|
@@ -169,7 +168,6 @@
|
|
|
})
|
|
|
}
|
|
|
this.searchKeyword = this.keyword
|
|
|
- scrollTo('body', 10)
|
|
|
this.showSimilarWord = false
|
|
|
},
|
|
|
onKeywordInput: function () {
|