...
|
...
|
@@ -3,19 +3,19 @@ |
|
|
<div class="cate-container clearfix">
|
|
|
<div class="content" style="height: 522px;">
|
|
|
<ul class="primary-level">
|
|
|
<li v-for="(index, ca) in cateNavLeftData" v-bind:class="{focus: index === leftcurrent}" class="p-level-item" v-on:click='cateNavLeftFun(index, ca.relationParameter.sort, ca.categoryName)'>
|
|
|
<li v-for="(index, ca) in cateNavLeftData" class="ellipsis" v-bind:class="{focus: index === leftcurrent}" class="p-level-item" v-on:click='cateNavLeftFun(index, ca.relationParameter.sort, ca.categoryName)'>
|
|
|
{{ca.categoryName}}
|
|
|
</li>
|
|
|
</ul>
|
|
|
<div class="sub-level-container">
|
|
|
<ul class="sub-level">
|
|
|
<li >
|
|
|
<li class="ellipsis">
|
|
|
<a v-if="jump" href="/product/list?sort={{rightAll.sortId}}&sort_name=全部{{rightAll.categoryName}}&gender={{gender}}">全部{{rightAll.categoryName}}</a>
|
|
|
<a v-else @click="noJumpReturn(rightAll.sortId, '全部' + rightAll.categoryName)">全部{{rightAll.categoryName}}</a>
|
|
|
</li>
|
|
|
</ul>
|
|
|
<ul class="sub-level">
|
|
|
<li v-for="sub in cateNavRightData">
|
|
|
<li v-for="sub in cateNavRightData" class="ellipsis">
|
|
|
<a v-if="jump" href="/product/list?sort={{sub.relationParameter.sort}}&sort_name={{sub.categoryName}}&gender={{gender}}">{{sub.categoryName}}</a>
|
|
|
<a v-else @click="noJumpReturn(sub.relationParameter.sort, sub.categoryName)">{{sub.categoryName}}</a>
|
|
|
</li>
|
...
|
...
|
@@ -130,9 +130,6 @@ |
|
|
height: 120px;
|
|
|
line-height: 120px;
|
|
|
padding: 0 32px;
|
|
|
white-space: nowrap;
|
|
|
overflow: hidden;
|
|
|
text-overflow: ellipsis;
|
|
|
border-bottom: 1px solid #e6e6e6;
|
|
|
user-select: none;
|
|
|
|
...
|
...
|
@@ -195,9 +192,7 @@ |
|
|
}
|
|
|
|
|
|
a {
|
|
|
display: block;
|
|
|
height: 100%;
|
|
|
width: 100%;
|
|
|
display: inline;
|
|
|
color: #000;
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -255,7 +250,8 @@ |
|
|
this.$set('cateNavLeftData', this.category);
|
|
|
this.$set('cateNavRightData', this.cateNavLeftData ? this.cateNavLeftData[0].sub : []);
|
|
|
|
|
|
let allSorts = this.cateNavLeftData[0].sub ? this.cateNavLeftData[0].sub.map(sort=>sort.relationParameter.sort).join(',') : '';
|
|
|
let allSorts = this.cateNavLeftData[0].sub ?
|
|
|
this.cateNavLeftData[0].sub.map(sort=>sort.relationParameter.sort).join(',') : '';
|
|
|
|
|
|
this.$set('rightAll', this.cateNavLeftData ? {
|
|
|
sortId: allSorts,
|
...
|
...
|
|