Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-settings
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit eb85530f
authored
May 11, 2022
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
驻店电话校验规则修改
1 parent
517bc85a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
src/views/account/addAccount.vue
src/views/account/components/baseInfo.vue
src/views/account/editAccount.vue
src/views/baseInfo/editInfo.vue
src/views/account/addAccount.vue
View file @
eb85530
...
@@ -285,7 +285,7 @@ export default {
...
@@ -285,7 +285,7 @@ export default {
// }, 100)
// }, 100)
// return
// return
// }
// }
const
reg
=
/^
((
0
\d{2,3}
-
\d{7,8})
|
(
1
[
345
78
]\d{9}))
$/
const
reg
=
/^
((
0
\d{2,3}
-
\d{7,8})
|
(
1
[
345
6789
]\d{9}))
$/
if
(
this
.
accountAddForm
.
residentPhone
)
{
if
(
this
.
accountAddForm
.
residentPhone
)
{
const
result
=
reg
.
test
(
this
.
accountAddForm
.
residentPhone
)
const
result
=
reg
.
test
(
this
.
accountAddForm
.
residentPhone
)
if
(
!
result
)
{
if
(
!
result
)
{
...
...
src/views/account/components/baseInfo.vue
View file @
eb85530
...
@@ -180,7 +180,7 @@ export default {
...
@@ -180,7 +180,7 @@ export default {
}
}
}
}
const
validatePhoneTwo
=
(
rule
,
value
,
callback
)
=>
{
const
validatePhoneTwo
=
(
rule
,
value
,
callback
)
=>
{
const
reg
=
/^
((
0
\d{2,3}
-
\d{7,8})
|
(
1
[
345
78
]\d{9}))
$/
const
reg
=
/^
((
0
\d{2,3}
-
\d{7,8})
|
(
1
[
345
6789
]\d{9}))
$/
if
(
value
==
''
||
value
==
undefined
||
value
==
null
)
{
if
(
value
==
''
||
value
==
undefined
||
value
==
null
)
{
callback
()
callback
()
}
else
{
}
else
{
...
...
src/views/account/editAccount.vue
View file @
eb85530
...
@@ -301,7 +301,7 @@ export default {
...
@@ -301,7 +301,7 @@ export default {
// }, 100)
// }, 100)
// return
// return
// }
// }
const
reg
=
/^
((
0
\d{2,3}
-
\d{7,8})
|
(
1
[
345
78
]\d{9}))
$/
const
reg
=
/^
((
0
\d{2,3}
-
\d{7,8})
|
(
1
[
345
6789
]\d{9}))
$/
if
(
this
.
accountAddForm
.
residentPhone
)
{
if
(
this
.
accountAddForm
.
residentPhone
)
{
const
result
=
reg
.
test
(
this
.
accountAddForm
.
residentPhone
)
const
result
=
reg
.
test
(
this
.
accountAddForm
.
residentPhone
)
if
(
!
result
)
{
if
(
!
result
)
{
...
...
src/views/baseInfo/editInfo.vue
View file @
eb85530
...
@@ -64,7 +64,7 @@ export default {
...
@@ -64,7 +64,7 @@ export default {
},
},
data
()
{
data
()
{
const
validatePhoneTwo
=
(
rule
,
value
,
callback
)
=>
{
const
validatePhoneTwo
=
(
rule
,
value
,
callback
)
=>
{
const
reg
=
/^
((
0
\d{2,3}
-
\d{7,8})
|
(
1
[
345
78
]\d{9}))
$/
const
reg
=
/^
((
0
\d{2,3}
-
\d{7,8})
|
(
1
[
345
6789
]\d{9}))
$/
if
(
value
==
''
||
value
==
undefined
||
value
==
null
)
{
if
(
value
==
''
||
value
==
undefined
||
value
==
null
)
{
callback
()
callback
()
}
else
{
}
else
{
...
@@ -246,7 +246,7 @@ export default {
...
@@ -246,7 +246,7 @@ export default {
},
},
handleSave
()
{
handleSave
()
{
const
params
=
this
.
infoForm
const
params
=
this
.
infoForm
const
reg
=
/^
((
0
\d{2,3}
-
\d{7,8})
|
(
1
[
345
78
]\d{9}))
$/
const
reg
=
/^
((
0
\d{2,3}
-
\d{7,8})
|
(
1
[
345
6789
]\d{9}))
$/
if
(
params
.
residentPhone
)
{
if
(
params
.
residentPhone
)
{
const
result
=
reg
.
test
(
params
.
residentPhone
)
const
result
=
reg
.
test
(
params
.
residentPhone
)
if
(
!
result
)
{
if
(
!
result
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment