修复性别修改问题

This commit is contained in:
xxy
2020-05-16 03:05:49 +08:00
parent b8b074d40a
commit e24e87b546
6 changed files with 14 additions and 7 deletions

View File

@ -59,9 +59,9 @@
}else{
$("#my_name").html(data.data.username+"<em class=\"ml10\">[修改]</em>");
}
if(data.data.userSex === 0){
if(data.data.userSex === '0'){
$("#my_sex").html("男<em class=\"ml10\">[修改]</em>");
}else if(data.data.userSex === 1){
}else if(data.data.userSex === '1'){
$("#my_sex").html("女<em class=\"ml10\">[修改]</em>");
}else{
$("#my_sex").html("请选择");