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
yyq
8 years ago
Commit
1df6e3672a597352d9b5b09cf49c103784722573
1 parent
b735ceb4
fix
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
web-static/js/home/order-block.js
web-static/js/home/order-block.js
View file @
1df6e36
...
...
@@ -434,6 +434,9 @@ function structureOption($obj, data, selectId) {
var
countyId
;
for
(
i
=
0
;
i
<
data
.
length
;
i
++
)
{
if
(
!
countyId
)
{
countyId
=
data
[
i
].
id
;
}
if
(
data
[
i
].
is_support_express
===
'Y'
)
{
isStar
=
'*'
;
...
...
@@ -457,12 +460,11 @@ function structureOption($obj, data, selectId) {
}
else
if
(
$obj
.
attr
(
'name'
)
===
'county'
)
{
defaultOption
=
'<option value="0">请选择区县</option>'
;
}
else
if
(
$obj
.
attr
(
'name'
)
===
'street'
)
{
selectId
+=
''
;
countyId
=
selectId
.
substr
(
0
,
6
);
defaultOption
=
'<option value="0">请选择乡镇/街道</option>'
;
if
(
countyId
)
{
countyId
+=
''
;
countyId
=
countyId
.
substr
(
0
,
6
);
defaultOption
+=
'<option value="'
+
countyId
+
'">全部</option>'
;
}
}
...
...
Please
register
or
login
to post a comment