Authored by 梁志锋

update

... ... @@ -36,21 +36,25 @@ var $listNav = $('#list-nav'),
//导航数据信息
navInfo = {
discount13: {
order: 0,
reload: true,
page: 0,
end: false
},
discount46: {
order: 0,
reload: true,
page: 0,
end: false
},
discount79: {
order: 0,
reload: true,
page: 0,
end: false
},
all: {
order: 0,
reload: true,
page: 0,
end: false
... ... @@ -171,6 +175,7 @@ function search(opt) {
}
$.extend(setting, defaultOpt, {
order: nav.order,
page: page
});
... ... @@ -273,9 +278,9 @@ $listNav.delegate('li', 'touchstart', function() {
if ($this.hasClass('active')) {
// 价格/折扣切换排序状态
// 折扣切换排序状态
$this.find('.icon > .iconfont').toggleClass('cur');
$pre = $this; //更新pre为当前项
$pre = $this;
nav.reload = true; //重置reload,HTML会被替换为逆序的HTML
nav.order = nav.order === 0 ? 1 : 0; //切换排序
... ...