...
|
...
|
@@ -63,12 +63,10 @@ export function getCategoryBSubCategoryDetail(category_id, category_value){ |
|
|
|
|
|
//未命中,访问网络数据
|
|
|
if (!categoryData) {
|
|
|
// console.log("chenlin", "未命中缓存,调用接口访问数据:" + key);
|
|
|
dispatch(getCategoryBSubDetail(currentChannelId, category_id));
|
|
|
}
|
|
|
//已命中,展示缓存数据
|
|
|
else{
|
|
|
// console.log("chenlin", "命中缓存:" + JSON.stringify(categoryData));
|
|
|
dispatch(getCategoryBSubDetailData(categoryData));
|
|
|
}
|
|
|
|
...
|
...
|
@@ -156,7 +154,7 @@ function parseCategoryBSubDetail(channel_id, category_id, subcategory_data, prop |
|
|
}
|
|
|
|
|
|
//分类信息不为空时,添加more
|
|
|
if(subcategory_data.sortInfo){
|
|
|
if(subcategory_data.sortInfo && subcategory_data.sortInfo.length > 0){
|
|
|
|
|
|
//获取当前频道下一级分类列表信息
|
|
|
let categoryData = props_data.categoryList.get(props_data.currentChannelValue);
|
...
|
...
|
@@ -170,7 +168,8 @@ function parseCategoryBSubDetail(channel_id, category_id, subcategory_data, prop |
|
|
});
|
|
|
|
|
|
let more = {
|
|
|
category_name: 'more',
|
|
|
show_category_name: 'more',
|
|
|
category_name: "全部" + (category ? category.get('category_name') : ''),
|
|
|
parent_id: category_id,
|
|
|
relation_parameter: category ? category.get('relation_parameter') : {},
|
|
|
node_count: category ? category.get('node_count') : 0,
|
...
|
...
|
@@ -183,9 +182,6 @@ function parseCategoryBSubDetail(channel_id, category_id, subcategory_data, prop |
|
|
|
|
|
let key = getSubDetailCacheKey(channel_id, category_id);
|
|
|
|
|
|
// console.log("chenlin", "parseCategoryBSubDetail处理后的JSON数据:" + JSON.stringify(data));
|
|
|
|
|
|
|
|
|
return {key: key, data: subcategory_data};
|
|
|
|
|
|
}
|
...
|
...
|
|