Authored by 孙凯

修改布局 review by 红魔

... ... @@ -48,20 +48,21 @@ export default class OneRowTwoColImages extends React.Component {
}
};
let width = (Dimensions.get('window').width - 45)/2;
let heigth = (9*width)/16;
const styles = StyleSheet.create({
thumbnail: {
width: 160,
height: 90,
width: width,
height: heigth,
borderRadius: 10,
marginLeft: 15,
},
viewStyle:{
padding: 10,
flexDirection: 'row',
alignItems: 'center',
alignSelf: 'flex-start',
justifyContent: 'space-around',
width: Dimensions.get('window').width,
height:130,
backgroundColor:'#f0f0f0',
height: heigth + 30,
backgroundColor: '#f0f0f0',
},
});
... ...
... ... @@ -27,12 +27,11 @@ export default class ShopTopBanner extends React.Component {
if (backgroundImage === '') {
return null;
}
let icon = info.shop_logo.replace('{width}', 100).replace('{height}', 100); // 商品缩略图
let name = info.shop_name;
let buttonIcon = require('../../../../image/btn_gz_p.png');
if (!this.props.info.is_addFav) {
buttonIcon = require('../../../../image/btn_gz_n.png');
}
let name = info.is_show_shop_name == 'N'?info.shop_name:null;
let buttonIcon = this.props.info.is_addFav?require('../../../../image/btn_gz_p.png'):require('../../../../image/btn_gz_n.png');
return (
<View style={{width: backgroundWidth, height:backgroundHeight}}>
... ...