|
@@ -15,7 +15,7 @@
|
|
|
<div class="search-div flex-row-start">
|
|
<div class="search-div flex-row-start">
|
|
|
<div class="search-input flex-row-center">
|
|
<div class="search-input flex-row-center">
|
|
|
<el-input class="el-input" v-model="input" placeholder="搜索商品、品牌、分类..." />
|
|
<el-input class="el-input" v-model="input" placeholder="搜索商品、品牌、分类..." />
|
|
|
- <div class="bnt flex-row-center" @click="onPath('/search?type=1&input=' + input)">
|
|
|
|
|
|
|
+ <div class="bnt flex-row-center" @click="onPath('/search?type=1&input=' + input + '&cType=' + componentData.headType)">
|
|
|
<el-icon color="#ffffff" size="20">
|
|
<el-icon color="#ffffff" size="20">
|
|
|
<Search />
|
|
<Search />
|
|
|
</el-icon>
|
|
</el-icon>
|
|
@@ -31,7 +31,11 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="search-text">
|
|
<div class="search-text">
|
|
|
- <div @click="onPath('/search?type=1&input=' + item.title)" v-for="(item, index) in componentData.toplabel" :key="index">
|
|
|
|
|
|
|
+ <div
|
|
|
|
|
+ @click="onPath('/search?type=1&input=' + item.title + '&cType=' + componentData.headType)"
|
|
|
|
|
+ v-for="(item, index) in componentData.toplabel"
|
|
|
|
|
+ :key="index"
|
|
|
|
|
+ >
|
|
|
{{ item.title }}
|
|
{{ item.title }}
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -77,7 +81,7 @@
|
|
|
>
|
|
>
|
|
|
<template v-if="componentData.leftStyle == 1">
|
|
<template v-if="componentData.leftStyle == 1">
|
|
|
<div
|
|
<div
|
|
|
- @click="onPath('/search?type=1&topCategoryId=' + item.id)"
|
|
|
|
|
|
|
+ @click="onPath('/search?type=1&topCategoryId=' + item.id + '&cType=' + componentData.headType)"
|
|
|
:style="{ 'color': componentData.leftColor1 }"
|
|
:style="{ 'color': componentData.leftColor1 }"
|
|
|
class="label ellipsis hover-color"
|
|
class="label ellipsis hover-color"
|
|
|
>
|
|
>
|
|
@@ -111,14 +115,18 @@
|
|
|
v-for="(item, index) in classifyInfo"
|
|
v-for="(item, index) in classifyInfo"
|
|
|
:key="index"
|
|
:key="index"
|
|
|
class="classify-item"
|
|
class="classify-item"
|
|
|
- @click="onPath('/search?type=2&mediumCategoryId=' + item.id)"
|
|
|
|
|
|
|
+ @click="onPath('/search?type=2&mediumCategoryId=' + item.id + '&cType=' + componentData.headType)"
|
|
|
>
|
|
>
|
|
|
<div class="two-level ellipsis">{{ item.label || '' }}</div>
|
|
<div class="two-level ellipsis">{{ item.label || '' }}</div>
|
|
|
<el-icon class="classify-icon" :size="14" color="#364153">
|
|
<el-icon class="classify-icon" :size="14" color="#364153">
|
|
|
<ArrowRight />
|
|
<ArrowRight />
|
|
|
</el-icon>
|
|
</el-icon>
|
|
|
<div class="classify-label">
|
|
<div class="classify-label">
|
|
|
- <div @click="onPath('/search?type=3&bottomCategoryId=' + item1.id)" v-for="(item1, index1) in item.children" :key="index1">
|
|
|
|
|
|
|
+ <div
|
|
|
|
|
+ @click="onPath('/search?type=3&bottomCategoryId=' + item1.id + '&cType=' + componentData.headType)"
|
|
|
|
|
+ v-for="(item1, index1) in item.children"
|
|
|
|
|
+ :key="index1"
|
|
|
|
|
+ >
|
|
|
{{ item1.label || '' }}
|
|
{{ item1.label || '' }}
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|