Authored by chenl

修复了品牌logo 被裁减的问题和品类跳转的问题。review by shixiang。

... ... @@ -60,7 +60,7 @@ export function selectCategoryB(category){
node_count: category.node_count,
};
//设置当前的类别信息
dispatch(setCurrentCateB(categoryId, categoryValue));
//dispatch(setCurrentCateB(categoryId, categoryValue));
dispatch(jumpToCategory(all, 0, categoryB.currentChannelId));
}
};
... ...
... ... @@ -16,8 +16,8 @@ export function getSlicedUrl(src, width, height, mode = 1) {
newSrc = src + '?imageView2/' + mode + '/w/' + width + '/h/' + height;
} else {
newSrc = src.replace('{mode}', mode)
.replace('{width}', width)
.replace('{height}', height);
.replace(/{width}/g, width)
.replace(/{height}/g, height);
}
return newSrc;
}
... ...