Authored by 陈林

type值匹配修改

@@ -22,18 +22,18 @@ export default class EstimateIncome extends Component { @@ -22,18 +22,18 @@ export default class EstimateIncome extends Component {
22 _renderRow(rowData, sectionID, rowID) { 22 _renderRow(rowData, sectionID, rowID) {
23 let status = rowData.get('status') === '10' ? '待结算' : ''; 23 let status = rowData.get('status') === '10' ? '待结算' : '';
24 24
25 - console.log('+++++++++++++++++:',this.state.tabType); 25 + console.log(this.state.tabType);
26 return ( 26 return (
27 <View> 27 <View>
28 <TouchableOpacity activeOpacity={1} onPress={() => { 28 <TouchableOpacity activeOpacity={1} onPress={() => {
29 - this.props.jumpWithUrl && (this.state.tabType === 1 ? this.props.jumpWithUrl('订单详情', 'orderDetail', rowData.get('orderCode')) : this.props.jumpWithUrl('佣金详情', 'activityOrderDetail', rowData.get('id')) ); 29 + this.props.jumpWithUrl && (this.state.tabType === "1" ? this.props.jumpWithUrl('订单详情', 'orderDetail', rowData.get('orderCode')) : this.props.jumpWithUrl('佣金详情', 'activityOrderDetail', rowData.get('id')) );
30 }}> 30 }}>
31 <View style={styles.rowView}> 31 <View style={styles.rowView}>
32 <View style={{height: 70, paddingTop: 12, paddingBottom: 12}}> 32 <View style={{height: 70, paddingTop: 12, paddingBottom: 12}}>
33 - { this.state.tabType === 1 ? <Text style={styles.numberText}>订单金额:{rowData.get('lastOrderAmountStr')}</Text> : <Text style={styles.numberText}>活动名称:{rowData.get('activityName')}</Text>} 33 + { this.state.tabType === "1" ? <Text style={styles.numberText}>订单金额:{rowData.get('lastOrderAmountStr')}</Text> : <Text style={styles.numberText}>活动名称:{rowData.get('activityName')}</Text>}
34 <View style={{flexDirection: 'row', marginTop: 6}}> 34 <View style={{flexDirection: 'row', marginTop: 6}}>
35 <Text style={styles.timeText}>{rowData.get('orderTimeStr')}</Text> 35 <Text style={styles.timeText}>{rowData.get('orderTimeStr')}</Text>
36 - {rowData.get('isNew') === 1 && this.state.tabType === 1 ? 36 + {rowData.get('isNew') === 1 && this.state.tabType === "1" ?
37 <View style={styles.statusTextContainer}> 37 <View style={styles.statusTextContainer}>
38 <Text style={styles.statusText}>新客订单</Text> 38 <Text style={styles.statusText}>新客订单</Text>
39 </View>: null} 39 </View>: null}