|
|
@@ -26,7 +26,7 @@
|
|
|
<li v-if="similarKeywords.data.brand && similarKeywords.data.brand.length > 0" class="similar-title">品牌:</li>
|
|
|
<li v-for="(k, index) in similarKeywords.data.brand" :key="k.nameCn" class="item"
|
|
|
:class="{'active': index==associate.activeIndex}"
|
|
|
- @click.stop.prevent="onAssociateClick(k.nameCn)">{{ k.nameCn }}
|
|
|
+ @click.stop.prevent="onAssociateClick(isCnStart() ? k.nameCn : k.nameEn)">{{ isCnStart() ? k.nameCn : k.nameEn }}
|
|
|
</li>
|
|
|
<li v-if="similarKeywords.data.kind && similarKeywords.data.kind.length > 0" class="similar-title">类目:</li>
|
|
|
<li v-for="(k, index) in similarKeywords.data.kind" :key="k.nameCn" class="item"
|
|
|
@@ -164,6 +164,11 @@
|
|
|
this.click_flag = true
|
|
|
this.keyword = word
|
|
|
this.onSearch()
|
|
|
+ },
|
|
|
+ isCnStart () {
|
|
|
+ if (this.keyword && this.keyword.length > 0) {
|
|
|
+ return this.keyword.charCodeAt(0) > 255
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
created () {
|