...
|
...
|
@@ -2,7 +2,7 @@ |
|
|
* @Author: Targaryen
|
|
|
* @Date: 2016-06-02 15:50:47
|
|
|
* @Last Modified by: Targaryen
|
|
|
* @Last Modified time: 2016-06-17 20:31:46
|
|
|
* @Last Modified time: 2016-06-20 21:08:36
|
|
|
*/
|
|
|
|
|
|
'use strict';
|
...
|
...
|
@@ -527,10 +527,9 @@ exports.handleSaleFilterData = (origin, params) => { |
|
|
}
|
|
|
};
|
|
|
|
|
|
let brandIndex = dest.brand.brandIndex;
|
|
|
|
|
|
// 品牌索引数据处理
|
|
|
for (let i = 65; i < 91; i++) {
|
|
|
brandIndex.push({
|
|
|
dest.brand.brandIndex.push({
|
|
|
index: String.fromCharCode(i).toLowerCase(),
|
|
|
name: String.fromCharCode(i)
|
|
|
});
|
...
|
...
|
@@ -593,28 +592,19 @@ exports.handleSaleFilterData = (origin, params) => { |
|
|
});
|
|
|
}
|
|
|
|
|
|
// 处理频道数据
|
|
|
for (let i = 0; i < 2; i++) {
|
|
|
dest.gender[i] = {};
|
|
|
|
|
|
dest.gender[i].checked = false;
|
|
|
}
|
|
|
|
|
|
Object.assign(dest.gender[0], {
|
|
|
name: 'BOYS',
|
|
|
href: handleFilterUrl(params, {
|
|
|
gender: '1,3'
|
|
|
}),
|
|
|
checked: params.gender === '1,3'
|
|
|
});
|
|
|
|
|
|
Object.assign(dest.gender[1], {
|
|
|
name: 'GIRLS',
|
|
|
href: handleFilterUrl(params, {
|
|
|
gender: '2,3'
|
|
|
}),
|
|
|
checked: params.gender === '2,3'
|
|
|
});
|
|
|
// 处理性别数据
|
|
|
dest.gender = [
|
|
|
{
|
|
|
name: 'BOYS',
|
|
|
href: handleFilterUrl(params, {gender: '1,3'}),
|
|
|
checked: params.gender === '1,3'
|
|
|
},
|
|
|
{
|
|
|
name: 'GIRLS',
|
|
|
href: handleFilterUrl(params, {gender: '2,3'}),
|
|
|
checked: params.gender === '2,3'
|
|
|
}
|
|
|
];
|
|
|
|
|
|
// 最新降价数据处理
|
|
|
if (parseInt(params.saleType, 10) === 3) {
|
...
|
...
|
|