微信上传头像修改

This commit is contained in:
yuanke 2016-09-07 15:14:46 +08:00
parent 133b8af6ca
commit d8a4eb56cf
3 changed files with 2 additions and 2 deletions

View File

@ -320,7 +320,6 @@ module Mobile
se.gender = params[:sex] se.gender = params[:sex]
if user.save && se.save if user.save && se.save
status = 0 status = 0
else else

View File

@ -27,6 +27,8 @@ app.controller('EditUserInfoController', ['$scope', 'config','$http', 'auth','$l
else{ else{
vm.gender = "女"; vm.gender = "女";
} }
vm.user.img_url = vm.user.img_url +"?t="+Math.random();
} }
); );
}; };

View File

@ -21,7 +21,6 @@ app.directive('loadHead',['$http','config','auth','$location','alertService',fun
).then(function (response) { ).then(function (response) {
if(response.data.status == 0){ if(response.data.status == 0){
scope.$parent.alertService_1.showMessage('提示',"上传成功",function(){ scope.$parent.alertService_1.showMessage('提示',"上传成功",function(){
scope.$parent.user = null;
scope.$parent.getuserinfo(); scope.$parent.getuserinfo();
}); });
} }