diff --git a/public/assets/wechat/edit_userinfo.html b/public/assets/wechat/edit_userinfo.html index e4a7a00f2..4b353229f 100644 --- a/public/assets/wechat/edit_userinfo.html +++ b/public/assets/wechat/edit_userinfo.html @@ -16,12 +16,12 @@
性别 - +
- +
diff --git a/public/javascripts/wechat/controllers/edit_userinfo.js b/public/javascripts/wechat/controllers/edit_userinfo.js index 920e9dc0c..f367adf31 100644 --- a/public/javascripts/wechat/controllers/edit_userinfo.js +++ b/public/javascripts/wechat/controllers/edit_userinfo.js @@ -21,13 +21,6 @@ app.controller('EditUserInfoController', ['$scope', 'config','$http', 'auth','$l vm.lastname = vm.user.lastname; vm.mail = vm.user.mail; vm.sex = vm.user.gender; - if(vm.sex == 0){ - vm.gender = "男"; - } - else{ - vm.gender = "女"; - } - vm.user.img_url = vm.user.img_url +"?t="+Math.random(); } ); @@ -67,11 +60,6 @@ app.controller('EditUserInfoController', ['$scope', 'config','$http', 'auth','$l return; } - var sex = 0; - if(vm.gender == "女"){ - sex = 1; - } - if(vm.lastname == ""){ vm.alertService_1.showMessage('提示', '姓名不能为空'); return; @@ -88,7 +76,7 @@ app.controller('EditUserInfoController', ['$scope', 'config','$http', 'auth','$l // } $http.post(config.apiUrl + "users/edit_userinfo", - {token: auth.token(),lastname: vm.lastname, sex: sex, mail: vm.mail} + {token: auth.token(),lastname: vm.lastname, sex: vm.sex, mail: vm.mail} ).then(function(response){ if(response.data.status == 0) {