Authored by uedxwg

底部用户替换

... ... @@ -283,6 +283,15 @@ $.extend({
}
});
//临时修改 footer
function phoneHidden(phone) {
return phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2');
}
if ($('.user-name').text().length === 11) {
$('.user-name').html(phoneHidden($('.user-name').text()));
}
//暴露公共接口
window.cookie = cookie;
... ...