Authored by chenl

修改品类B版的Image为YH_Image。review by zhuangjiajia。

... ... @@ -17,6 +17,8 @@ import ReactNative, {
import immutable from 'immutable';
import HotCategoryList from './HotCategoryList';
import HotBrandList from './HotBrandList';
import YH_Image from '../../../common/components/YH_Image';
export default class CategoryBList extends Component {
... ... @@ -61,7 +63,7 @@ export default class CategoryBList extends Component {
return(
<TouchableOpacity activeOpacity={0.8} onPress={() => {
this.props.onPressBannerResourceItem && this.props.onPressBannerResourceItem(url)}}>
<Image style={styles.banner} source={{uri: imageSrc}}/>
<YH_Image style={styles.banner} url={imageSrc}/>
</TouchableOpacity>
);
}
... ...
... ... @@ -2,6 +2,7 @@
import React, {Component} from 'react';
import SlicedImage from '../../../common/components/SlicedImage';
import YH_Image from '../../../common/components/YH_Image';
import ReactNative, {
View,
... ... @@ -52,7 +53,7 @@ export default class HotBrandList extends Component{
return (
<TouchableOpacity onPress={() => this.props.onPressHotBrandItem && this.props.onPressHotBrandItem(rowData.toJS(), rowID)}>
<View style={styles.rowContainer}>
<View style={styles.rowImageContainer}><Image style={styles.rowThumbnail} key={imageUrl} source={{uri: imageUrl}}/></View>
<View style={styles.rowImageContainer}><YH_Image style={styles.rowThumbnail} key={imageUrl} url={imageUrl}/></View>
<Text style={styles.rowText} numberOfLines={1}>{brandName}</Text>
</View>
</TouchableOpacity>
... ...
... ... @@ -2,6 +2,7 @@
import React, {Component} from 'react';
import SlicedImage from '../../../common/components/SlicedImage';
import YH_Image from '../../../common/components/YH_Image';
import ReactNative, {
View,
... ... @@ -65,7 +66,7 @@ export default class HotCategoryList extends Component{
return (
<TouchableOpacity onPress={() => this.props.onPressHotCategoryItem && this.props.onPressHotCategoryItem(rowData.toJS(),rowID)}>
<View style={styles.rowContainer}>
{hasImage ? <Image style={styles.rowThumbnail} key={imageUrl} source={{uri:imageUrl}}/>
{hasImage ? <YH_Image style={styles.rowThumbnail} key={imageUrl} url={imageUrl}/>
: <View style={styles.rowDefaultImageContainer}><Image style={styles.rowDefaultImage} source={require('../../images/yoho_icon.png')}/></View>}
<View style={styles.rowTextContainer}><Text style={styles.rowText} numberOfLines={2}>{rowData.get("category_name")}</Text></View>
</View>
... ...