Authored by 郭成尧

'brandCateSort'

... ... @@ -4,17 +4,17 @@
<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.categoryId, ca.categoryName)'>
<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)'>
{{ca.categoryName}}
</li>
</ul>
<div class="sub-level-container">
<ul class="sub-level">
<li><a href="/list?sort={{rightAll.categoryId}}&sort_name={{rightAll.categoryName}}&gender={{gender}}">全部{{rightAll.categoryName}}</a></li>
<li><a href="/list?sort={{rightAll.sortId}}&sort_name={{rightAll.categoryName}}&gender={{gender}}">全部{{rightAll.categoryName}}</a></li>
</ul>
<ul class="sub-level">
<li v-for="sub in cateNavRightData">
<a href="/list?sort={{sub.categoryId}}&sort_name={{sub.categoryName}}&gender={{gender}}">{{sub.categoryName}}</a>
<a href="/list?sort={{sub.relationParameter.sort}}&sort_name={{sub.categoryName}}&gender={{gender}}">{{sub.categoryName}}</a>
</li>
</ul>
</div>
... ... @@ -237,8 +237,6 @@
},
methods: {
getCateList() {
let self = this;
let data = {
channel: ''
};
... ... @@ -248,12 +246,12 @@
data: data
}).then(result => {
if (result.code === 200 && result.data) {
self.$set('brandCate', result.data);
self.$set('cateNavLeftData', result.data['MEN男士']);
self.$set('cateNavRightData', result.data['MEN男士'] ? result.data['MEN男士'][0].sub : []);
this.$set('brandCate', result.data);
this.$set('cateNavLeftData', result.data['MEN男士']);
this.$set('cateNavRightData', result.data['MEN男士'] ? result.data['MEN男士'][0].sub : []);
this.$set('rightAll', result.data['MEN男士'] ? {
categoryId: result.data['MEN男士'][0].categoryId,
sortId: result.data['MEN男士'][0].relationParameter.sort,
categoryName: result.data['MEN男士'][0].categoryName
} : {});
}
... ... @@ -265,7 +263,7 @@
this.leftcurrent = index;
this.cateNavRightData = this.cateNavLeftData[index].sub;
this.rightAll = {
categoryId: categoryId,
sortId: categoryId,
categoryName: categoryName
};
}
... ...