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
Plain Diff
Browse Files
Authored by
biao
9 years ago
Commit
c062ab2c30415a054331921da8dd929f58990e50
2 parents
78903450
41299240
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into fix/issue
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
static/js/me/address-act.js
static/js/me/address-act.js
View file @
c062ab2
...
...
@@ -119,7 +119,11 @@ $submit.on('touchend', function() {
});
// 省市区列表异步加载
$
.
get
(
'/home/locationList'
).
then
(
function
(
html
)
{
$
.
ajax
({
method
:
'GET'
,
url
:
'/home/locationList'
,
timeout
:
60000
}).
then
(
function
(
html
)
{
$addressListPage
.
html
(
html
);
// 省市区
...
...
@@ -141,7 +145,7 @@ $.get('/home/locationList').then(function(html) {
if
(
e
.
target
.
tagName
.
toLowerCase
()
!==
'li'
)
{
$this
=
$this
.
parent
(
'li'
);
}
newArea
.
push
(
$this
.
children
(
'.caption'
).
text
());
newArea
.
push
(
$this
.
children
(
'.caption'
).
text
()
.
trim
()
);
$this
.
siblings
().
hide
();
$this
.
children
(
'ul'
).
show
().
children
(
'li'
).
show
();
...
...
@@ -157,7 +161,7 @@ $.get('/home/locationList').then(function(html) {
var
$this
=
$
(
e
.
target
);
// 填结果到 html
newArea
.
push
(
$this
.
children
(
'.caption'
).
text
());
newArea
.
push
(
$this
.
text
().
trim
());
$
(
'[name="area"]'
).
val
(
newArea
.
join
(
' '
));
$
(
'[name="area_code"]'
).
val
(
$this
.
data
(
'id'
));
...
...
Please
register
or
login
to post a comment