Authored by chenl

调整了我的个人中心资源位高度。review by 孙凯。

... ... @@ -119,10 +119,9 @@ export default class MineListHeader extends React.Component {
return(
<MineResourceList
style={{width:width,height:500}}
style={{width: width,height: bannerResourceHeight}}
mineResource={this.props.mineResource}
onPressFloorItem={this.props.onPressFloorItem}>
</MineResourceList>
onPressFloorItem={this.props.onPressFloorItem} />
);
}
... ... @@ -206,9 +205,9 @@ export default class MineListHeader extends React.Component {
//资源位高度
if (this.props.mineResource) {
let floorHeight = this._calculateBannerResourceHeight();
oHigh = oHigh + floorHeight;
}
bannerResourceHeight = this._calculateBannerResourceHeight();
oHigh = oHigh + bannerResourceHeight;
}
oHigh = topHeight + oHigh;
let bgImage = Platform.OS === 'ios' ? require('../../image/mine_top_boy.png') : require('../../image/mine_banner_boy.jpg');
... ... @@ -742,6 +741,7 @@ let subRowHeight = Math.ceil(35 * DEVICE_WIDTH_RATIO);//账号安全 通知层
let rowheight = 45;//wo的订单类似的高度,我的逛也用这个高度
let orderContainerHeight = 55;
let topHeight = 175 + rowheight + orderContainerHeight + 10 + rowheight + orderContainerHeight + 1 + 10 + rowheight * 3 + 91;
let bannerResourceHeight = 0;
let orderContentWidth = (width - 10) / 5;
let assetContentWidth = (width - 10) / 4;
... ...
... ... @@ -79,14 +79,13 @@ export default class MineResourceList extends React.Component {
let dataSource = mineResource.toArray();
return (
<View style={styles.container}>
<ListView
contentContainerStyle={styles.contentContainer}
enableEmptySections={true}
dataSource={this.dataSource.cloneWithRows(dataSource)}
renderRow={this._renderRow}
/>
</View>
<ListView
style={styles.container}
contentContainerStyle={styles.contentContainer}
enableEmptySections={true}
dataSource={this.dataSource.cloneWithRows(dataSource)}
renderRow={this._renderRow}
/>
);
}
};
... ... @@ -94,7 +93,7 @@ export default class MineResourceList extends React.Component {
let {width, height} = Dimensions.get('window');
let styles = StyleSheet.create({
container: {
width: width,
flex: 1,
},
contentContainer: {
... ...