微信上传头像修改
This commit is contained in:
parent
133b8af6ca
commit
d8a4eb56cf
|
@ -320,7 +320,6 @@ module Mobile
|
|||
|
||||
se.gender = params[:sex]
|
||||
|
||||
|
||||
if user.save && se.save
|
||||
status = 0
|
||||
else
|
||||
|
|
|
@ -27,6 +27,8 @@ app.controller('EditUserInfoController', ['$scope', 'config','$http', 'auth','$l
|
|||
else{
|
||||
vm.gender = "女";
|
||||
}
|
||||
|
||||
vm.user.img_url = vm.user.img_url +"?t="+Math.random();
|
||||
}
|
||||
);
|
||||
};
|
||||
|
|
|
@ -21,7 +21,6 @@ app.directive('loadHead',['$http','config','auth','$location','alertService',fun
|
|||
).then(function (response) {
|
||||
if(response.data.status == 0){
|
||||
scope.$parent.alertService_1.showMessage('提示',"上传成功",function(){
|
||||
scope.$parent.user = null;
|
||||
scope.$parent.getuserinfo();
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue