...
|
...
|
@@ -45,7 +45,7 @@ export default class PopularSingleProduct extends Component{ |
|
|
onPress={() => this.props.onPressImageItem && this.props.onPressImageItem(rowData.toJS())}>
|
|
|
|
|
|
<View style={styles.goodsContainer}>
|
|
|
<YH_Image style={styles.goodsImage} url={goodsImageUrl} />
|
|
|
<YH_Image style={styles.goodsImage} url={goodsImageUrl} />
|
|
|
<Text style={styles.goodsPrice} numberOfLines={1}>{goodsPrice}</Text>
|
|
|
<Text style={styles.goodsLookNum} numberOfLines={1}>{goodsLookNum}</Text>
|
|
|
<Text style={styles.goodsLookNum} numberOfLines={1}>正在浏览</Text>
|
...
|
...
|
@@ -71,9 +71,8 @@ export default class PopularSingleProduct extends Component{ |
|
|
|
|
|
// let bannerImageUrl = SlicedImage.getSlicedUrl(bannerImage.get(0).get("src"), width, bannerHeight, 2);
|
|
|
|
|
|
let containerHeight = 40 + bannerHeight + 202;
|
|
|
return(
|
|
|
<View style={[styles.container, {height: containerHeight}]}>
|
|
|
<View style={styles.container}>
|
|
|
<HeadTitleCell title={title.get('title')} moreUrl={title.get('more_url')} onPressTitleMore={this.props.onPressTitleMore} />
|
|
|
<ImageSlider
|
|
|
resource={banner}
|
...
|
...
|
@@ -100,11 +99,14 @@ let bannerHeight = Math.ceil(width * 234 / 750); |
|
|
let goodsImageWidth = Math.ceil(90);
|
|
|
let goodsImageHeight = Math.ceil(120);
|
|
|
width = Math.ceil(width);
|
|
|
let containerHeight = 40 + bannerHeight + 202;
|
|
|
|
|
|
|
|
|
let styles = StyleSheet.create({
|
|
|
|
|
|
container: {
|
|
|
width: width,
|
|
|
height: containerHeight,
|
|
|
backgroundColor: 'white'
|
|
|
},
|
|
|
|
...
|
...
|
@@ -126,7 +128,7 @@ let styles = StyleSheet.create({ |
|
|
height: 178,
|
|
|
marginLeft: 11,
|
|
|
borderRadius: 3,
|
|
|
backgroundColor: 'white',
|
|
|
backgroundColor: '#f0f0f0',
|
|
|
},
|
|
|
|
|
|
goodsImage: {
|
...
|
...
|
|