...
|
...
|
@@ -20,37 +20,63 @@ export default class Statistics extends Component { |
|
|
|
|
|
render() {
|
|
|
let {statisticsInfo} = this.props;
|
|
|
let currentTab = this.props.currentTab;
|
|
|
return (
|
|
|
<TouchableOpacity activeOpacity={1} style={styles.container} onPress={() => {
|
|
|
this.props.jumpWithUrl && this.props.jumpWithUrl('全部佣金', 'orderIncome');
|
|
|
}} >
|
|
|
|
|
|
<View style={styles.container}>
|
|
|
<View style={styles.statisticsView}>
|
|
|
<View style={{width: width / 2, paddingLeft: 30, marginTop: -10}}>
|
|
|
<Text style={styles.numberText}>¥{statisticsInfo.orderAmountSum}</Text>
|
|
|
<Text style={styles.tipsText}>预估订单佣金</Text>
|
|
|
</View>
|
|
|
|
|
|
<TouchableOpacity activeOpacity={1} style={styles.container} onPress={() => {
|
|
|
let url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.minealliance","params":{"title":"预估佣金","type":"estimateDetails","time_type":${currentTab}, "tab_type":"1"}}`;
|
|
|
this.props.resourceJumpWithUrl && this.props.resourceJumpWithUrl(url);
|
|
|
}} >
|
|
|
|
|
|
<View style={{width: width / 2, paddingLeft: 30, marginTop: -10}}>
|
|
|
<Text style={styles.numberText}>¥{statisticsInfo.orderAmountSum}</Text>
|
|
|
<Text style={styles.tipsText}>预估订单佣金</Text>
|
|
|
</View>
|
|
|
|
|
|
</TouchableOpacity>
|
|
|
|
|
|
<View style={styles.spaceView}/>
|
|
|
<View style={{width: width / 2, paddingLeft: 30, marginTop: -10}}>
|
|
|
<Text style={styles.numberText}>¥{statisticsInfo.extraAmountSum}</Text>
|
|
|
<Text style={styles.tipsText}>预估其他佣金</Text>
|
|
|
</View>
|
|
|
|
|
|
<TouchableOpacity activeOpacity={1} style={styles.container} onPress={() => {
|
|
|
let url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.minealliance","params":{"title":"预估佣金","type":"estimateDetails","time_type":${currentTab}, "tab_type":"2"}}`;
|
|
|
this.props.resourceJumpWithUrl && this.props.resourceJumpWithUrl(url);
|
|
|
}} >
|
|
|
|
|
|
<View style={{width: width / 2, paddingLeft: 30, marginTop: -10}}>
|
|
|
<Text style={styles.numberText}>¥{statisticsInfo.extraAmountSum}</Text>
|
|
|
<Text style={styles.tipsText}>预估其他佣金</Text>
|
|
|
</View>
|
|
|
|
|
|
</TouchableOpacity>
|
|
|
|
|
|
</View>
|
|
|
<View style={styles.lineView}/>
|
|
|
<View style={styles.statisticsView}>
|
|
|
<View style={{width: width / 2, paddingLeft: 30, marginTop: -10}}>
|
|
|
<Text style={styles.numberText}>{statisticsInfo.orderNum}</Text>
|
|
|
<Text style={styles.tipsText}>订单数</Text>
|
|
|
</View>
|
|
|
<View style={styles.spaceView}/>
|
|
|
<View style={{width: width / 2, paddingLeft: 30, marginTop: -10}}>
|
|
|
<Text style={styles.numberText}>{statisticsInfo.clickNum}</Text>
|
|
|
<Text style={styles.tipsText}>点击数</Text>
|
|
|
|
|
|
<TouchableOpacity activeOpacity={1} style={styles.container} onPress={() => {
|
|
|
let url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.minealliance","params":{"title":"全部佣金","type":"orderIncome"}}`;
|
|
|
this.props.resourceJumpWithUrl && this.props.resourceJumpWithUrl(url);
|
|
|
}} >
|
|
|
|
|
|
<View style={styles.statisticsView}>
|
|
|
<View style={{width: width / 2, paddingLeft: 30, marginTop: -10}}>
|
|
|
<Text style={styles.numberText}>{statisticsInfo.orderNum}</Text>
|
|
|
<Text style={styles.tipsText}>订单数</Text>
|
|
|
</View>
|
|
|
<View style={styles.spaceView}/>
|
|
|
<View style={{width: width / 2, paddingLeft: 30, marginTop: -10}}>
|
|
|
<Text style={styles.numberText}>{statisticsInfo.clickNum}</Text>
|
|
|
<Text style={styles.tipsText}>点击数</Text>
|
|
|
</View>
|
|
|
</View>
|
|
|
</View>
|
|
|
|
|
|
</TouchableOpacity>
|
|
|
|
|
|
|
|
|
<View style={styles.lineView}/>
|
|
|
</View>
|
|
|
</TouchableOpacity>
|
|
|
);
|
|
|
}
|
|
|
|
...
|
...
|
|