Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
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
xugong
hls-xcmg-vue-app
Commits
057c70e4
Commit
057c70e4
authored
Apr 18, 2023
by
jiacheng.mao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.git忽略更新文件目录
2.手机号正则校验调整
parent
aced6013
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
.gitignore
.gitignore
+1
-0
hlsUtil.js
src/scripts/hlsUtil.js
+4
-4
No files found.
.gitignore
View file @
057c70e4
...
...
@@ -30,3 +30,4 @@ log.txt
Thumbs.db
UserInterfaceState.xcuserstate
/www/index.html
src/scripts/hlsUtil.js
View file @
057c70e4
...
...
@@ -237,7 +237,7 @@ export default {
phoneNumber
:
function
(
str
)
{
// ^((13[0-9])|(14[5,7])|(15[0-3,5-9])|(17[0,3,5-8])|(18[0-9])|166|198|199|(147))\\d{8}$
let
reg
=
/^
((
13
[
0-9
]{1})
|
(
14
[
0-9
]{1})
|
(
15
[
0-9
]{1})
|
(
1
7
[
0-9
]{1})
|
(
19
[
0-9
]{1})
|
(
18
[
0-9
]{1})
|166|198|199|
(
147
))
+
\d{8}
$/
let
reg
=
/^
((
13
[
0-9
]{1})
|
(
14
[
0-9
]{1})
|
(
15
[
0-9
]{1})
|
(
1
6
[
0-9
]{1})
|
(
17
[
0-9
]{1})
|
(
19
[
0-9
]{1})
|
(
18
[
0-9
]{1}
))
+
\d{8}
$/
return
reg
.
test
(
str
)
},
/**
...
...
@@ -246,7 +246,7 @@ export default {
* @returns {boolean}
*/
phoneNumber86
:
function
(
str
)
{
let
reg
=
/^
(\+
86|
\+
86+
\s)
+
(((
13
[
0-9
]{1})
|
(
14
[
0-9
]{1})
|
(
15
[
0-9
]{1})
|
(
1
7
[
0-9
]{1})
|
(
19
[
0-9
]{1})
|
(
18
[
0-9
]{1})
|166|198|199|
(
147
))
+
\d{8})
$/
let
reg
=
/^
(\+
86|
\+
86+
\s)
+
(((
13
[
0-9
]{1})
|
(
14
[
0-9
]{1})
|
(
15
[
0-9
]{1})
|
(
1
6
[
0-9
]{1})
|
(
17
[
0-9
]{1})
|
(
19
[
0-9
]{1})
|
(
18
[
0-9
]{1}
))
+
\d{8})
$/
return
reg
.
test
(
str
)
},
/**
...
...
@@ -428,13 +428,13 @@ export default {
function
uploadSuccess
(
result
)
{
success
(
JSON
.
parse
(
result
.
response
))
}
function
fileError
()
{
window
.
hlsPopup
.
hideLoading
()
console
.
log
(
'upload error source '
+
error
.
source
)
console
.
log
(
'upload error target '
+
error
.
target
)
}
ft
.
upload
(
path
,
url
,
uploadSuccess
,
fileError
,
options
)
}
else
{
...
...
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