Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
uedxwg
9 years ago
Commit
dbc7d2c7bcd89221005360ed040c1e65a2dfefae
1 parent
0fe30022
优化用户名
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
static/js/common.js
static/js/common.js
View file @
dbc7d2c
...
...
@@ -288,8 +288,8 @@ 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
()));
if
(
$footer
.
find
(
'.user-name'
).
text
().
length
===
11
)
{
$footer
.
find
(
'.user-name'
).
html
(
phoneHidden
(
$footer
.
find
(
'.user-name'
).
text
()));
}
//暴露公共接口
...
...
Please
register
or
login
to post a comment