...
|
...
|
@@ -31,18 +31,18 @@ export default class AccountSettlement extends Component { |
|
|
this.renderRow = this.renderRow.bind(this);
|
|
|
}
|
|
|
|
|
|
renderRow(Data,sectionId) {
|
|
|
console.log(Data);
|
|
|
renderRow(rowData,sectionId) {
|
|
|
console.log(rowData);
|
|
|
switch (sectionId) {
|
|
|
|
|
|
case 'SECTION_HEADER':
|
|
|
return (
|
|
|
<View style={styles.headerContainer}>
|
|
|
<Text style={[styles.commonText, styles.headerText]}>
|
|
|
{Data.title}
|
|
|
{rowData.title}
|
|
|
</Text>
|
|
|
<Text style={[styles.valueText, styles.headerText]}>
|
|
|
{Data.content}
|
|
|
{rowData.content}
|
|
|
</Text>
|
|
|
</View>
|
|
|
);
|
...
|
...
|
@@ -67,30 +67,30 @@ export default class AccountSettlement extends Component { |
|
|
|
|
|
</View>
|
|
|
);
|
|
|
case 'SECTION_CONTENT':
|
|
|
case 'SECTION_CONTENT':
|
|
|
let statusStr = '';
|
|
|
switch (rowData.status) {
|
|
|
case 1:
|
|
|
statusStr = '已出账单';
|
|
|
break;
|
|
|
case 2:
|
|
|
statusStr = '已付款';
|
|
|
break;
|
|
|
|
|
|
}
|
|
|
return (
|
|
|
let statusStr = '';
|
|
|
switch (Data.status) {
|
|
|
case 1:
|
|
|
statusStr = '已出账单';
|
|
|
break;
|
|
|
case 2:
|
|
|
statusStr = '已付款';
|
|
|
break;
|
|
|
default:
|
|
|
|
|
|
}
|
|
|
<View style={styles.cellContainer}>
|
|
|
<Text style={[styles.inCellText,{flex:0.9}]}>{Data.brandId}</Text>
|
|
|
<Text style={[styles.inCellText,{flex:1.0}]}>{Data.dateId}</Text>
|
|
|
<Text style={[styles.inCellText,{flex:0.9}]}>{rowData.brandId}</Text>
|
|
|
<Text style={[styles.inCellText,{flex:1.0}]}>{rowData.dateId}</Text>
|
|
|
<Text style={[styles.inCellText,{flex:0.8}]}>{statusStr}</Text>
|
|
|
<Text style={[styles.inCellText,{flex:1.3}]}>{Data.orderAmount}</Text>
|
|
|
<Text style={[styles.inCellText,{flex:1.3}]}>{rowData.orderAmount}</Text>
|
|
|
</View>
|
|
|
);
|
|
|
}
|
|
|
|
|
|
return (<Text>Error data source</Text>);
|
|
|
}
|
|
|
|
|
|
render() {
|
|
|
|
|
|
let isFetching = this.props.isFetching;
|
...
|
...
|
|