...
|
...
|
@@ -64,7 +64,7 @@ const component = { |
|
|
let testData = {
|
|
|
brandUrl: helpers.urlFormat('/product/new'),
|
|
|
productUrl: helpers.urlFormat('/product/new')
|
|
|
}
|
|
|
};
|
|
|
|
|
|
if (tab === 'brand') {
|
|
|
res.render('favorite-brand', _.merge({
|
...
|
...
|
@@ -84,22 +84,22 @@ const component = { |
|
|
|
|
|
if (page > 2) return res.json([]);
|
|
|
|
|
|
let testData = []
|
|
|
let testData = [];
|
|
|
for (var i = 1; i <= 9; i++) {
|
|
|
if (tab === 'brand') {
|
|
|
testData.push({
|
|
|
fav_id: Number(page + i),
|
|
|
brandName: "品牌名测试" + Number(page + i),
|
|
|
brandName: '品牌名测试' + Number(page + i),
|
|
|
invalidGoods: true
|
|
|
})
|
|
|
});
|
|
|
} else {
|
|
|
testData.push({
|
|
|
fav_id: Number(page + i),
|
|
|
title: "商品名测试测试测试测试测试测试测试测试" + Number(page + i),
|
|
|
title: '商品名测试测试测试测试测试测试测试测试' + Number(page + i),
|
|
|
invalidGoods: true,
|
|
|
discountPrice: '¥' + 900,
|
|
|
price: '¥' + 990
|
|
|
})
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -114,4 +114,4 @@ const component = { |
|
|
}
|
|
|
};
|
|
|
|
|
|
module.exports = component; |
|
|
\ No newline at end of file |
|
|
module.exports = component; |
...
|
...
|
|