Authored by 于良

图片展示模式调整 review by 孙凯

... ... @@ -145,7 +145,7 @@ export default class TripleImageOneBigSide extends Component{
<View style={styles.subContainer}>
<TouchableOpacity yh_exposureData={yh_exposureData0} activeOpacity={1.0} style={styles.image}
onPress={() => {this.props.onPressProduct && this.props.onPressProduct(url1,moduleOrder,moduleType,1)}} >
<YH_Image url={backgroundImage1} style={[styles.image,{resizeMode: 'contain'}]}/>
<YH_Image url={backgroundImage1} style={[styles.image,{resizeMode: 'cover'}]}/>
{linkType1=='1' && showProductInfo?<View style={styles.maskContainer1}>
<Text style={styles.titleText} numberOfLines={2}>{name1}</Text>
<View style={[styles.priceContainer,{marginRight: 10}]}>
... ... @@ -156,7 +156,7 @@ export default class TripleImageOneBigSide extends Component{
</TouchableOpacity>
<TouchableOpacity yh_exposureData={yh_exposureData1} activeOpacity={1.0} style={styles.image}
onPress={() => {this.props.onPressProduct && this.props.onPressProduct(url2,moduleOrder,moduleType,2)}} >
<YH_Image url={backgroundImage2} style={[styles.image,{resizeMode: 'contain'}]}/>
<YH_Image url={backgroundImage2} style={[styles.image,{resizeMode: 'cover'}]}/>
{linkType2=='1' && showProductInfo?<View style={styles.maskContainer1}>
<Text style={styles.titleText} numberOfLines={2}>{name2}</Text>
<View style={[styles.priceContainer,{marginRight: 10}]}>
... ... @@ -168,7 +168,7 @@ export default class TripleImageOneBigSide extends Component{
</View>
<TouchableOpacity yh_exposureData={yh_exposureData2} activeOpacity={1.0} style={styles.imageBig}
onPress={() => {this.props.onPressProduct && this.props.onPressProduct(url3,moduleOrder,moduleType,3)}} >
<YH_Image url={backgroundImage3} style={[styles.imageBig,{resizeMode: 'contain'}]}/>
<YH_Image url={backgroundImage3} style={[styles.imageBig,{resizeMode: 'cover'}]}/>
{linkType3=='1' && showProductInfo?<View style={styles.maskContainer2}>
<Text style={styles.titleText} numberOfLines={2}>{name3}</Text>
<View style={styles.priceContainer}>
... ... @@ -186,7 +186,7 @@ export default class TripleImageOneBigSide extends Component{
<TouchableOpacity yh_exposureData={yh_exposureData0} activeOpacity={1.0}
onPress={() => {this.props.onPressProduct && this.props.onPressProduct(url1,moduleOrder,moduleType,1)}} >
<View style={styles.subContainer}>
<YH_Image url={backgroundImage1} style={[styles.imageBig,{resizeMode: 'contain'}]}/>
<YH_Image url={backgroundImage1} style={[styles.imageBig,{resizeMode: 'cover'}]}/>
{linkType1=='1' && showProductInfo?<View style={styles.maskContainer2}>
<Text style={styles.titleText} numberOfLines={2}>{name1}</Text>
<View style={styles.priceContainer}>
... ... @@ -199,7 +199,7 @@ export default class TripleImageOneBigSide extends Component{
<View style={styles.subContainer}>
<TouchableOpacity yh_exposureData={yh_exposureData1} activeOpacity={1.0} style={styles.image}
onPress={() => {this.props.onPressProduct && this.props.onPressProduct(url2,moduleOrder,moduleType,2)}} >
<YH_Image url={backgroundImage2} style={[styles.image,{resizeMode: 'contain'}]}/>
<YH_Image url={backgroundImage2} style={[styles.image,{resizeMode: 'cover'}]}/>
{linkType2=='1' && showProductInfo?<View style={styles.maskContainer1}>
<Text style={styles.titleText} numberOfLines={2}>{name2}</Text>
<View style={[styles.priceContainer,{marginRight: 10}]}>
... ... @@ -210,7 +210,7 @@ export default class TripleImageOneBigSide extends Component{
</TouchableOpacity>
<TouchableOpacity yh_exposureData={yh_exposureData2} activeOpacity={1.0} style={styles.image}
onPress={() => {this.props.onPressProduct && this.props.onPressProduct(url3,moduleOrder,moduleType,3)}} >
<YH_Image url={backgroundImage3} style={[styles.image,{resizeMode: 'contain'}]}/>
<YH_Image url={backgroundImage3} style={[styles.image,{resizeMode: 'cover'}]}/>
{linkType3=='1' && showProductInfo?<View style={styles.maskContainer1}>
<Text style={styles.titleText} numberOfLines={2}>{name3}</Text>
<View style={[styles.priceContainer, {marginRight: 10}]}>
... ...