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
周少峰
8 years ago
Commit
0c2a5745eb3d800145831596815d11f73c086a3e
1 parent
9f88231a
adress
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
web-static/js/home/order-block.js
web-static/js/home/order-block.js
View file @
0c2a574
...
...
@@ -414,8 +414,8 @@ function getAddress(d, callback) {
data
:
{
id
:
d
.
id
*
1
}
}).
then
(
function
(
d
)
{
structureOption
(
$obj
,
d
.
data
,
selectId
,
d
.
id
);
}).
then
(
function
(
resData
)
{
structureOption
(
$obj
,
resData
.
data
,
selectId
,
d
.
id
);
if
(
typeof
callback
===
'function'
)
{
callback
();
...
...
@@ -456,10 +456,8 @@ function structureOption($obj, data, selectId, countryId) {
}
else
if
(
$obj
.
attr
(
'name'
)
===
'street'
)
{
defaultOption
=
'<option value="0">请选择乡镇/街道</option>'
;
if
(
countyId
)
{
countyId
+=
''
;
countyId
=
countyId
.
substr
(
0
,
6
);
defaultOption
+=
'<option value="'
+
countyId
+
'">全部</option>'
;
if
(
countryId
)
{
defaultOption
+=
'<option value="'
+
countryId
+
'">全部</option>'
;
}
}
...
...
Please
register
or
login
to post a comment