...
|
...
|
@@ -16,13 +16,13 @@ export default class MessageListOrderCell extends Component { |
|
|
constructor(props) {
|
|
|
super(props);
|
|
|
}
|
|
|
|
|
|
render() {
|
|
|
let itemData = this.props.itemData;
|
|
|
let body = itemData.get('body');
|
|
|
let imageUri = body ? body.get('img_url') : 'www.yohobuy.com';
|
|
|
let content = body ? body.get('content') : '';
|
|
|
let imageUri = body ? body.get('img_url','www.yohobuy.com') : 'www.yohobuy.com';
|
|
|
let content = body ? body.get('content','') : '';
|
|
|
imageUri = imageUri.replace('{width}', 46).replace('{height}', 60).replace('{mode}',2);
|
|
|
|
|
|
return(
|
|
|
<View style={styles.container}>
|
|
|
<View style={styles.contentContainer}>
|
...
|
...
|
@@ -47,7 +47,7 @@ export default class MessageListOrderCell extends Component { |
|
|
</View>
|
|
|
<MessageListCellFooter
|
|
|
onPressListItem={this.props.onPressListItem}
|
|
|
data={itemData}
|
|
|
itemData={itemData}
|
|
|
/>
|
|
|
</View>
|
|
|
)
|
...
|
...
|
@@ -80,7 +80,7 @@ let styles = StyleSheet.create({ |
|
|
marginLeft: 15,
|
|
|
marginTop: 10,
|
|
|
marginBottom: 10,
|
|
|
backgroundColor: 'red',
|
|
|
backgroundColor: 'transparent',
|
|
|
width: 46,
|
|
|
height: 60
|
|
|
},
|
...
|
...
|
|