Authored by 于良

bug fix: http://jira.yoho.cn:8888/browse/YH-2655 review by 阿瑟

@@ -173,9 +173,7 @@ class UserContainer extends React.Component { @@ -173,9 +173,7 @@ class UserContainer extends React.Component {
173 case 2: 173 case 2:
174 { 174 {
175 console.log('编辑个人资料'); 175 console.log('编辑个人资料');
176 - // console.log('actions = ' + this.actions);  
177 - this.props.actions.goToStatsPage(GO_TO_SETTING);  
178 - 176 + this.props.actions.goToSetting();
179 } 177 }
180 break; 178 break;
181 default: 179 default:
@@ -66,6 +66,13 @@ export function goToMessageCenter() { @@ -66,6 +66,13 @@ export function goToMessageCenter() {
66 }; 66 };
67 } 67 }
68 68
  69 +export function goToSetting() {
  70 + Actions.Setting();
  71 + return {
  72 + type: GO_TO_SETTING,
  73 + };
  74 +}
  75 +
69 export function userDidLogout() { 76 export function userDidLogout() {
70 return { 77 return {
71 type: USER_DID_LOGOUT, 78 type: USER_DID_LOGOUT,
@@ -708,7 +715,7 @@ function parseReply(json) { @@ -708,7 +715,7 @@ function parseReply(json) {
708 let self = { 715 let self = {
709 avatar: reply && reply.headIcon ? reply.headIcon : '', 716 avatar: reply && reply.headIcon ? reply.headIcon : '',
710 backgroundImage: reply && reply.bgPic ? reply.bgPic : '', 717 backgroundImage: reply && reply.bgPic ? reply.bgPic : '',
711 - uid: reply && reply.uid ? reply.uid : '', 718 + uid: reply && reply.uid ? reply.uid : 0,
712 name: reply && reply.nickName ? reply.nickName : '', 719 name: reply && reply.nickName ? reply.nickName : '',
713 signature: reply && reply.signature ? reply.signature : '', 720 signature: reply && reply.signature ? reply.signature : '',
714 }; 721 };