代码优化,解决手机号不显示的问题

This commit is contained in:
bayi
2018-05-21 10:55:03 +08:00
parent f3d9ef19e0
commit b82d4541a2
+1 -1
View File
@@ -434,7 +434,7 @@ function selectUserInfo(){
var mobile = result.mobile;
//加载个人信息时候为该变量赋值
_mobile = result.mobile;
$('#user_mobile').html(mobile.substring(0,3)+'****'+mobile.substring(7)+'<br><span class="tag"><!--<small>土豪</small>--></span>');
$('#user_mobile').html('<br><span class="tag"><small>'+mobile.substring(0,3)+'****'+mobile.substring(7)+'</small></span>');
if(result.headImg != null && result.headImg.length > 0){
$('#user_headImg').attr('src', result.headImg);
}