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
e995d9acc35d090fdeb117b4f02dfcedd33b72c6
1 parent
89ff1fc9
fix order problem
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
template/www.yohobuy.com/partials/home/order-edit-tpl.phtml
web-static/js/home/order-block.js
web-static/sass/home/_order-block.css
template/www.yohobuy.com/partials/home/order-edit-tpl.phtml
View file @
e995d9a
...
...
@@ -19,7 +19,7 @@
</li>
<li>
<label><i class="form-required">*</i>详细地址:</label>
<input type="text" class="inp
w271
" placeholder="街道名称或小区名称" name="address" value="{{editInfo.address}}">
<input type="text" class="inp" placeholder="街道名称或小区名称" name="address" value="{{editInfo.address}}">
<span class="error"><i class="order-icon icon-error"></i><b>请填写详细地址</b></span>
</li>
<li>
...
...
web-static/js/home/order-block.js
View file @
e995d9a
...
...
@@ -425,7 +425,7 @@ function validateForm() {
$err_tel
=
$tel
.
siblings
(
'.error'
);
var
nameReg
=
/^
[\u
4e00-
\u
9fa5
]{2,5}
$/
;
var
addressReg
=
/^
[
a-zA-Z0-9-#()
\u
4e00-
\u
9fa5
]
+$/
;
var
addressReg
=
/^
[
a-zA-Z0-9-#()
()
\u
4e00-
\u
9fa5
]
+$/
;
var
phoneReg
=
/^
(
13
[
0-9
]
|15
[
012356789
]
|17
[
678
]
|18
[
0-9
]
|14
[
57
])[
0-9
]{8}
$/
;
var
telCodeReg
=
/^
[
0-9
]{3,5}
$/
;
var
telReg
=
/^
[
0-9
]{5,10}
$/
;
...
...
web-static/sass/home/_order-block.css
View file @
e995d9a
...
...
@@ -450,6 +450,7 @@
margin
:
20px
0
;
line-height
:
26px
;
font-size
:
14px
;
white-space
:
nowrap
;
}
.form-required
{
color
:
#d70400
;
...
...
@@ -496,7 +497,7 @@
}
.error
{
display
:
none
;
margin-left
:
2
0px
;
margin-left
:
1
0px
;
color
:
#db3d50
;
font-size
:
12px
;
.icon-error{
...
...
Please
register
or
login
to post a comment