Authored by 李犇

个人中心增加ProfilesInfoEvent事件监听——review by 陈林

... ... @@ -84,6 +84,22 @@ class MineContainer extends Component {
this.props.actions.onMineCenterRefresh();
}
);
this.subscription6 = NativeAppEventEmitter.addListener(
'ProfilesInfoEvent',
(reminder) => {
if (reminder) {
let profilesInfo = reminder.profilesInfo;
let memberBillNew = reminder.memberBillNew;
if (profilesInfo) {
profilesInfo = JSON.parse(profilesInfo);
}
profilesInfo && this.props.actions.getMineUserInfoSuccess(profilesInfo);
this.props.actions.getMemberBillTaskRedDotSuccess(memberBillNew);
}
}
);
}
componentDidMount() {
... ... @@ -100,6 +116,7 @@ class MineContainer extends Component {
this.subscription3 && this.subscription3.remove();
this.subscription4 && this.subscription4.remove();
this.subscription5 && this.subscription5.remove();
this.subscription6 && this.subscription6.remove();
}
_onPressItem(viewId, data) {
... ...