Authored by chenl

修复了点击more分类名称undefine的问题,删除了log。review by shixiang。

... ... @@ -95,7 +95,7 @@ export default class CategoryBList extends Component {
let selectBg = this.props.currentCateId == selectId ? {backgroundColor: '#ffffff'} : {backgroundColor: '#f0f0f0'};
return (
<TouchableOpacity onPress={() => this.props.onSelectCategory && this.props.onSelectCategory(rowData.toJS(),rowID)}>
<TouchableOpacity activeOpacity={1} onPress={() => this.props.onSelectCategory && this.props.onSelectCategory(rowData.toJS(),rowID)}>
<View style={[styles.row, selectBg]} >
<Text style={styles.title} numberOfLines={1}>
{selectText}
... ...
... ... @@ -98,7 +98,6 @@ class CategoryBContainer extends Component {
}
_onPressCategoryBMore() {
console.log("chenlin","_onPressCategoryBMore");
let currentCateId = this.props.categoryB.currentCateId;
this.props.actions.pressCategoryBMore(currentCateId);
}
... ...
... ... @@ -85,7 +85,7 @@ export function pressCategoryBMore(category_id){
});
let all = {
category_name: "全部" + (category ? category.category_name : ""),
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,
... ... @@ -94,7 +94,7 @@ export function pressCategoryBMore(category_id){
console.log("chenlin", JSON.stringify(all));
//设置当前的类别信息
dispatch(setCurrentCateB(category_id, category.category_name));
dispatch(setCurrentCateB(category_id, category.get('category_name')));
dispatch(jumpToCategory(all, 0, categoryB.currentChannelId));
};
... ...