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
周少峰
9 years ago
Commit
ea0f67331d1c5361d5b30e689448f460b030bb4c
1 parent
d85d747c
delete input validate
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
web-static/js/home/address.js
web-static/js/home/order-block.js
web-static/js/order/address.js
web-static/js/order/ensure.js
web-static/js/home/address.js
View file @
ea0f673
...
...
@@ -216,7 +216,7 @@ function blurAction(opt) {
}
if
(
opt
.
inputName
===
'mobile'
)
{
regular
=
/^
\d
+$/
;
// /^
1[3|4|5|8|7][0-9]{9}$/;
regular
=
/^1
[
3|4|5|8|7
][
0-9
]{9}
$/
;
if
(
opt
.
len
!==
11
)
{
msg
=
'手机号码必须是11位的,请确认'
;
...
...
web-static/js/home/order-block.js
View file @
ea0f673
...
...
@@ -492,7 +492,7 @@ function validateForm() {
var
nameReg
=
/^
[\u
4e00-
\u
9fa5
]{2,5}
$/
;
var
addressReg
=
/^
[
a-zA-Z0-9-#()()
\u
4e00-
\u
9fa5
]
+$/
;
var
phoneReg
=
/^
\d
+$/
;
// /^
(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$/;
var
phoneReg
=
/^
(
13
[
0-9
]
|15
[
012356789
]
|17
[
678
]
|18
[
0-9
]
|14
[
57
])[
0-9
]{8}
$/
;
var
telCodeReg
=
/^
[
0-9
]{3,4}
$/
;
var
telReg
=
/^
[
0-9
]{8}
$/
;
var
_right_html
=
'<i class="order-icon icon-right"></i>'
;
...
...
web-static/js/order/address.js
View file @
ea0f673
...
...
@@ -444,9 +444,9 @@ exports.saveAddress = function() {
var
nameReg
=
/^
[\u
4e00-
\u
9fa5
]{2,5}
$/
;
var
addressReg
=
/^
[\s\S]{2,100}
$/
;
var
phoneReg
=
/^
\d
+
$/
;
var
phoneReg
=
/^
1
[
35847
]{1}[
0-9
]{9}
$/
;
var
codeReg
=
/^
[
0-9
]{6}
$/
;
var
emailReg
=
/^
[^
@
]
+
\@[^
@
]
+$/
;
// /^
([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
var
emailReg
=
/^
([
a-zA-Z0-9_
\.\-])
+
\@(([
a-zA-Z0-9
\-])
+
\.)
+
([
a-zA-Z0-9
]{2,4})
+$/
;
var
telCodeReg
=
/^
[
0-9
]{3,5}
$/
;
var
telReg
=
/^
[
0-9
]{5,10}
$/
;
...
...
web-static/js/order/ensure.js
View file @
ea0f673
...
...
@@ -916,7 +916,7 @@ function saveReceiptInfo() {
if
(
finalReceiptMobile
===
receiptMobileStar
)
{
finalReceiptMobile
=
receiptMobile
;
}
else
{
verifymobile
=
/
^
\d
+$/
;
// /
[1][34578][0-9]{9}/;
verifymobile
=
/
[
1
][
34578
][
0-9
]{9}
/
;
if
(
!
verifymobile
.
test
(
finalReceiptMobile
))
{
$
(
'.invoice-phone .enpty-input'
).
removeClass
(
'hide'
);
if
(
finalReceiptMobile
.
length
===
0
)
{
...
...
Please
register
or
login
to post a comment