...
|
...
|
@@ -27,30 +27,30 @@ exports.init = function() { |
|
|
|
|
|
//筛选相关变量
|
|
|
var curFilter = {
|
|
|
brand: 0,
|
|
|
msort: 0,
|
|
|
color: 0,
|
|
|
size: 0,
|
|
|
price: 0,
|
|
|
discount: 0
|
|
|
brand: '',
|
|
|
msort: '',
|
|
|
color: '',
|
|
|
size: '',
|
|
|
price: '',
|
|
|
discount: ''
|
|
|
},
|
|
|
navInfo = {
|
|
|
newest: {
|
|
|
direction: 1, //排序方向;NOTE:最新保持升序排序
|
|
|
reload: false, //是否需要重新加载
|
|
|
deviation: $npc.children('.good-info').length,
|
|
|
start: 1,
|
|
|
end: false
|
|
|
},
|
|
|
sale: {
|
|
|
direction: 0, //销量降序排列
|
|
|
reload: true,
|
|
|
deviation: 0,
|
|
|
start: 0,
|
|
|
end: false
|
|
|
},
|
|
|
price: {
|
|
|
direction: 1,
|
|
|
reload: true,
|
|
|
deviation: 0,
|
|
|
start: 0,
|
|
|
end: false
|
|
|
}
|
|
|
},
|
...
|
...
|
@@ -139,11 +139,13 @@ exports.init = function() { |
|
|
$.extend(setting, curFilter, {
|
|
|
type: type,
|
|
|
direction: nav.direction,
|
|
|
deviation: nav.deviation
|
|
|
start: nav.start,
|
|
|
promotionId: promotionId,
|
|
|
clientType: clientType,
|
|
|
});
|
|
|
|
|
|
if (nav.reload) {
|
|
|
setting.deviation = 0;
|
|
|
setting.start = 0;
|
|
|
} else if (nav.end) {
|
|
|
//不需要重新加载并且数据请求结束
|
|
|
return;
|
...
|
...
|
|