Showing
1 changed file
with
9 additions
and
0 deletions
@@ -283,6 +283,15 @@ $.extend({ | @@ -283,6 +283,15 @@ $.extend({ | ||
283 | } | 283 | } |
284 | }); | 284 | }); |
285 | 285 | ||
286 | +//临时修改 footer | ||
287 | +function phoneHidden(phone) { | ||
288 | + return phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2'); | ||
289 | +} | ||
290 | + | ||
291 | +if ($('.user-name').text().length === 11) { | ||
292 | + $('.user-name').html(phoneHidden($('.user-name').text())); | ||
293 | +} | ||
294 | + | ||
286 | //暴露公共接口 | 295 | //暴露公共接口 |
287 | window.cookie = cookie; | 296 | window.cookie = cookie; |
288 | 297 |
-
Please register or login to post a comment