Authored by 李犇

个人中心会员安全等级只在登录时发送网络请求——review by 于良

... ... @@ -50,7 +50,7 @@ export default class MineListHeader extends React.Component {
backgroundColor:'#d0021b',
paddingLeft: 2.5,
paddingRight: 2.5,
paddingTop: 1.5,
paddingTop: 0.5,
borderRadius: 7,
height: 14,
minWidth: 14,
... ... @@ -95,7 +95,7 @@ export default class MineListHeader extends React.Component {
backgroundColor:'#444444',
paddingLeft: 2.5,
paddingRight: 2.5,
paddingTop: 1.5,
paddingTop: 0.5,
borderRadius: 7,
height: 14,
minWidth: 14,
... ... @@ -123,7 +123,7 @@ export default class MineListHeader extends React.Component {
num = 3;
}
return (<Image style={styles.user_level} resizeMode={'stretch'} source={vipPic[num-1]}/>);
return (<Image style={styles.user_level} source={vipPic[num-1]}/>);
}
... ... @@ -212,11 +212,10 @@ export default class MineListHeader extends React.Component {
profile.vip_info.is_student == 0 ? null :
<Image
style={{
width: 36,
height: 15,
marginLeft:4,
width: 27,
height: 16,
marginLeft:5,
}}
resizeMode={'stretch'}
source={require('../../image/mine_vip_stu.png')}
/>
}
... ... @@ -332,7 +331,7 @@ export default class MineListHeader extends React.Component {
backgroundColor: '#f0f0f0',
}}/>
{certificationInfo && certificationInfo.isBindedOrRelated === 'N' ?
{profile.uid != '0' && certificationInfo && certificationInfo.isBindedOrRelated === 'N' ?
<TouchableOpacity onPress={() => this.props.onPressItem('mineCertification','')}>
<View style={styles.sub_row}>
<Image style={styles.row_icon} resizeMode={'contain'}
... ... @@ -693,7 +692,7 @@ let subRowHeight = Math.ceil(35 * DEVICE_WIDTH_RATIO);//雍ヲ蜿キ螳牙 騾夂衍螻ら
let rowheight = 45;//wo的订单类似的高度,我的逛也用这个高度
let orderContainerHeight = 55;
let topHeight = 175 + rowheight + orderContainerHeight + 10 + rowheight + orderContainerHeight + 1 + 10 + rowheight * 3 + 1 + 20 + 60 + 10;
let topHeight = 175 + rowheight + orderContainerHeight + 10 + rowheight + orderContainerHeight + 1 + 10 + rowheight * 3 + 100;
let styles = StyleSheet.create({
container: {
... ...
... ... @@ -513,12 +513,21 @@ export function getCertificationData() {
return (dispatch, getState) => {
let {app, mine} = getState();
return new MineService(app.host).getCertificationData()
.then(json => {
dispatch(getCertificationDataSuccess(json));
let funGetCertificationData = () => {
return new MineService(app.host).getCertificationData()
.then(json => {
dispatch(getCertificationDataSuccess(json));
})
.catch(error => {
});
};
ReactNative.NativeModules.YH_CommonHelper.uid()
.then(data => {
funGetCertificationData();
})
.catch(error => {
});
}
}
... ...