Authored by chenl

修改了电子杂志的展示图片。review by 张亚宁。

... ... @@ -29,22 +29,27 @@ export default class Magazine extends Component {
renderRow(rowData,sectionID,rowID,highlightRow) {
if(rowID == 0){
return (
<Image style={styles.magazineImage} source={require('../../images/magazine1.png')} />
<Image style={styles.magazineImage} source={require('../../images/magazine0.jpg')} />
);
}
else if(rowID == 1){
return (
<Image style={styles.magazineImage} source={require('../../images/magazine2.png')} />
<Image style={styles.magazineImage} source={require('../../images/magazine1.jpg')} />
);
}
else if(rowID == 2){
return (
<Image style={styles.magazineImage} source={require('../../images/magazine3.png')} />
<Image style={styles.magazineImage} source={require('../../images/magazine2.jpg')} />
);
}
else if(rowID == 3){
return (
<Image style={styles.magazineImage} source={require('../../images/magazine1.png')} />
<Image style={styles.magazineImage} source={require('../../images/magazine3.jpg')} />
);
}
else if(rowID == 4){
return (
<Image style={styles.magazineImage} source={require('../../images/magazine4.jpg')} />
);
}
else
... ... @@ -57,7 +62,7 @@ export default class Magazine extends Component {
let content = "《YOHO!潮流志》、《YOHO!GIRL》是年轻人的潮流宝典,不仅网罗了方方面面的潮流讯息,"+
"亦会让你对话潮流明星和各大潮牌主理人,轻松掌握当季新品内容及背后故事,手把手教你如何变身潮人。";
let magazineData = [1,1,1];
let magazineData = [1,1,1,1,1];
return (
<ScrollView style={styles.container}>
... ... @@ -143,8 +148,8 @@ let styles = StyleSheet.create({
},
magazineImage:{
width: 106,
height: 190,
width: 108,
height: 193,
marginLeft: 3,
marginRight: 3,
},
... ...