Authored by lixia.zhang

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

@@ -160,7 +160,7 @@ class UserLogoutContainer extends Component { @@ -160,7 +160,7 @@ class UserLogoutContainer extends Component {
160 gotoLogoutStatus={this._gotoLogoutStatus} 160 gotoLogoutStatus={this._gotoLogoutStatus}
161 hiddenTipModalstate={this._hiddenTipModalstate} 161 hiddenTipModalstate={this._hiddenTipModalstate}
162 naviBackAction={this._naviBackAction} 162 naviBackAction={this._naviBackAction}
163 - gotoOnlineService={this.gotoOnlineService} 163 + gotoOnlineService={this._gotoOnlineService}
164 submitBtnEnable={submitBtnEnable} 164 submitBtnEnable={submitBtnEnable}
165 showModalFlag={showModalFlag} 165 showModalFlag={showModalFlag}
166 imageCheckSwitchState={imageCheckSwitchState} 166 imageCheckSwitchState={imageCheckSwitchState}
@@ -200,7 +200,7 @@ export function gotoOnlineService() { @@ -200,7 +200,7 @@ export function gotoOnlineService() {
200 200
201 export function naviBackAction() { 201 export function naviBackAction() {
202 return (dispatch, getState) => { 202 return (dispatch, getState) => {
203 - ReactNative.NativeModules.YH_UserLogoutHelper.popBackCallBack(); 203 + ReactNative.NativeModules.YH_CommonHelper.popBackCallBack();
204 } 204 }
205 } 205 }
206 206
@@ -240,9 +240,9 @@ export function fetchUserProfile() { @@ -240,9 +240,9 @@ export function fetchUserProfile() {
240 let fetchUserInfo = (uid) => { 240 let fetchUserInfo = (uid) => {
241 return new UserLogoutService(app.host).fetchUserProfile(uid) 241 return new UserLogoutService(app.host).fetchUserProfile(uid)
242 .then(json => { 242 .then(json => {
243 - let mobile = json.mobile;  
244 - let mobileLength = mobile.length;  
245 - if (mobile && mobileLength == 11) { 243 + let hasMobile = json.hasMobile;
  244 + if (hasMobile && hasMobile == 'Y') {
  245 + dispatch(setValidMobileState(true));
246 dispatch(setValidMobileState(true)); 246 dispatch(setValidMobileState(true));
247 }else { 247 }else {
248 dispatch(setValidMobileState(false)); 248 dispatch(setValidMobileState(false));