Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
d4b05256
Commit
d4b05256
authored
Aug 29, 2024
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
入仓单电话脱敏
parent
a85a14bc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
PrintWarehouseReceipt.vue
src/views/ecw/order/components/PrintWarehouseReceipt.vue
+7
-6
No files found.
src/views/ecw/order/components/PrintWarehouseReceipt.vue
View file @
d4b05256
...
@@ -119,13 +119,14 @@ export default {
...
@@ -119,13 +119,14 @@ export default {
if
(
length
<=
5
)
{
if
(
length
<=
5
)
{
return
phoneNumber
.
slice
(
0
,
-
3
)
+
'
*
'
.
repeat
(
Math
.
min
(
3
,
length
));
return
phoneNumber
.
slice
(
0
,
-
3
)
+
'
*
'
.
repeat
(
Math
.
min
(
3
,
length
));
}
}
// 保留的明文字符数
const
plainLength
=
length
-
5
;
// 尾部保留的明文字符数
const
after
=
Math
.
floor
(
plainLength
/
2
)
// 前面保留的明文字符数
const
before
=
plainLength
-
after
;
const
mid
=
Math
.
floor
(
length
/
2
);
return
phoneNumber
.
slice
(
0
,
before
)
+
'
*
'
.
repeat
(
5
)
+
phoneNumber
.
slice
(
-
after
);
const
offset
=
length
%
2
===
0
?
2
:
3
;
const
start
=
mid
-
offset
;
const
end
=
mid
+
3
;
return
phoneNumber
.
slice
(
0
,
start
)
+
'
*
'
.
repeat
(
5
)
+
phoneNumber
.
slice
(
end
);
}
}
},
},
components
:
{
},
components
:
{
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment