Authored by lixia.zhang

用户注销back事件添加到通用helper中

... ... @@ -160,7 +160,7 @@ class UserLogoutContainer extends Component {
gotoLogoutStatus={this._gotoLogoutStatus}
hiddenTipModalstate={this._hiddenTipModalstate}
naviBackAction={this._naviBackAction}
gotoOnlineService={this.gotoOnlineService}
gotoOnlineService={this._gotoOnlineService}
submitBtnEnable={submitBtnEnable}
showModalFlag={showModalFlag}
imageCheckSwitchState={imageCheckSwitchState}
... ...
... ... @@ -200,7 +200,7 @@ export function gotoOnlineService() {
export function naviBackAction() {
return (dispatch, getState) => {
ReactNative.NativeModules.YH_UserLogoutHelper.popBackCallBack();
ReactNative.NativeModules.YH_CommonHelper.popBackCallBack();
}
}
... ... @@ -240,9 +240,9 @@ export function fetchUserProfile() {
let fetchUserInfo = (uid) => {
return new UserLogoutService(app.host).fetchUserProfile(uid)
.then(json => {
let mobile = json.mobile;
let mobileLength = mobile.length;
if (mobile && mobileLength == 11) {
let hasMobile = json.hasMobile;
if (hasMobile && hasMobile == 'Y') {
dispatch(setValidMobileState(true));
dispatch(setValidMobileState(true));
}else {
dispatch(setValidMobileState(false));
... ...