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