Authored by chenl

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

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