...
|
...
|
@@ -35,11 +35,11 @@ export default class MineListHeader extends React.Component { |
|
|
//0不显示
|
|
|
return null;
|
|
|
} else if (num < 10) {
|
|
|
offset = 15;
|
|
|
offset = 17;
|
|
|
} else if (num < 100) {
|
|
|
offset = 15;
|
|
|
offset = 17;
|
|
|
} else {
|
|
|
offset = 10;
|
|
|
offset = 12;
|
|
|
num = '99+';
|
|
|
}
|
|
|
return (
|
...
|
...
|
@@ -71,20 +71,20 @@ export default class MineListHeader extends React.Component { |
|
|
let offset = 0;
|
|
|
if (isNaN(num)) {
|
|
|
//兼容非数字
|
|
|
offset = 6;
|
|
|
offset = 15;
|
|
|
} else if (num <= 0) {
|
|
|
//0不显示
|
|
|
return null;
|
|
|
} else if (num < 10) {
|
|
|
offset = 25;
|
|
|
offset = 30;
|
|
|
} else if (num < 100) {
|
|
|
offset = 25;
|
|
|
offset = 30;
|
|
|
} else if (num < 1000) {
|
|
|
offset = 20;
|
|
|
offset = 25;
|
|
|
} else if (num < 10000) {
|
|
|
offset = 15;
|
|
|
offset = 20;
|
|
|
} else {
|
|
|
offset = 0;
|
|
|
offset = 15;
|
|
|
num = '9999+';
|
|
|
}
|
|
|
return (
|
...
|
...
|
@@ -124,7 +124,7 @@ export default class MineListHeader extends React.Component { |
|
|
}
|
|
|
|
|
|
return (
|
|
|
<TouchableOpacity onPress={() => this.props.onPressItem('mineVip','')}>
|
|
|
<TouchableOpacity style={{width:45,height:25}} activeOpacity={1} onPress={() => this.props.onPressItem('mineVip','')}>
|
|
|
<Image style={styles.user_level} source={vipPic[num-1]}/>
|
|
|
</TouchableOpacity>
|
|
|
);
|
...
|
...
|
@@ -186,7 +186,7 @@ export default class MineListHeader extends React.Component { |
|
|
|
|
|
{
|
|
|
profile.uid != '0' ?
|
|
|
<TouchableOpacity onPress={() => this.props.onPressItem('mineInfo','')}>
|
|
|
<TouchableOpacity activeOpacity={1} onPress={() => this.props.onPressItem('mineInfo','')}>
|
|
|
<View style={styles.icon_container}>
|
|
|
<View style={{
|
|
|
flexDirection:'row',
|
...
|
...
|
@@ -263,7 +263,7 @@ export default class MineListHeader extends React.Component { |
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center',
|
|
|
}}>
|
|
|
<TouchableOpacity onPress={() => this.props.onPressItem('mineLogin','')}>
|
|
|
<TouchableOpacity activeOpacity={1} onPress={() => this.props.onPressItem('mineLogin','')}>
|
|
|
<Text style={styles.login_text} numberOfLines={1}>
|
|
|
登录/注册
|
|
|
</Text>
|
...
|
...
|
@@ -273,7 +273,7 @@ export default class MineListHeader extends React.Component { |
|
|
{
|
|
|
(profile.uid != '0' && profile.vip_info.is_student == 1) ? null :
|
|
|
(isNeedShowXsrz) ?
|
|
|
<TouchableOpacity style={{position:'absolute',right:0,top:bgPaddingTop}} onPress={() => this.props.onPressItem('mineStudentHome','')}>
|
|
|
<TouchableOpacity activeOpacity={1} style={{position:'absolute',right:0,top:bgPaddingTop}} onPress={() => this.props.onPressItem('mineStudentHome','')}>
|
|
|
<Image
|
|
|
style={{width: 80,height: 27,marginBottom:15}}
|
|
|
resizeMode={'stretch'} source={require('../../image/renzheng_bg.png')}>
|
...
|
...
|
@@ -283,7 +283,7 @@ export default class MineListHeader extends React.Component { |
|
|
}
|
|
|
|
|
|
<View style={styles.fav_container}>
|
|
|
<TouchableOpacity onPress={() => this.props.onPressItem('mineFavProduct','')}>
|
|
|
<TouchableOpacity activeOpacity={1} onPress={() => this.props.onPressItem('mineFavProduct','')}>
|
|
|
<View style={styles.topnum_content}>
|
|
|
{
|
|
|
(profile.uid != '0' && mineInfoNum.product_favorite_total + globalOrderData.collect_count >= 0) ?
|
...
|
...
|
@@ -300,7 +300,7 @@ export default class MineListHeader extends React.Component { |
|
|
marginBottom:6,
|
|
|
backgroundColor: '#f0f0f0',
|
|
|
}}/>
|
|
|
<TouchableOpacity onPress={() => this.props.onPressItem('mineFavBrand','')}>
|
|
|
<TouchableOpacity activeOpacity={1} onPress={() => this.props.onPressItem('mineFavBrand','')}>
|
|
|
<View style={styles.topnum_content}>
|
|
|
{
|
|
|
(profile.uid != '0' && mineInfoNum.brand_favorite_total >= 0) ?
|
...
|
...
|
@@ -317,7 +317,7 @@ export default class MineListHeader extends React.Component { |
|
|
marginBottom:6,
|
|
|
backgroundColor: '#f0f0f0',
|
|
|
}}/>
|
|
|
<TouchableOpacity onPress={() => this.props.onPressItem('mineBrowseHis','')}>
|
|
|
<TouchableOpacity activeOpacity={1} onPress={() => this.props.onPressItem('mineBrowseHis','')}>
|
|
|
<View style={styles.topnum_content}>
|
|
|
{
|
|
|
(profile.uid != '0' && mineInfoNum.product_browse >= 0) ?
|
...
|
...
|
@@ -336,7 +336,7 @@ export default class MineListHeader extends React.Component { |
|
|
}}/>
|
|
|
|
|
|
{profile.uid != '0' && certificationInfo && certificationInfo.isBindedOrRelated === 'N' ?
|
|
|
<TouchableOpacity onPress={() => this.props.onPressItem('mineCertification','')}>
|
|
|
<TouchableOpacity activeOpacity={1} onPress={() => this.props.onPressItem('mineCertification','')}>
|
|
|
<View style={styles.sub_row}>
|
|
|
<Image style={styles.row_icon} resizeMode={'contain'}
|
|
|
source={require('../../image/bindTipsIcon.png')}/>
|
...
|
...
|
@@ -381,7 +381,7 @@ export default class MineListHeader extends React.Component { |
|
|
backgroundColor: '#f0f0f0',
|
|
|
}}/> : null
|
|
|
}
|
|
|
<TouchableOpacity onPress={() => this.props.onPressItem('mineOrder','')}>
|
|
|
<TouchableOpacity activeOpacity={1} onPress={() => this.props.onPressItem('mineOrder','')}>
|
|
|
<View style={styles.row}>
|
|
|
<Text style={[styles.icon_text,{fontSize:17, fontWeight:'bold'}]} numberOfLines={1}>
|
|
|
我的订单
|
...
|
...
|
@@ -402,7 +402,7 @@ export default class MineListHeader extends React.Component { |
|
|
backgroundColor: '#f0f0f0',
|
|
|
}}/>
|
|
|
<View style={[styles.order_container,{paddingLeft: paddingContainer , paddingRight: paddingContainer ,}]}>
|
|
|
<TouchableOpacity onPress={() => this.props.onPressItem('dfkOrder','')}>
|
|
|
<TouchableOpacity activeOpacity={1} onPress={() => this.props.onPressItem('dfkOrder','')}>
|
|
|
<View style={styles.order_content}>
|
|
|
{
|
|
|
iconAll.willPay.isExist ? <Image style={styles.icon_image} source={{uri:iconAll.willPay.default_ico}}/> : <Image style={styles.icon_image} source={require('../../image/dd_icon_dfk.png')}/>
|
...
|
...
|
@@ -413,7 +413,7 @@ export default class MineListHeader extends React.Component { |
|
|
}
|
|
|
</View>
|
|
|
</TouchableOpacity>
|
|
|
<TouchableOpacity onPress={() => this.props.onPressItem('dfhOrder','')}>
|
|
|
<TouchableOpacity activeOpacity={1} onPress={() => this.props.onPressItem('dfhOrder','')}>
|
|
|
<View style={styles.order_content}>
|
|
|
{
|
|
|
iconAll.willDeliver.isExist ? <Image style={styles.icon_image} source={{uri:iconAll.willDeliver.default_ico}}/> : <Image style={styles.icon_image} source={require('../../image/dd_icon_dfh.png')}/>
|
...
|
...
|
@@ -424,7 +424,7 @@ export default class MineListHeader extends React.Component { |
|
|
}
|
|
|
</View>
|
|
|
</TouchableOpacity>
|
|
|
<TouchableOpacity onPress={() => this.props.onPressItem('dshOrder','')}>
|
|
|
<TouchableOpacity activeOpacity={1} onPress={() => this.props.onPressItem('dshOrder','')}>
|
|
|
<View style={styles.order_content}>
|
|
|
{
|
|
|
iconAll.willReceived.isExist ? <Image style={styles.icon_image} source={{uri:iconAll.willReceived.default_ico}}/> : <Image style={styles.icon_image} source={require('../../image/dd_icon_dsh.png')}/>
|
...
|
...
|
@@ -435,7 +435,7 @@ export default class MineListHeader extends React.Component { |
|
|
}
|
|
|
</View>
|
|
|
</TouchableOpacity>
|
|
|
<TouchableOpacity onPress={() => this.props.onPressItem('dsdOrder','')}>
|
|
|
<TouchableOpacity activeOpacity={1} onPress={() => this.props.onPressItem('dsdOrder','')}>
|
|
|
<View style={styles.order_content}>
|
|
|
{
|
|
|
iconAll.willComment.isExist ? <Image style={styles.icon_image} source={{uri:iconAll.willComment.default_ico}}/> : <Image style={styles.icon_image} source={require('../../image/wddd_icon_dpj.png')}/>
|
...
|
...
|
@@ -446,7 +446,7 @@ export default class MineListHeader extends React.Component { |
|
|
}
|
|
|
</View>
|
|
|
</TouchableOpacity>
|
|
|
<TouchableOpacity onPress={() => this.props.onPressItem('thhOrder','')}>
|
|
|
<TouchableOpacity activeOpacity={1} onPress={() => this.props.onPressItem('thhOrder','')}>
|
|
|
<View style={styles.order_content}>
|
|
|
{
|
|
|
iconAll.reback.isExist ? <Image style={styles.icon_image} source={{uri:iconAll.reback.default_ico}}/> : <Image style={styles.icon_image} source={require('../../image/dd_icon_thh.png')}/>
|
...
|
...
|
@@ -464,7 +464,7 @@ export default class MineListHeader extends React.Component { |
|
|
backgroundColor: '#f0f0f0',
|
|
|
}}/>
|
|
|
{(profile.uid != '0' && globalOrderData && globalOrderData.hasOrder === 'Y') ?
|
|
|
<TouchableOpacity onPress={() => this.props.onPressItem('mineGlobalOrder','')}>
|
|
|
<TouchableOpacity activeOpacity={1} onPress={() => this.props.onPressItem('mineGlobalOrder','')}>
|
|
|
<View style={styles.row}>
|
|
|
<Image style={styles.row_icon} source={require('../../image/mine_globalpurchase_icon.png')}/>
|
|
|
<Text style={[styles.icon_text,{fontSize:17}]} numberOfLines={1}>
|
...
|
...
|
@@ -506,7 +506,7 @@ export default class MineListHeader extends React.Component { |
|
|
}}/>
|
|
|
|
|
|
<View style={[styles.order_container, {paddingLeft: paddingContainer , paddingRight: paddingContainer }]}>
|
|
|
<TouchableOpacity onPress={() => this.props.onPressItem('mineCoupon','')}>
|
|
|
<TouchableOpacity activeOpacity={1} onPress={() => this.props.onPressItem('mineCoupon','')}>
|
|
|
<View style={styles.asset_content}>
|
|
|
{
|
|
|
iconAll.coupon.isExist ? <Image style={styles.icon_image} source={{uri:iconAll.coupon.default_ico}}/> : <Image style={styles.icon_image} source={require('../../image/zc_icon_yhq.png')}/>
|
...
|
...
|
@@ -517,7 +517,7 @@ export default class MineListHeader extends React.Component { |
|
|
}
|
|
|
</View>
|
|
|
</TouchableOpacity>
|
|
|
<TouchableOpacity onPress={() => this.props.onPressItem('mineYohoCoin','')}>
|
|
|
<TouchableOpacity activeOpacity={1} onPress={() => this.props.onPressItem('mineYohoCoin','')}>
|
|
|
<View style={styles.asset_content}>
|
|
|
{
|
|
|
iconAll.yohoCoin.isExist ? <Image style={styles.icon_image} source={{uri:iconAll.yohoCoin.default_ico}}/> : <Image style={styles.icon_image} source={require('../../image/yh_mine_yoho_coin.png')}/>
|
...
|
...
|
@@ -530,7 +530,7 @@ export default class MineListHeader extends React.Component { |
|
|
|
|
|
</View>
|
|
|
</TouchableOpacity>
|
|
|
<TouchableOpacity onPress={() => this.props.onPressItem('mineLimitCode','')}>
|
|
|
<TouchableOpacity activeOpacity={1} onPress={() => this.props.onPressItem('mineLimitCode','')}>
|
|
|
<View style={styles.asset_content}>
|
|
|
{
|
|
|
iconAll.myLimitCode.isExist ? <Image style={styles.icon_image} source={{uri:iconAll.myLimitCode.default_ico}}/> : <Image style={styles.icon_image} source={require('../../image/yh_mine_limitcode_icon.png')}/>
|
...
|
...
|
@@ -541,7 +541,7 @@ export default class MineListHeader extends React.Component { |
|
|
}
|
|
|
</View>
|
|
|
</TouchableOpacity>
|
|
|
<TouchableOpacity onPress={() => this.props.onPressItem('mineInstallment','')}>
|
|
|
<TouchableOpacity activeOpacity={1} onPress={() => this.props.onPressItem('mineInstallment','')}>
|
|
|
<View style={styles.asset_content}>
|
|
|
{
|
|
|
iconAll.instalment.isExist ? <Image style={styles.icon_image} source={{uri:iconAll.instalment.default_ico}}/> : <Image style={styles.icon_image} source={require('../../image/yh_mine_fenqi_icon.png')}/>
|
...
|
...
|
@@ -553,7 +553,7 @@ export default class MineListHeader extends React.Component { |
|
|
</View>
|
|
|
</TouchableOpacity>
|
|
|
{showRedPacket && showRedPacket.open === 'Y' ?
|
|
|
<TouchableOpacity onPress={() => this.props.onPressItem('mineRedPackage','')}>
|
|
|
<TouchableOpacity activeOpacity={1} onPress={() => this.props.onPressItem('mineRedPackage','')}>
|
|
|
<View style={styles.asset_content}>
|
|
|
{
|
|
|
iconAll.redPackets.isExist ? <Image style={styles.icon_image} source={{uri:iconAll.redPackets.default_ico}}/> : <Image style={styles.icon_image} source={require('../../image/yh_mine_redbag_icon.png')}/>
|
...
|
...
|
@@ -571,7 +571,7 @@ export default class MineListHeader extends React.Component { |
|
|
height: 10,
|
|
|
backgroundColor: '#f0f0f0',
|
|
|
}}/>
|
|
|
<TouchableOpacity onPress={() => this.props.onPressItem('mineGuang','')}>
|
|
|
<TouchableOpacity activeOpacity={1} onPress={() => this.props.onPressItem('mineGuang','')}>
|
|
|
<View style={styles.row}>
|
|
|
{
|
|
|
iconAll.myguang.isExist ? <Image style={styles.row_icon} source={{uri:iconAll.myguang.default_ico}}/> : <Image style={styles.row_icon} source={require('../../image/mine_collectionTiezi_icon.png')}/>
|
...
|
...
|
@@ -588,7 +588,7 @@ export default class MineListHeader extends React.Component { |
|
|
marginLeft:50,
|
|
|
backgroundColor: '#f0f0f0',
|
|
|
}}/>
|
|
|
<TouchableOpacity onPress={() => this.props.onPressItem('mineShareOrder','')}>
|
|
|
<TouchableOpacity activeOpacity={1} onPress={() => this.props.onPressItem('mineShareOrder','')}>
|
|
|
<View style={styles.row}>
|
|
|
{
|
|
|
iconAll.myList.isExist ? <Image style={styles.row_icon} source={{uri:iconAll.myList.default_ico}}/> : <Image style={styles.row_icon} source={require('../../image/shaidan.png')}/>
|
...
|
...
|
@@ -601,7 +601,7 @@ export default class MineListHeader extends React.Component { |
|
|
</TouchableOpacity>
|
|
|
|
|
|
{(profile.uid != '0' && memberBill && memberBill.bill && memberBill.bill.open === 'Y') ?
|
|
|
<TouchableOpacity onPress={() => this.props.onPressItem('mineMemberInfo',memberBill.bill.userinfo)}>
|
|
|
<TouchableOpacity activeOpacity={1} onPress={() => this.props.onPressItem('mineMemberInfo',memberBill.bill.userinfo)}>
|
|
|
<View style={{
|
|
|
width: width-50,
|
|
|
height: 0.5,
|
...
|
...
|
@@ -634,7 +634,7 @@ export default class MineListHeader extends React.Component { |
|
|
activityListInfo.list.map((item, i) => {
|
|
|
return (
|
|
|
item.get('state') === 1?
|
|
|
<TouchableOpacity key={i} onPress={() => this.props.onPressItem('mineActivity',item)}>
|
|
|
<TouchableOpacity key={i} activeOpacity={1} onPress={() => this.props.onPressItem('mineActivity',item)}>
|
|
|
<View style={styles.row}>
|
|
|
{
|
|
|
iconAll.invite.isExist ? <Image style={styles.row_icon} source={{uri:iconAll.invite.default_ico}}/> : <Image style={styles.row_icon} source={require('../../image/mine_activity_icon.png')}/>
|
...
|
...
|
@@ -667,7 +667,7 @@ export default class MineListHeader extends React.Component { |
|
|
}}/> : null
|
|
|
}
|
|
|
|
|
|
<TouchableOpacity onPress={() => this.props.onPressItem('mineFeedback','')}>
|
|
|
<TouchableOpacity activeOpacity={1} onPress={() => this.props.onPressItem('mineFeedback','')}>
|
|
|
<View style={styles.row}>
|
|
|
{
|
|
|
iconAll.suggestion.isExist ? <Image style={styles.row_icon} resizeMode={'contain'} source={{uri:iconAll.suggestion.default_ico}}/> : <Image style={styles.row_icon} resizeMode={'contain'} source={require('../../image/mine_servicefeedback_icon.png')}/>
|
...
|
...
|
|