Authored by 陈峰

Merge branch 'release/4.0' of http://git.yoho.cn/fe/yohoblk-wap into release/4.0

... ... @@ -105,11 +105,6 @@ export default {
choices: []
}
],
activeSort: {
text: '新品',
val: 's_t_desc',
type: 2
},
layFlag: false,
subType: '',
values: {
... ... @@ -136,7 +131,28 @@ export default {
'icon-sort-up': !this.filterDown,
'icon-sort-down': this.filterDown
}
}
},
activeSort: {
get() {
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;
},
set(val) {
}
},
},
methods: {
toggleRec(){
... ...
... ... @@ -34,7 +34,7 @@ document.addEventListener('visibilitychange', function() {
store.commit(PAGE_INIT_VISIBLE, {visible: false});
setTimeout(() => {
store.commit(PAGE_INIT_VISIBLE, {visible: true});
}, 3000);
}, 500);
}
});
... ...