Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gk
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
micro_app
gk
Commits
862d7ac4
Commit
862d7ac4
authored
Jan 23, 2026
by
daniel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(customer): 移除手机号验证
parent
da65f50e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
customer.jsp
src/main/webapp/WEB-INF/views/cmpt/customer.jsp
+6
-6
No files found.
src/main/webapp/WEB-INF/views/cmpt/customer.jsp
View file @
862d7ac4
...
@@ -107,13 +107,13 @@
...
@@ -107,13 +107,13 @@
save
:
function
()
{
save
:
function
()
{
var
telNo
=
$
.
trim
(
customerV
.
$data
.
customer
.
mobile
);
var
telNo
=
$
.
trim
(
customerV
.
$data
.
customer
.
mobile
);
var
telPhone
=
/^
(
0|86|17951
)?(
13
[
0-9
]
|14
[
5-9
]
|15
[
0-35-9
]
|16
[
2567
]
|17
[
0-8
]
|18
[
0-9
]
|19
[
0-35-9
])[
0-9
]{8}
$/
;
//
var telPhone = /^(0|86|17951)?(13[0-9]|14[5-9]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])[0-9]{8}$/;
const
fixedTel
=
/^
(
0
[
0-9
]{2,3}
-
)([
2-9
][
0-9
]{6,7})(
-
[
0-9
]{1,4})?
$/
;
//
const fixedTel = /^(0[0-9]{2,3}-)([2-9][0-9]{6,7})(-[0-9]{1,4})?$/;
if
(
!
telPhone
.
test
(
telNo
)
&&
!
fixedTel
.
test
(
telNo
))
{
//
if (!telPhone.test(telNo) && !fixedTel.test(telNo)) {
layer
.
alert
(
'联系电话格式不正确,请输入正确的固定电话或手机号'
);
//
layer.alert('联系电话格式不正确,请输入正确的固定电话或手机号');
return
false
;
//
return false;
}
//
}
$
.
ajax
({
$
.
ajax
({
url
:
'/gk/customer/saveOrUpdate'
,
url
:
'/gk/customer/saveOrUpdate'
,
data
:
customerV
.
$data
.
customer
,
data
:
customerV
.
$data
.
customer
,
...
...
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