|
|
import React, {Component } from 'react'
|
|
|
import { Image ,View, StyleSheet, Text, Dimensions,TouchableOpacity} from 'react-native';
|
|
|
import {View, StyleSheet, Text, Dimensions,TouchableOpacity} from 'react-native';
|
|
|
import Immutable, {Map} from 'immutable';
|
|
|
import YH_Image from '../../../common/components/YH_Image';
|
|
|
|
|
|
export default class RedPersonPicThree extends Component{
|
|
|
constructor(props) {
|
...
|
...
|
@@ -68,28 +69,28 @@ export default class RedPersonPicThree extends Component{ |
|
|
return (
|
|
|
<View style={{flexDirection: 'row',width:width,height: isModuleMargin=='1'?containerHeigth4+nullHeigth:containerHeigth4,backgroundColor: 'white'}}>
|
|
|
<TouchableOpacity style={styles.imagetype4} onPress={() => {this.props.onPressProduct && this.props.onPressProduct(linkType1,linkReource1)}} >
|
|
|
<Image source={{uri: backgroundImage1}} style={styles.imagetype4}>
|
|
|
<YH_Image url={backgroundImage1} style={styles.imagetype4}>
|
|
|
{saleAble1?<View style={styles.maskContainer4}>
|
|
|
<Text numberOfLines={1} style={styles.titleText4}>{name1}</Text>
|
|
|
<Text style={styles.price4}>{price1}</Text>
|
|
|
</View>:null}
|
|
|
</Image>
|
|
|
</YH_Image>
|
|
|
</TouchableOpacity>
|
|
|
<TouchableOpacity style={styles.imagetype4} onPress={() => {this.props.onPressProduct && this.props.onPressProduct(linkType2,linkReource2)}} >
|
|
|
<Image source={{uri: backgroundImage2}} style={styles.imagetype4}>
|
|
|
<YH_Image url={backgroundImage2} style={styles.imagetype4}>
|
|
|
{saleAble2?<View style={styles.maskContainer4}>
|
|
|
<Text numberOfLines={1} style={styles.titleText4}>{name2}</Text>
|
|
|
<Text style={styles.price4}>{price2}</Text>
|
|
|
</View>:null}
|
|
|
</Image>
|
|
|
</YH_Image>
|
|
|
</TouchableOpacity>
|
|
|
<TouchableOpacity style={styles.imagetype4} onPress={() => {this.props.onPressProduct && this.props.onPressProduct(linkType3,linkReource3)}} >
|
|
|
<Image source={{uri: backgroundImage3}} style={styles.imagetype4}>
|
|
|
<YH_Image url={backgroundImage3} style={styles.imagetype4}>
|
|
|
{saleAble3?<View style={styles.maskContainer4}>
|
|
|
<Text numberOfLines={1} style={styles.titleText4}>{name3}</Text>
|
|
|
<Text style={styles.price4}>{price3}</Text>
|
|
|
</View>:null}
|
|
|
</Image>
|
|
|
</YH_Image>
|
|
|
</TouchableOpacity>
|
|
|
</View>
|
|
|
)
|
...
|
...
|
@@ -98,25 +99,25 @@ export default class RedPersonPicThree extends Component{ |
|
|
return (
|
|
|
<View style={{flexDirection: 'row',width:width,height: isModuleMargin=='1'?containerHeigth3+nullHeigth:containerHeigth3,backgroundColor: 'white'}}>
|
|
|
<TouchableOpacity style={styles.imagetype3} onPress={() => {this.props.onPressProduct && this.props.onPressProduct(linkType1,linkReource1)}} >
|
|
|
<Image source={{uri: backgroundImage1}} style={styles.imagetype3}>
|
|
|
<YH_Image url={backgroundImage1} style={styles.imagetype3}>
|
|
|
{saleAble1?<View style={styles.maskContainer3}>
|
|
|
<Text style={styles.price3}>{price1}</Text>
|
|
|
</View>:null}
|
|
|
</Image>
|
|
|
</YH_Image>
|
|
|
</TouchableOpacity>
|
|
|
<TouchableOpacity style={styles.imagetype3} onPress={() => {this.props.onPressProduct && this.props.onPressProduct(linkType2,linkReource2)}} >
|
|
|
<Image source={{uri: backgroundImage2}} style={styles.imagetype3}>
|
|
|
<YH_Image url={backgroundImage2} style={styles.imagetype3}>
|
|
|
{saleAble2?<View style={styles.maskContainer3}>
|
|
|
<Text style={styles.price3}>{price2}</Text>
|
|
|
</View>:null}
|
|
|
</Image>
|
|
|
</YH_Image>
|
|
|
</TouchableOpacity>
|
|
|
<TouchableOpacity style={styles.imagetype3} onPress={() => {this.props.onPressProduct && this.props.onPressProduct(linkType3,linkReource3)}} >
|
|
|
<Image source={{uri: backgroundImage3}} style={styles.imagetype3}>
|
|
|
<YH_Image url={backgroundImage3} style={styles.imagetype3}>
|
|
|
{saleAble3?<View style={styles.maskContainer3}>
|
|
|
<Text style={styles.price3}>{price3}</Text>
|
|
|
</View>:null}
|
|
|
</Image>
|
|
|
</YH_Image>
|
|
|
</TouchableOpacity>
|
|
|
</View>
|
|
|
)
|
...
|
...
|
@@ -126,29 +127,29 @@ export default class RedPersonPicThree extends Component{ |
|
|
<View style={{flexDirection: 'row',width:width,height: isModuleMargin=='1'?containerHeigth+nullHeigth:containerHeigth,backgroundColor: 'white'}}>
|
|
|
<View style={styles.subContainer}>
|
|
|
<TouchableOpacity style={styles.image} onPress={() => {this.props.onPressProduct && this.props.onPressProduct(linkType1,linkReource1)}} >
|
|
|
<Image source={{uri: backgroundImage1}} style={styles.image}>
|
|
|
<YH_Image url={backgroundImage1} style={styles.image}>
|
|
|
{saleAble1?<View style={styles.maskContainer1}>
|
|
|
<Text numberOfLines={2} style={styles.titleText}>{name1}</Text>
|
|
|
<Text style={styles.price}>{price1}</Text>
|
|
|
</View>:null}
|
|
|
</Image>
|
|
|
</YH_Image>
|
|
|
</TouchableOpacity>
|
|
|
<TouchableOpacity style={styles.image} onPress={() => {this.props.onPressProduct && this.props.onPressProduct(linkType2,linkReource2)}} >
|
|
|
<Image source={{uri: backgroundImage2}} style={styles.image}>
|
|
|
<YH_Image url={backgroundImage2} style={styles.image}>
|
|
|
{saleAble2?<View style={styles.maskContainer1}>
|
|
|
<Text numberOfLines={2} style={styles.titleText}>{name2}</Text>
|
|
|
<Text style={styles.price}>{price2}</Text>
|
|
|
</View>:null}
|
|
|
</Image>
|
|
|
</YH_Image>
|
|
|
</TouchableOpacity>
|
|
|
</View>
|
|
|
<TouchableOpacity style={styles.imageBig} onPress={() => {this.props.onPressProduct && this.props.onPressProduct(linkType3,linkReource3)}} >
|
|
|
<Image source={{uri: backgroundImage3}} style={styles.imageBig}>
|
|
|
<YH_Image url={backgroundImage3} style={styles.imageBig}>
|
|
|
{saleAble3?<View style={styles.maskContainer2}>
|
|
|
<Text numberOfLines={2} style={styles.titleText}>{name3}</Text>
|
|
|
<Text style={styles.price}>{price3}</Text>
|
|
|
</View>:null}
|
|
|
</Image>
|
|
|
</YH_Image>
|
|
|
</TouchableOpacity>
|
|
|
</View>
|
|
|
)
|
...
|
...
|
@@ -158,30 +159,30 @@ export default class RedPersonPicThree extends Component{ |
|
|
<View style={{flexDirection: 'row',width:width,height: isModuleMargin=='1'?containerHeigth+nullHeigth:containerHeigth,backgroundColor: 'white'}}>
|
|
|
<TouchableOpacity onPress={() => {this.props.onPressProduct && this.props.onPressProduct(linkType1,linkReource1)}} >
|
|
|
<View style={styles.subContainer}>
|
|
|
<Image source={{uri: backgroundImage1}} style={styles.imageBig}>
|
|
|
<YH_Image url={backgroundImage1} style={styles.imageBig}>
|
|
|
{saleAble1?<View style={styles.maskContainer2}>
|
|
|
<Text numberOfLines={2} style={styles.titleText}>{name1}</Text>
|
|
|
<Text style={styles.price}>{price1}</Text>
|
|
|
</View>:null}
|
|
|
</Image>
|
|
|
</YH_Image>
|
|
|
</View>
|
|
|
</TouchableOpacity>
|
|
|
<View style={styles.subContainer}>
|
|
|
<TouchableOpacity style={styles.image} onPress={() => {this.props.onPressProduct && this.props.onPressProduct(linkType2,linkReource2)}} >
|
|
|
<Image source={{uri: backgroundImage2}} style={styles.image}>
|
|
|
<YH_Image url={backgroundImage2} style={styles.image}>
|
|
|
{saleAble2?<View style={styles.maskContainer1}>
|
|
|
<Text numberOfLines={2} style={styles.titleText}>{name2}</Text>
|
|
|
<Text style={styles.price}>{price2}</Text>
|
|
|
</View>:null}
|
|
|
</Image>
|
|
|
</YH_Image>
|
|
|
</TouchableOpacity>
|
|
|
<TouchableOpacity style={styles.image} onPress={() => {this.props.onPressProduct && this.props.onPressProduct(linkType3,linkReource3)}} >
|
|
|
<Image source={{uri: backgroundImage3}} style={styles.image}>
|
|
|
<YH_Image url={backgroundImage3} style={styles.image}>
|
|
|
{saleAble3?<View style={styles.maskContainer1}>
|
|
|
<Text numberOfLines={2} style={styles.titleText}>{name3}</Text>
|
|
|
<Text style={styles.price}>{price3}</Text>
|
|
|
</View>:null}
|
|
|
</Image>
|
|
|
</YH_Image>
|
|
|
</TouchableOpacity>
|
|
|
</View>
|
|
|
</View>
|
...
|
...
|
|