From d8a4eb56cff5088b20281e17e06659086145587d Mon Sep 17 00:00:00 2001 From: yuanke <249218296@qq.com> Date: Wed, 7 Sep 2016 15:14:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E4=B8=8A=E4=BC=A0=E5=A4=B4?= =?UTF-8?q?=E5=83=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/mobile/apis/users.rb | 1 - public/javascripts/wechat/controllers/edit_userinfo.js | 2 ++ public/javascripts/wechat/directives/load_head.js | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/mobile/apis/users.rb b/app/api/mobile/apis/users.rb index 7989d36d0..3a1a897ee 100644 --- a/app/api/mobile/apis/users.rb +++ b/app/api/mobile/apis/users.rb @@ -320,7 +320,6 @@ module Mobile se.gender = params[:sex] - if user.save && se.save status = 0 else diff --git a/public/javascripts/wechat/controllers/edit_userinfo.js b/public/javascripts/wechat/controllers/edit_userinfo.js index 2e5b356ad..920e9dc0c 100644 --- a/public/javascripts/wechat/controllers/edit_userinfo.js +++ b/public/javascripts/wechat/controllers/edit_userinfo.js @@ -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(); } ); }; diff --git a/public/javascripts/wechat/directives/load_head.js b/public/javascripts/wechat/directives/load_head.js index 54f464dcb..6cbb8e743 100644 --- a/public/javascripts/wechat/directives/load_head.js +++ b/public/javascripts/wechat/directives/load_head.js @@ -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(); }); }