...
|
...
|
@@ -22,40 +22,8 @@ export default class MineListHeader extends React.Component { |
|
|
this._renderMineOrderNumberPoint = this._renderMineOrderNumberPoint.bind(this);
|
|
|
this._renderMinePropertyNumberPoint = this._renderMinePropertyNumberPoint.bind(this);
|
|
|
this._renderVip = this._renderVip.bind(this);
|
|
|
/*this.state = {
|
|
|
offsetHigh: 0,
|
|
|
};*/
|
|
|
}
|
|
|
|
|
|
/*componentWillReceiveProps(nextProps){
|
|
|
//计算高度
|
|
|
let oHigh=0;
|
|
|
if(nextProps.certificationInfo&&nextProps.certificationInfo.isBindedOrRelated==='N'){
|
|
|
oHigh=oHigh+subRowHeight;
|
|
|
}
|
|
|
if(nextProps.announcement&&nextProps.announcement.open==='Y'){
|
|
|
oHigh=oHigh+subRowHeight;
|
|
|
}
|
|
|
if((nextProps.certificationInfo.isBindedOrRelated==='N')||(nextProps.announcement&&nextProps.announcement.open==='Y')){
|
|
|
oHigh=oHigh+10;
|
|
|
}
|
|
|
if(nextProps.globalOrderData&&nextProps.globalOrderData.hasOrder==='Y'){
|
|
|
oHigh=oHigh+rowheight;
|
|
|
}
|
|
|
if(nextProps.memberBill&&nextProps.memberBill.bill.open==='Y'){
|
|
|
oHigh=oHigh+rowheight;
|
|
|
}
|
|
|
|
|
|
if(nextProps.activityListInfo&&nextProps.activityListInfo.list&&nextProps.activityListInfo.list.toArray().length>0){
|
|
|
console.log('=====');
|
|
|
oHigh=oHigh+rowheight*nextProps.activityListInfo.list.length;
|
|
|
}
|
|
|
|
|
|
this.setState({
|
|
|
offsetHigh: oHigh,
|
|
|
});
|
|
|
}*/
|
|
|
|
|
|
/**
|
|
|
* 我的订单中的数字展示
|
|
|
* */
|
...
|
...
|
@@ -169,6 +137,7 @@ export default class MineListHeader extends React.Component { |
|
|
announcement,
|
|
|
globalOrderData,
|
|
|
iconAll,
|
|
|
instalmentStatus,
|
|
|
} = this.props;
|
|
|
|
|
|
let oHigh = 0;
|
...
|
...
|
@@ -559,7 +528,7 @@ export default class MineListHeader extends React.Component { |
|
|
}
|
|
|
<Text style={styles.order_text}>有货分期</Text>
|
|
|
{
|
|
|
(profile.uid != '0') ? this._renderMinePropertyNumberPoint(0) : this._renderMinePropertyNumberPoint('去开通')
|
|
|
(profile.uid === '0' || instalmentStatus.status === '0') ? this._renderMinePropertyNumberPoint('去开通') : this._renderMinePropertyNumberPoint(0)
|
|
|
}
|
|
|
</View>
|
|
|
</TouchableOpacity>
|
...
|
...
|
|