Authored by 石坚

camel个人中心

... ... @@ -66,7 +66,9 @@ const favorite = {
});
retData.categoryList.forEach(c => {
c.categoryId="categoryId" in c?c.categoryId:c.category_id;
c.checked = c.categoryId === sort;
c.categoryName="categoryName" in c?c.categoryName:c.category_name;
});
retData.products = data.product_list.filter(p => {
... ... @@ -89,7 +91,7 @@ const favorite = {
ret.content.banner = thumb;
}
res.display('index', ret);
res.display('index', ret);console.log(JSON.stringify(ret));
}).catch(next);
},
... ...
... ... @@ -11,7 +11,7 @@
<div class="clearfix product-list">
{{#each products}}
<div class="goods-info" data-id="{{productId}}">
<div class="goods-info" data-id="{{product_id}}">
<div class="choose-icon">
<span class="iconfont">&#xe646;</span>
</div>
... ... @@ -26,8 +26,8 @@
{{/stateText}}
</div>
<div class="desc">
<div class="brand-name"><a href="{{https url}}" target="_blank">{{brandName}}</a></div>
<div class="product-name"><a href="{{https url}}" target="_blank">{{productName}}</a></div>
<div class="brand-name"><a href="{{https url}}" target="_blank">{{brand_name}}</a></div>
<div class="product-name"><a href="{{https url}}" target="_blank">{{product_name}}</a></div>
<p class="price">¥{{round sales_price 2}}</p>
</div>
... ...
... ... @@ -25,9 +25,6 @@ module.exports = {
singleApi: 'http://single.yoho.cn/',
api: 'http://api.yoho.yohoops.org/',
service: 'http://service.yoho.yohoops.org/'
// api: 'http://api-test1.yohops.com:9999/',
// service: 'http://service-test1.yohops.com:9999/',
},
useOneapm: false,
useCache: false,
... ...