Authored by 郭成尧

Merge branch 'develop' of git.yoho.cn:fe/yohoblk-wap into develop

... ... @@ -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;
... ...
... ... @@ -21,4 +21,4 @@ router.get('/favorite', home.favorite); // 个人中心 - 收藏
router.get('/favorite/favpaging', home.favpaging); // 个人中心 - 收藏商品/品牌(翻页)
router.post('/favorite/favdel', home.favdel); // 个人中心 - 收藏商品/品牌(刪除)
module.exports = router;
\ No newline at end of file
module.exports = router;
... ...
... ... @@ -2,11 +2,11 @@ const Vue = require('yoho-vue');
const infiniteScroll = require('yoho-vue-infinite-scroll');
const BrandList = require('home/fav-brand-list.vue');
Vue.use(infiniteScroll)
Vue.use(infiniteScroll);
new Vue({
el: '#fav-content',
components: {
'fav-brand-list': BrandList
}
});
\ No newline at end of file
});
... ...
... ... @@ -2,11 +2,11 @@ const Vue = require('yoho-vue');
const infiniteScroll = require('yoho-vue-infinite-scroll');
const ProductList = require('home/fav-product-list.vue');
Vue.use(infiniteScroll)
Vue.use(infiniteScroll);
new Vue({
el: '#fav-content',
components: {
'fav-product-list': ProductList
}
});
\ No newline at end of file
});
... ...
... ... @@ -65,17 +65,14 @@
font-size: 34px;
line-height: 88px;
span {
color: #e0e0e0;
float: right;
}
&.highlight {
background: #eee;
}
.read-order {
color: #b0b0b0;
font-size: 30px;
float: right;
}
}
... ...