...
|
...
|
@@ -22,8 +22,8 @@ export default class ActivityOrderDetail extends Component { |
|
|
let orderCodes = this.props.orderDetail.orderCodes ? this.props.orderDetail.orderCodes.toArray() : [];
|
|
|
let orderCodeStr = '';
|
|
|
|
|
|
orderCodes&& orderCodes.map(orderCode =>
|
|
|
orderCodeStr = orderCodeStr + orderCode+'\n'
|
|
|
orderCodes&& orderCodes.map((orderCode, itemindex) =>
|
|
|
orderCodeStr = orderCodeStr + orderCode + (itemindex < orderCodes.length - 1 ? '\n' : '')
|
|
|
)
|
|
|
|
|
|
return (
|
...
|
...
|
@@ -34,18 +34,20 @@ export default class ActivityOrderDetail extends Component { |
|
|
<View style={styles.lineView}/>
|
|
|
<View style={styles.content}>
|
|
|
<Text style={styles.contentText}>活动名称:{this.props.orderDetail.activityName}</Text>
|
|
|
<Text style={styles.contentText}>活动时间:{this.props.orderDetail.timeStr}</Text>
|
|
|
<View style={{flexDirection: 'row',width:width, overflow:'hidden'}}>
|
|
|
<Text style={styles.contentText}>活动时间:</Text>
|
|
|
<Text style={styles.contentText} numberOfLines={2}>{this.props.orderDetail.timeStr}</Text>
|
|
|
</View>
|
|
|
<View style={{flexDirection: 'row'}}>
|
|
|
<Text style={styles.contentText}>收益金额:</Text>
|
|
|
<Text style={[styles.contentText, {fontWeight: 'bold', color: '#D0021B'}]}>{this.props.orderDetail.amountStr}</Text>
|
|
|
</View>
|
|
|
<View style={{flexDirection: 'row'}}>
|
|
|
<Text style={styles.contentText}>订单编号:</Text>
|
|
|
<Text style={styles.contentText} numberOfLines={orderCodes.length}>{orderCodeStr}</Text>
|
|
|
<Text style={[styles.contentText, {lineHeight: 18, paddingBottom: 0}]} numberOfLines={orderCodes.length}>{orderCodeStr}</Text>
|
|
|
</View>
|
|
|
|
|
|
</View>
|
|
|
<View style={{height: 10, backgroundColor: '#f0f0f0'}}/>
|
|
|
</View>
|
|
|
)
|
|
|
}
|
...
|
...
|
@@ -86,6 +88,7 @@ let styles = StyleSheet.create({ |
|
|
content: {
|
|
|
width: width,
|
|
|
// height: 180,
|
|
|
overflow:'hidden',
|
|
|
padding: 15,
|
|
|
backgroundColor: '#FFFFFF',
|
|
|
},
|
...
|
...
|
|