Authored by biao

update for fixing bug

... ... @@ -195,6 +195,9 @@ const _getPreBrandTopData = (args, type) => {
};
data.preferenceBrands.imgBrand = item;
if (type === 'kids') {
data.preferenceBrands.sliderColor = '#7AD3F8';
}
_setChannelType(data.preferenceBrands, type);
... ... @@ -739,7 +742,9 @@ const getNewArrival = channel => {
result = [];
_.forEach(sortList, (it, index) => {
if (res[index].data.product_list && res[index].data.product_list.length === sortList[index].viewNum) {
if (res[index].data &&
res[index].data.product_list &&
res[index].data.product_list.length === sortList[index].viewNum) {
data = data.concat(res[index].data.product_list);
}
});
... ...
... ... @@ -64,7 +64,7 @@ if (isProduction) {
domains: {
api: 'http://api.yoho.yohoops.org/',
service: 'http://service.yoho.yohoops.org/',
search: 'http://api.yoho.yohoops.org/'
search: 'http://search.yohoops.org/yohosearch/'
},
memcache: {
master: ['memcache1.yohoops.org:12111', 'memcache2.yohoops.org:12111', 'memcache3.yohoops.org:12111'],
... ...