Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
uedxwg
9 years ago
Commit
82f3104a8f64d79caca490c8c352e8985709ed20
1 parent
17d4bbbb
底部用户替换
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
static/js/common.js
static/js/common.js
View file @
82f3104
...
...
@@ -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
;
...
...
Please
register
or
login
to post a comment