...
|
...
|
@@ -70,24 +70,33 @@ export default class RedPersonPicThree extends Component{ |
|
|
<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)}} >
|
|
|
<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}
|
|
|
{linkType1=='1'?<View style={styles.maskContainer4}>
|
|
|
<Text style={styles.titleText4}>{name1}</Text>
|
|
|
<View style={styles.saleView}>
|
|
|
<Text style={{marginTop: 2,marginLeft: 10,fontSize: 13,backgroundColor: 'transparent',color: saleAble1?'red':'white',}}>{price1}</Text>
|
|
|
{saleAble1?<Text style={styles.deleteSale}>{sale1}</Text>:null}
|
|
|
</View>
|
|
|
</View>:null}
|
|
|
</TouchableOpacity>
|
|
|
<TouchableOpacity style={styles.imagetype4} onPress={() => {this.props.onPressProduct && this.props.onPressProduct(linkType2,linkReource2)}} >
|
|
|
<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}
|
|
|
{linkType2=='1'?<View style={styles.maskContainer4}>
|
|
|
<Text style={styles.titleText4}>{name2}</Text>
|
|
|
<View style={styles.saleView}>
|
|
|
<Text style={{marginTop: 2,marginLeft: 10,fontSize: 13,backgroundColor: 'transparent',color: saleAble2?'red':'white',}}>{price2}</Text>
|
|
|
{saleAble2?<Text style={styles.deleteSale}>{sale2}</Text>:null}
|
|
|
</View>
|
|
|
</View>:null}
|
|
|
</TouchableOpacity>
|
|
|
<TouchableOpacity style={styles.imagetype4} onPress={() => {this.props.onPressProduct && this.props.onPressProduct(linkType3,linkReource3)}} >
|
|
|
<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}
|
|
|
{linkType3=='1'?<View style={styles.maskContainer4}>
|
|
|
<Text style={styles.titleText4}>{name3}</Text>
|
|
|
<View style={styles.saleView}>
|
|
|
<Text style={{marginTop: 2,marginLeft: 10,fontSize: 13,backgroundColor: 'transparent',color: saleAble3?'red':'white',}}>{price3}</Text>
|
|
|
{saleAble3?<Text style={styles.deleteSale}>{sale3}</Text>:null}
|
|
|
</View>
|
|
|
</View>:null}
|
|
|
</TouchableOpacity>
|
|
|
</View>
|
|
|
)
|
...
|
...
|
@@ -97,21 +106,24 @@ export default class RedPersonPicThree extends Component{ |
|
|
<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)}} >
|
|
|
<YH_Image url={backgroundImage1} style={styles.imagetype3}/>
|
|
|
{saleAble1?<View style={styles.maskContainer3}>
|
|
|
<Text style={styles.price3}>{price1}</Text>
|
|
|
</View>:null}
|
|
|
{linkType1=='1'?<View style={styles.maskContainer3}>
|
|
|
<Text style={{marginTop: 2,marginLeft: 10,fontSize: 13,backgroundColor: 'transparent',color: saleAble1?'red':'white',}}>{price1}</Text>
|
|
|
{saleAble1?<Text style={styles.deleteSale}>{sale1}</Text>:null}
|
|
|
</View>:null}
|
|
|
</TouchableOpacity>
|
|
|
<TouchableOpacity style={styles.imagetype3} onPress={() => {this.props.onPressProduct && this.props.onPressProduct(linkType2,linkReource2)}} >
|
|
|
<YH_Image url={backgroundImage2} style={styles.imagetype3}/>
|
|
|
{saleAble2?<View style={styles.maskContainer3}>
|
|
|
<Text style={styles.price3}>{price2}</Text>
|
|
|
</View>:null}
|
|
|
{linkType2=='1'?<View style={styles.maskContainer3}>
|
|
|
<Text style={{marginTop: 2,marginLeft: 10,fontSize: 13,backgroundColor: 'transparent',color: saleAble2?'red':'white',}}>{price2}</Text>
|
|
|
{saleAble2?<Text style={styles.deleteSale}>{sale2}</Text>:null}
|
|
|
</View>:null}
|
|
|
</TouchableOpacity>
|
|
|
<TouchableOpacity style={styles.imagetype3} onPress={() => {this.props.onPressProduct && this.props.onPressProduct(linkType3,linkReource3)}} >
|
|
|
<YH_Image url={backgroundImage3} style={styles.imagetype3}/>
|
|
|
{saleAble3?<View style={styles.maskContainer3}>
|
|
|
<Text style={styles.price3}>{price3}</Text>
|
|
|
</View>:null}
|
|
|
{linkType3=='1'?<View style={styles.maskContainer3}>
|
|
|
<Text style={{marginTop: 2,marginLeft: 10,fontSize: 13,backgroundColor: 'transparent',color: saleAble3?'red':'white',}}>{price3}</Text>
|
|
|
{saleAble3?<Text style={styles.deleteSale}>{sale3}</Text>:null}
|
|
|
</View>:null}
|
|
|
</TouchableOpacity>
|
|
|
</View>
|
|
|
)
|
...
|
...
|
@@ -122,25 +134,34 @@ export default class RedPersonPicThree extends Component{ |
|
|
<View style={styles.subContainer}>
|
|
|
<TouchableOpacity style={styles.image} onPress={() => {this.props.onPressProduct && this.props.onPressProduct(linkType1,linkReource1)}} >
|
|
|
<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}
|
|
|
{linkType1=='1'?<View style={styles.maskContainer1}>
|
|
|
<Text style={styles.titleText} numberOfLines={2}>{name1}</Text>
|
|
|
<View style={{backgroundColor: 'transparent',flexDirection: 'row'}}>
|
|
|
<Text style={{fontSize: 15,backgroundColor: 'transparent',color: saleAble1?'red':'white'}}>{price1}</Text>
|
|
|
{saleAble1?<Text style={styles.deleteSale3}>{sale1}</Text>:null}
|
|
|
</View>
|
|
|
</View>:null}
|
|
|
</TouchableOpacity>
|
|
|
<TouchableOpacity style={styles.image} onPress={() => {this.props.onPressProduct && this.props.onPressProduct(linkType2,linkReource2)}} >
|
|
|
<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}
|
|
|
{linkType2=='1'?<View style={styles.maskContainer1}>
|
|
|
<Text style={styles.titleText} numberOfLines={2}>{name2}</Text>
|
|
|
<View style={{backgroundColor: 'transparent',flexDirection: 'row'}}>
|
|
|
<Text style={{fontSize: 15,backgroundColor: 'transparent',color: saleAble2?'red':'white'}}>{price2}</Text>
|
|
|
{saleAble2?<Text style={styles.deleteSale3}>{sale2}</Text>:null}
|
|
|
</View>
|
|
|
</View>:null}
|
|
|
</TouchableOpacity>
|
|
|
</View>
|
|
|
<TouchableOpacity style={styles.imageBig} onPress={() => {this.props.onPressProduct && this.props.onPressProduct(linkType3,linkReource3)}} >
|
|
|
<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}
|
|
|
{linkType3=='1'?<View style={styles.maskContainer2}>
|
|
|
<Text style={styles.titleText} numberOfLines={2}>{name3}</Text>
|
|
|
<View style={{backgroundColor: 'transparent',flexDirection: 'row'}}>
|
|
|
<Text style={{fontSize: 15,backgroundColor: 'transparent',color: saleAble3?'red':'white'}}>{price3}</Text>
|
|
|
{saleAble3?<Text style={styles.deleteSale3}>{sale3}</Text>:null}
|
|
|
</View>
|
|
|
</View>:null}
|
|
|
</TouchableOpacity>
|
|
|
</View>
|
|
|
)
|
...
|
...
|
@@ -151,26 +172,35 @@ export default class RedPersonPicThree extends Component{ |
|
|
<TouchableOpacity onPress={() => {this.props.onPressProduct && this.props.onPressProduct(linkType1,linkReource1)}} >
|
|
|
<View style={styles.subContainer}>
|
|
|
<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}
|
|
|
{linkType1=='1'?<View style={styles.maskContainer2}>
|
|
|
<Text style={styles.titleText} numberOfLines={2}>{name1}</Text>
|
|
|
<View style={{backgroundColor: 'transparent',flexDirection: 'row'}}>
|
|
|
<Text style={{fontSize: 15,backgroundColor: 'transparent',color: saleAble1?'red':'white'}}>{price1}</Text>
|
|
|
{saleAble1?<Text style={styles.deleteSale3}>{sale1}</Text>:null}
|
|
|
</View>
|
|
|
</View>:null}
|
|
|
</View>
|
|
|
</TouchableOpacity>
|
|
|
<View style={styles.subContainer}>
|
|
|
<TouchableOpacity style={styles.image} onPress={() => {this.props.onPressProduct && this.props.onPressProduct(linkType2,linkReource2)}} >
|
|
|
<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}
|
|
|
{linkType2=='1'?<View style={styles.maskContainer1}>
|
|
|
<Text style={styles.titleText} numberOfLines={2}>{name2}</Text>
|
|
|
<View style={{backgroundColor: 'transparent',flexDirection: 'row'}}>
|
|
|
<Text style={{fontSize: 15,backgroundColor: 'transparent',color: saleAble2?'red':'white'}}>{price2}</Text>
|
|
|
{saleAble2?<Text style={styles.deleteSale3}>{sale2}</Text>:null}
|
|
|
</View>
|
|
|
</View>:null}
|
|
|
</TouchableOpacity>
|
|
|
<TouchableOpacity style={styles.image} onPress={() => {this.props.onPressProduct && this.props.onPressProduct(linkType3,linkReource3)}} >
|
|
|
<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}
|
|
|
{linkType3=='1'?<View style={styles.maskContainer1}>
|
|
|
<Text style={styles.titleText} numberOfLines={2}>{name3}</Text>
|
|
|
<View style={{backgroundColor: 'transparent',flexDirection: 'row'}}>
|
|
|
<Text style={{fontSize: 15,backgroundColor: 'transparent',color: saleAble3?'red':'white'}}>{price3}</Text>
|
|
|
{saleAble3?<Text style={styles.deleteSale3}>{sale3}</Text>:null}
|
|
|
</View>
|
|
|
</View>:null}
|
|
|
</TouchableOpacity>
|
|
|
</View>
|
|
|
</View>
|
...
|
...
|
@@ -202,6 +232,7 @@ let styles = StyleSheet.create({ |
|
|
top: containerHeigth/2-maskHeight,
|
|
|
flexDirection: 'row',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'space-around',
|
|
|
},
|
|
|
maskContainer2: {
|
|
|
position: 'absolute',
|
...
|
...
|
@@ -211,6 +242,7 @@ let styles = StyleSheet.create({ |
|
|
top: containerHeigth-maskHeight,
|
|
|
flexDirection: 'row',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'space-around',
|
|
|
},
|
|
|
maskContainer3:{
|
|
|
position: 'absolute',
|
...
|
...
|
@@ -220,6 +252,7 @@ let styles = StyleSheet.create({ |
|
|
top: containerHeigth3-24,
|
|
|
flexDirection: 'row',
|
|
|
alignItems: 'center',
|
|
|
flexDirection: 'row',
|
|
|
},
|
|
|
maskContainer4: {
|
|
|
position: 'absolute',
|
...
|
...
|
@@ -245,11 +278,11 @@ let styles = StyleSheet.create({ |
|
|
height: containerHeigth,
|
|
|
},
|
|
|
titleText: {
|
|
|
marginLeft: 10,
|
|
|
color:'white',
|
|
|
width : 80,
|
|
|
fontSize: 12,
|
|
|
textAlign :'left',
|
|
|
backgroundColor: 'transparent',
|
|
|
},
|
|
|
price: {
|
|
|
color:'white',
|
...
|
...
|
@@ -283,4 +316,25 @@ let styles = StyleSheet.create({ |
|
|
textAlign :'left',
|
|
|
marginTop: 2,
|
|
|
},
|
|
|
deleteSale: {
|
|
|
marginLeft: 2,
|
|
|
marginTop: 4,
|
|
|
fontSize: 11,
|
|
|
backgroundColor: 'transparent',
|
|
|
color: 'white',
|
|
|
textDecorationLine: 'line-through',
|
|
|
},
|
|
|
|
|
|
deleteSale3: {
|
|
|
marginLeft: 2,
|
|
|
marginTop: 4,
|
|
|
fontSize: 11,
|
|
|
backgroundColor: 'transparent',
|
|
|
color: 'white',
|
|
|
textDecorationLine: 'line-through',
|
|
|
},
|
|
|
|
|
|
saleView:{
|
|
|
flexDirection: 'row',
|
|
|
},
|
|
|
}); |
...
|
...
|
|