修复redefine color 和 B版品类null 保护。review by 张丽霞。
Showing
2 changed files
with
3 additions
and
3 deletions
@@ -97,8 +97,8 @@ export default class CategoryBList extends Component { | @@ -97,8 +97,8 @@ export default class CategoryBList extends Component { | ||
97 | } | 97 | } |
98 | 98 | ||
99 | renderRow(rowData, sectionID, rowID, highlightRow) { | 99 | renderRow(rowData, sectionID, rowID, highlightRow) { |
100 | - let selectText = rowData.get('category_name'); | ||
101 | - let selectId = rowData.get('category_id'); | 100 | + let selectText = rowData ? rowData.get('category_name') : ""; |
101 | + let selectId = rowData ? rowData.get('category_id') : ""; | ||
102 | 102 | ||
103 | let selectBg = this.props.currentCateId == selectId ? {backgroundColor: '#ffffff'} : {backgroundColor: '#f0f0f0'}; | 103 | let selectBg = this.props.currentCateId == selectId ? {backgroundColor: '#ffffff'} : {backgroundColor: '#f0f0f0'}; |
104 | 104 |
@@ -81,7 +81,7 @@ export default class VIPLevelHeader extends Component { | @@ -81,7 +81,7 @@ export default class VIPLevelHeader extends Component { | ||
81 | <View style={styles.nextLevelNeedProcess}> | 81 | <View style={styles.nextLevelNeedProcess}> |
82 | {VIPLevel == '3'?null: | 82 | {VIPLevel == '3'?null: |
83 | <View style={styles.nextLevelCost}> | 83 | <View style={styles.nextLevelCost}> |
84 | - <Text style={{color:'#b0b0b0',fontSize:13,color:'#b0b0b0'}}> | 84 | + <Text style={{color:'#b0b0b0',fontSize:13}}> |
85 | ¥0.00{vipInfo.next_need_cost} | 85 | ¥0.00{vipInfo.next_need_cost} |
86 | </Text> | 86 | </Text> |
87 | </View> | 87 | </View> |
-
Please register or login to post a comment