...
|
...
|
@@ -167,7 +167,8 @@ export default class MineListHeader extends React.Component { |
|
|
showRedPacket,
|
|
|
certificationInfo,
|
|
|
announcement,
|
|
|
globalOrderData
|
|
|
globalOrderData,
|
|
|
iconAll,
|
|
|
} = this.props;
|
|
|
|
|
|
let oHigh = 0;
|
...
|
...
|
@@ -208,7 +209,7 @@ export default class MineListHeader extends React.Component { |
|
|
}}>
|
|
|
<Image style={styles.user_img}
|
|
|
source={{uri: YH_Image.getSlicedUrl(profile.head_ico, 60, 60, 2)}}
|
|
|
resizeMode={'contain'}/>
|
|
|
resizeMode={'cover'}/>
|
|
|
<View style={{
|
|
|
flexDirection:'column',
|
|
|
flex:1,
|
...
|
...
|
@@ -289,7 +290,7 @@ export default class MineListHeader extends React.Component { |
|
|
}}>
|
|
|
<TouchableOpacity onPress={() => this.props.onPressItem('mineLogin','')}>
|
|
|
<Text style={styles.login_text} numberOfLines={1}>
|
|
|
登陆/注册
|
|
|
登录/注册
|
|
|
</Text>
|
|
|
</TouchableOpacity>
|
|
|
</View>
|
...
|
...
|
@@ -410,7 +411,9 @@ export default class MineListHeader extends React.Component { |
|
|
<View style={styles.order_container}>
|
|
|
<TouchableOpacity onPress={() => this.props.onPressItem('dfkOrder','')}>
|
|
|
<View style={styles.order_content}>
|
|
|
<Image style={styles.icon_image} source={require('../../image/dd_icon_dfk.png')}/>
|
|
|
{
|
|
|
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')}/>
|
|
|
}
|
|
|
<Text style={styles.order_text}>待付款</Text>
|
|
|
{
|
|
|
(profile.uid != '0' && mineInfoNum) ? this._renderMineOrderNumberPoint(mineInfoNum.wait_pay_num) : null
|
...
|
...
|
@@ -419,7 +422,9 @@ export default class MineListHeader extends React.Component { |
|
|
</TouchableOpacity>
|
|
|
<TouchableOpacity onPress={() => this.props.onPressItem('dfhOrder','')}>
|
|
|
<View style={styles.order_content}>
|
|
|
<Image style={styles.icon_image} source={require('../../image/dd_icon_dfh.png')}/>
|
|
|
{
|
|
|
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')}/>
|
|
|
}
|
|
|
<Text style={styles.order_text}>待发货</Text>
|
|
|
{
|
|
|
(profile.uid != '0' && mineInfoNum) ? this._renderMineOrderNumberPoint(mineInfoNum.send_cargo_num) : null
|
...
|
...
|
@@ -428,7 +433,9 @@ export default class MineListHeader extends React.Component { |
|
|
</TouchableOpacity>
|
|
|
<TouchableOpacity onPress={() => this.props.onPressItem('dshOrder','')}>
|
|
|
<View style={styles.order_content}>
|
|
|
<Image style={styles.icon_image} source={require('../../image/dd_icon_dsh.png')}/>
|
|
|
{
|
|
|
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')}/>
|
|
|
}
|
|
|
<Text style={styles.order_text}>待收货</Text>
|
|
|
{
|
|
|
(profile.uid != '0' && mineInfoNum) ? this._renderMineOrderNumberPoint(mineInfoNum.wait_cargo_num) : null
|
...
|
...
|
@@ -437,7 +444,9 @@ export default class MineListHeader extends React.Component { |
|
|
</TouchableOpacity>
|
|
|
<TouchableOpacity onPress={() => this.props.onPressItem('dsdOrder','')}>
|
|
|
<View style={styles.order_content}>
|
|
|
<Image style={styles.icon_image} source={require('../../image/wddd_icon_dpj.png')}/>
|
|
|
{
|
|
|
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')}/>
|
|
|
}
|
|
|
<Text style={styles.order_text}>待晒单</Text>
|
|
|
{
|
|
|
(profile.uid != '0' && mineInfoNum) ? this._renderMineOrderNumberPoint(mineInfoNum.toShareOrderNum) : null
|
...
|
...
|
@@ -446,7 +455,9 @@ export default class MineListHeader extends React.Component { |
|
|
</TouchableOpacity>
|
|
|
<TouchableOpacity onPress={() => this.props.onPressItem('thhOrder','')}>
|
|
|
<View style={styles.order_content}>
|
|
|
<Image style={styles.icon_image} source={require('../../image/dd_icon_thh.png')}/>
|
|
|
{
|
|
|
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')}/>
|
|
|
}
|
|
|
<Text style={styles.order_text}>退/换货</Text>
|
|
|
{
|
|
|
(profile.uid != '0' && mineInfoNum) ? this._renderMineOrderNumberPoint(mineInfoNum.refund_exchange_num) : null
|
...
|
...
|
@@ -498,7 +509,9 @@ export default class MineListHeader extends React.Component { |
|
|
<View style={styles.order_container}>
|
|
|
<TouchableOpacity onPress={() => this.props.onPressItem('mineCoupon','')}>
|
|
|
<View style={styles.asset_content}>
|
|
|
<Image style={styles.icon_image} source={require('../../image/zc_icon_yhq_red.png')}/>
|
|
|
{
|
|
|
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')}/>
|
|
|
}
|
|
|
<Text style={styles.order_text}>优惠券</Text>
|
|
|
{
|
|
|
(profile.uid != '0' && mineInfoNum) ? this._renderMinePropertyNumberPoint(mineInfoNum.coupon_num) : null
|
...
|
...
|
@@ -507,7 +520,9 @@ export default class MineListHeader extends React.Component { |
|
|
</TouchableOpacity>
|
|
|
<TouchableOpacity onPress={() => this.props.onPressItem('mineYohoCoin','')}>
|
|
|
<View style={styles.asset_content}>
|
|
|
<Image style={styles.icon_image} source={require('../../image/yh_mine_yoho_coin.png')}/>
|
|
|
{
|
|
|
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')}/>
|
|
|
}
|
|
|
<Text style={styles.order_text}>有货币</Text>
|
|
|
|
|
|
{
|
...
|
...
|
@@ -518,8 +533,9 @@ export default class MineListHeader extends React.Component { |
|
|
</TouchableOpacity>
|
|
|
<TouchableOpacity onPress={() => this.props.onPressItem('mineLimitCode','')}>
|
|
|
<View style={styles.asset_content}>
|
|
|
<Image style={styles.icon_image}
|
|
|
source={require('../../image/yh_mine_limitcode_icon.png')}/>
|
|
|
{
|
|
|
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')}/>
|
|
|
}
|
|
|
<Text style={styles.order_text}>限购码</Text>
|
|
|
{
|
|
|
(profile.uid != '0' && mineInfoNum) ? this._renderMinePropertyNumberPoint(mineInfoNum.limitCodeNum) : null
|
...
|
...
|
@@ -528,7 +544,9 @@ export default class MineListHeader extends React.Component { |
|
|
</TouchableOpacity>
|
|
|
<TouchableOpacity onPress={() => this.props.onPressItem('mineInstallment','')}>
|
|
|
<View style={styles.asset_content}>
|
|
|
<Image style={styles.icon_image} source={require('../../image/yh_mine_fenqi_icon.png')}/>
|
|
|
{
|
|
|
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')}/>
|
|
|
}
|
|
|
<Text style={styles.order_text}>有货分期</Text>
|
|
|
{
|
|
|
(profile.uid != '0') ? this._renderMinePropertyNumberPoint(0) : this._renderMinePropertyNumberPoint('去开通')
|
...
|
...
|
@@ -538,8 +556,9 @@ export default class MineListHeader extends React.Component { |
|
|
{showRedPacket && showRedPacket.open === 'Y' ?
|
|
|
<TouchableOpacity onPress={() => this.props.onPressItem('mineRedPackage','')}>
|
|
|
<View style={styles.asset_content}>
|
|
|
<Image style={styles.icon_image}
|
|
|
source={require('../../image/yh_mine_redbag_icon.png')}/>
|
|
|
{
|
|
|
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')}/>
|
|
|
}
|
|
|
<Text style={styles.order_text}>红包</Text>
|
|
|
{
|
|
|
(profile.uid != '0' && redPackageNum) ? this._renderMinePropertyNumberPoint(redPackageNum.redpacket_num) : null
|
...
|
...
|
@@ -555,7 +574,9 @@ export default class MineListHeader extends React.Component { |
|
|
}}/>
|
|
|
<TouchableOpacity onPress={() => this.props.onPressItem('mineGuang','')}>
|
|
|
<View style={styles.row}>
|
|
|
<Image style={styles.row_icon} source={require('../../image/mine_collectionTiezi_icon.png')}/>
|
|
|
{
|
|
|
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')}/>
|
|
|
}
|
|
|
<Text style={styles.icon_text} numberOfLines={1}>
|
|
|
我的逛
|
|
|
</Text>
|
...
|
...
|
@@ -570,7 +591,9 @@ export default class MineListHeader extends React.Component { |
|
|
}}/>
|
|
|
<TouchableOpacity onPress={() => this.props.onPressItem('mineShareOrder','')}>
|
|
|
<View style={styles.row}>
|
|
|
<Image style={styles.row_icon} source={require('../../image/shaidan.png')}/>
|
|
|
{
|
|
|
iconAll.myList.isExist ? <Image style={styles.row_icon} source={{uri:iconAll.myList.default_ico}}/> : <Image style={styles.row_icon} source={require('../../image/shaidan.png')}/>
|
|
|
}
|
|
|
<Text style={styles.icon_text} numberOfLines={1}>
|
|
|
我的晒单
|
|
|
</Text>
|
...
|
...
|
@@ -587,8 +610,9 @@ export default class MineListHeader extends React.Component { |
|
|
backgroundColor: '#e5e5e5',
|
|
|
}}/>
|
|
|
<View style={styles.row}>
|
|
|
<Image style={styles.row_icon} resizeMode={'contain'}
|
|
|
source={require('../../image/mine_bill_icon.png')}/>
|
|
|
{
|
|
|
iconAll.vipBill.isExist ? <Image style={styles.row_icon} resizeMode={'contain'} source={{uri:iconAll.vipBill.default_ico}}/> : <Image style={styles.row_icon} resizeMode={'contain'} source={require('../../image/mine_bill_icon.png')}/>
|
|
|
}
|
|
|
<Text style={styles.icon_text} numberOfLines={1}>
|
|
|
会员账单信息
|
|
|
</Text>
|
...
|
...
|
@@ -613,7 +637,9 @@ export default class MineListHeader extends React.Component { |
|
|
item.get('state') === 1?
|
|
|
<TouchableOpacity key={i} onPress={() => this.props.onPressItem('mineActivity',item)}>
|
|
|
<View style={styles.row}>
|
|
|
<Image style={styles.row_icon} source={require('../../image/mine_activity_icon.png')}/>
|
|
|
{
|
|
|
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')}/>
|
|
|
}
|
|
|
<Text style={styles.icon_text} numberOfLines={1}>
|
|
|
{item.get('act_name')}
|
|
|
</Text>
|
...
|
...
|
@@ -644,8 +670,9 @@ export default class MineListHeader extends React.Component { |
|
|
|
|
|
<TouchableOpacity onPress={() => this.props.onPressItem('mineFeedback','')}>
|
|
|
<View style={styles.row}>
|
|
|
<Image style={styles.row_icon} resizeMode={'contain'}
|
|
|
source={require('../../image/mine_servicefeedback_icon.png')}/>
|
|
|
{
|
|
|
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')}/>
|
|
|
}
|
|
|
<Text style={styles.icon_text} numberOfLines={1}>
|
|
|
服务与反馈
|
|
|
</Text>
|
...
|
...
|
@@ -837,7 +864,6 @@ let styles = StyleSheet.create({ |
|
|
borderRadius: 30,
|
|
|
borderColor: 'white',
|
|
|
borderWidth: (Platform.OS === 'ios' ? 1.0 : 1.5) / PixelRatio.get(),
|
|
|
resizeMode: 'contain',
|
|
|
},
|
|
|
user_level: {
|
|
|
width: 45,
|
...
|
...
|
|