Showing
1 changed file
with
2 additions
and
2 deletions
@@ -288,8 +288,8 @@ function phoneHidden(phone) { | @@ -288,8 +288,8 @@ function phoneHidden(phone) { | ||
288 | return phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2'); | 288 | return phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2'); |
289 | } | 289 | } |
290 | 290 | ||
291 | -if ($('.user-name').text().length === 11) { | ||
292 | - $('.user-name').html(phoneHidden($('.user-name').text())); | 291 | +if ($footer.find('.user-name').text().length === 11) { |
292 | + $footer.find('.user-name').html(phoneHidden($footer.find('.user-name').text())); | ||
293 | } | 293 | } |
294 | 294 | ||
295 | //暴露公共接口 | 295 | //暴露公共接口 |
-
Please register or login to post a comment