Authored by 于良

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

@@ -145,7 +145,7 @@ export default class TripleImageOneBigSide extends Component{ @@ -145,7 +145,7 @@ export default class TripleImageOneBigSide extends Component{
145 <View style={styles.subContainer}> 145 <View style={styles.subContainer}>
146 <TouchableOpacity yh_exposureData={yh_exposureData0} activeOpacity={1.0} style={styles.image} 146 <TouchableOpacity yh_exposureData={yh_exposureData0} activeOpacity={1.0} style={styles.image}
147 onPress={() => {this.props.onPressProduct && this.props.onPressProduct(url1,moduleOrder,moduleType,1)}} > 147 onPress={() => {this.props.onPressProduct && this.props.onPressProduct(url1,moduleOrder,moduleType,1)}} >
148 - <YH_Image url={backgroundImage1} style={[styles.image,{resizeMode: 'contain'}]}/> 148 + <YH_Image url={backgroundImage1} style={[styles.image,{resizeMode: 'cover'}]}/>
149 {linkType1=='1' && showProductInfo?<View style={styles.maskContainer1}> 149 {linkType1=='1' && showProductInfo?<View style={styles.maskContainer1}>
150 <Text style={styles.titleText} numberOfLines={2}>{name1}</Text> 150 <Text style={styles.titleText} numberOfLines={2}>{name1}</Text>
151 <View style={[styles.priceContainer,{marginRight: 10}]}> 151 <View style={[styles.priceContainer,{marginRight: 10}]}>
@@ -156,7 +156,7 @@ export default class TripleImageOneBigSide extends Component{ @@ -156,7 +156,7 @@ export default class TripleImageOneBigSide extends Component{
156 </TouchableOpacity> 156 </TouchableOpacity>
157 <TouchableOpacity yh_exposureData={yh_exposureData1} activeOpacity={1.0} style={styles.image} 157 <TouchableOpacity yh_exposureData={yh_exposureData1} activeOpacity={1.0} style={styles.image}
158 onPress={() => {this.props.onPressProduct && this.props.onPressProduct(url2,moduleOrder,moduleType,2)}} > 158 onPress={() => {this.props.onPressProduct && this.props.onPressProduct(url2,moduleOrder,moduleType,2)}} >
159 - <YH_Image url={backgroundImage2} style={[styles.image,{resizeMode: 'contain'}]}/> 159 + <YH_Image url={backgroundImage2} style={[styles.image,{resizeMode: 'cover'}]}/>
160 {linkType2=='1' && showProductInfo?<View style={styles.maskContainer1}> 160 {linkType2=='1' && showProductInfo?<View style={styles.maskContainer1}>
161 <Text style={styles.titleText} numberOfLines={2}>{name2}</Text> 161 <Text style={styles.titleText} numberOfLines={2}>{name2}</Text>
162 <View style={[styles.priceContainer,{marginRight: 10}]}> 162 <View style={[styles.priceContainer,{marginRight: 10}]}>
@@ -168,7 +168,7 @@ export default class TripleImageOneBigSide extends Component{ @@ -168,7 +168,7 @@ export default class TripleImageOneBigSide extends Component{
168 </View> 168 </View>
169 <TouchableOpacity yh_exposureData={yh_exposureData2} activeOpacity={1.0} style={styles.imageBig} 169 <TouchableOpacity yh_exposureData={yh_exposureData2} activeOpacity={1.0} style={styles.imageBig}
170 onPress={() => {this.props.onPressProduct && this.props.onPressProduct(url3,moduleOrder,moduleType,3)}} > 170 onPress={() => {this.props.onPressProduct && this.props.onPressProduct(url3,moduleOrder,moduleType,3)}} >
171 - <YH_Image url={backgroundImage3} style={[styles.imageBig,{resizeMode: 'contain'}]}/> 171 + <YH_Image url={backgroundImage3} style={[styles.imageBig,{resizeMode: 'cover'}]}/>
172 {linkType3=='1' && showProductInfo?<View style={styles.maskContainer2}> 172 {linkType3=='1' && showProductInfo?<View style={styles.maskContainer2}>
173 <Text style={styles.titleText} numberOfLines={2}>{name3}</Text> 173 <Text style={styles.titleText} numberOfLines={2}>{name3}</Text>
174 <View style={styles.priceContainer}> 174 <View style={styles.priceContainer}>
@@ -186,7 +186,7 @@ export default class TripleImageOneBigSide extends Component{ @@ -186,7 +186,7 @@ export default class TripleImageOneBigSide extends Component{
186 <TouchableOpacity yh_exposureData={yh_exposureData0} activeOpacity={1.0} 186 <TouchableOpacity yh_exposureData={yh_exposureData0} activeOpacity={1.0}
187 onPress={() => {this.props.onPressProduct && this.props.onPressProduct(url1,moduleOrder,moduleType,1)}} > 187 onPress={() => {this.props.onPressProduct && this.props.onPressProduct(url1,moduleOrder,moduleType,1)}} >
188 <View style={styles.subContainer}> 188 <View style={styles.subContainer}>
189 - <YH_Image url={backgroundImage1} style={[styles.imageBig,{resizeMode: 'contain'}]}/> 189 + <YH_Image url={backgroundImage1} style={[styles.imageBig,{resizeMode: 'cover'}]}/>
190 {linkType1=='1' && showProductInfo?<View style={styles.maskContainer2}> 190 {linkType1=='1' && showProductInfo?<View style={styles.maskContainer2}>
191 <Text style={styles.titleText} numberOfLines={2}>{name1}</Text> 191 <Text style={styles.titleText} numberOfLines={2}>{name1}</Text>
192 <View style={styles.priceContainer}> 192 <View style={styles.priceContainer}>
@@ -199,7 +199,7 @@ export default class TripleImageOneBigSide extends Component{ @@ -199,7 +199,7 @@ export default class TripleImageOneBigSide extends Component{
199 <View style={styles.subContainer}> 199 <View style={styles.subContainer}>
200 <TouchableOpacity yh_exposureData={yh_exposureData1} activeOpacity={1.0} style={styles.image} 200 <TouchableOpacity yh_exposureData={yh_exposureData1} activeOpacity={1.0} style={styles.image}
201 onPress={() => {this.props.onPressProduct && this.props.onPressProduct(url2,moduleOrder,moduleType,2)}} > 201 onPress={() => {this.props.onPressProduct && this.props.onPressProduct(url2,moduleOrder,moduleType,2)}} >
202 - <YH_Image url={backgroundImage2} style={[styles.image,{resizeMode: 'contain'}]}/> 202 + <YH_Image url={backgroundImage2} style={[styles.image,{resizeMode: 'cover'}]}/>
203 {linkType2=='1' && showProductInfo?<View style={styles.maskContainer1}> 203 {linkType2=='1' && showProductInfo?<View style={styles.maskContainer1}>
204 <Text style={styles.titleText} numberOfLines={2}>{name2}</Text> 204 <Text style={styles.titleText} numberOfLines={2}>{name2}</Text>
205 <View style={[styles.priceContainer,{marginRight: 10}]}> 205 <View style={[styles.priceContainer,{marginRight: 10}]}>
@@ -210,7 +210,7 @@ export default class TripleImageOneBigSide extends Component{ @@ -210,7 +210,7 @@ export default class TripleImageOneBigSide extends Component{
210 </TouchableOpacity> 210 </TouchableOpacity>
211 <TouchableOpacity yh_exposureData={yh_exposureData2} activeOpacity={1.0} style={styles.image} 211 <TouchableOpacity yh_exposureData={yh_exposureData2} activeOpacity={1.0} style={styles.image}
212 onPress={() => {this.props.onPressProduct && this.props.onPressProduct(url3,moduleOrder,moduleType,3)}} > 212 onPress={() => {this.props.onPressProduct && this.props.onPressProduct(url3,moduleOrder,moduleType,3)}} >
213 - <YH_Image url={backgroundImage3} style={[styles.image,{resizeMode: 'contain'}]}/> 213 + <YH_Image url={backgroundImage3} style={[styles.image,{resizeMode: 'cover'}]}/>
214 {linkType3=='1' && showProductInfo?<View style={styles.maskContainer1}> 214 {linkType3=='1' && showProductInfo?<View style={styles.maskContainer1}>
215 <Text style={styles.titleText} numberOfLines={2}>{name3}</Text> 215 <Text style={styles.titleText} numberOfLines={2}>{name3}</Text>
216 <View style={[styles.priceContainer, {marginRight: 10}]}> 216 <View style={[styles.priceContainer, {marginRight: 10}]}>