Authored by 李奇

fixed:新品到着默认新品

... ... @@ -105,11 +105,6 @@ export default {
choices: []
}
],
activeSort: {
text: '新品',
val: 's_t_desc',
type: 2
},
layFlag: false,
subType: '',
values: {
... ... @@ -136,7 +131,23 @@ export default {
'icon-sort-up': !this.filterDown,
'icon-sort-down': this.filterDown
}
}
},
activeSort() {
const activeMap = {
s_t_desc: {
text: '新品',
val: 's_t_desc',
type: 2
},
default_sort: {
text: '推荐',
val: '',
type: 0
}
};
return activeMap[this.val] || activeMap.default_sort;
},
},
methods: {
toggleRec(){
... ...