Authored by 沈志敏

Merge branch 'feature/home' into develop

@@ -64,7 +64,7 @@ const component = { @@ -64,7 +64,7 @@ const component = {
64 let testData = { 64 let testData = {
65 brandUrl: helpers.urlFormat('/product/new'), 65 brandUrl: helpers.urlFormat('/product/new'),
66 productUrl: helpers.urlFormat('/product/new') 66 productUrl: helpers.urlFormat('/product/new')
67 - } 67 + };
68 68
69 if (tab === 'brand') { 69 if (tab === 'brand') {
70 res.render('favorite-brand', _.merge({ 70 res.render('favorite-brand', _.merge({
@@ -84,22 +84,22 @@ const component = { @@ -84,22 +84,22 @@ const component = {
84 84
85 if (page > 2) return res.json([]); 85 if (page > 2) return res.json([]);
86 86
87 - let testData = [] 87 + let testData = [];
88 for (var i = 1; i <= 9; i++) { 88 for (var i = 1; i <= 9; i++) {
89 if (tab === 'brand') { 89 if (tab === 'brand') {
90 testData.push({ 90 testData.push({
91 fav_id: Number(page + i), 91 fav_id: Number(page + i),
92 - brandName: "品牌名测试" + Number(page + i), 92 + brandName: '品牌名测试' + Number(page + i),
93 invalidGoods: true 93 invalidGoods: true
94 - }) 94 + });
95 } else { 95 } else {
96 testData.push({ 96 testData.push({
97 fav_id: Number(page + i), 97 fav_id: Number(page + i),
98 - title: "商品名测试测试测试测试测试测试测试测试" + Number(page + i), 98 + title: '商品名测试测试测试测试测试测试测试测试' + Number(page + i),
99 invalidGoods: true, 99 invalidGoods: true,
100 discountPrice: '¥' + 900, 100 discountPrice: '¥' + 900,
101 price: '¥' + 990 101 price: '¥' + 990
102 - }) 102 + });
103 } 103 }
104 } 104 }
105 105
@@ -114,4 +114,4 @@ const component = { @@ -114,4 +114,4 @@ const component = {
114 } 114 }
115 }; 115 };
116 116
117 -module.exports = component;  
  117 +module.exports = component;
@@ -21,4 +21,4 @@ router.get('/favorite', home.favorite); // 个人中心 - 收藏 @@ -21,4 +21,4 @@ router.get('/favorite', home.favorite); // 个人中心 - 收藏
21 router.get('/favorite/favpaging', home.favpaging); // 个人中心 - 收藏商品/品牌(翻页) 21 router.get('/favorite/favpaging', home.favpaging); // 个人中心 - 收藏商品/品牌(翻页)
22 router.post('/favorite/favdel', home.favdel); // 个人中心 - 收藏商品/品牌(刪除) 22 router.post('/favorite/favdel', home.favdel); // 个人中心 - 收藏商品/品牌(刪除)
23 23
24 -module.exports = router;  
  24 +module.exports = router;
@@ -2,11 +2,11 @@ const Vue = require('yoho-vue'); @@ -2,11 +2,11 @@ const Vue = require('yoho-vue');
2 const infiniteScroll = require('yoho-vue-infinite-scroll'); 2 const infiniteScroll = require('yoho-vue-infinite-scroll');
3 const BrandList = require('home/fav-brand-list.vue'); 3 const BrandList = require('home/fav-brand-list.vue');
4 4
5 -Vue.use(infiniteScroll) 5 +Vue.use(infiniteScroll);
6 6
7 new Vue({ 7 new Vue({
8 el: '#fav-content', 8 el: '#fav-content',
9 components: { 9 components: {
10 'fav-brand-list': BrandList 10 'fav-brand-list': BrandList
11 } 11 }
12 -});  
  12 +});
@@ -2,11 +2,11 @@ const Vue = require('yoho-vue'); @@ -2,11 +2,11 @@ const Vue = require('yoho-vue');
2 const infiniteScroll = require('yoho-vue-infinite-scroll'); 2 const infiniteScroll = require('yoho-vue-infinite-scroll');
3 const ProductList = require('home/fav-product-list.vue'); 3 const ProductList = require('home/fav-product-list.vue');
4 4
5 -Vue.use(infiniteScroll) 5 +Vue.use(infiniteScroll);
6 6
7 new Vue({ 7 new Vue({
8 el: '#fav-content', 8 el: '#fav-content',
9 components: { 9 components: {
10 'fav-product-list': ProductList 10 'fav-product-list': ProductList
11 } 11 }
12 -});  
  12 +});
@@ -65,17 +65,14 @@ @@ -65,17 +65,14 @@
65 font-size: 34px; 65 font-size: 34px;
66 line-height: 88px; 66 line-height: 88px;
67 67
68 - span {  
69 - color: #e0e0e0;  
70 - float: right;  
71 - }  
72 -  
73 &.highlight { 68 &.highlight {
74 background: #eee; 69 background: #eee;
75 } 70 }
76 71
77 .read-order { 72 .read-order {
  73 + color: #b0b0b0;
78 font-size: 30px; 74 font-size: 30px;
  75 + float: right;
79 } 76 }
80 } 77 }
81 78