Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
jinhu.tung
9 years ago
Commit
7d412f43542df4157926784916fec2b29427fd9d
1 parent
582cd0f6
fixed experiance
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
public/js/plugins/cascading-address.js
public/js/plugins/cascading-address.js
View file @
7d412f4
...
...
@@ -23,7 +23,7 @@ var settings = {
resources
:
'areas'
,
names
:
[
'province'
,
'city'
,
'district'
],
indicators
:
[
'请选择省份'
,
'请选择城市'
,
'请选择区/县'
],
defaultDes
:
'
加载中...
'
,
defaultDes
:
''
,
ajaxSettings
:
{
type
:
'GET'
,
url
:
''
,
...
...
@@ -106,6 +106,8 @@ function selectDistItem(options) {
distItemAreaId
=
options
.
distItemAreaId
,
// 当前选中areaId
config
=
options
.
config
;
var
nextDistItem
;
var
from
;
if
(
distElement
.
hasClass
(
'checked'
))
{
...
...
@@ -128,6 +130,11 @@ function selectDistItem(options) {
// 选择之后关闭当前panel
distItem
.
trigger
(
'click'
);
// 展开下一级
nextDistItem
=
distItem
.
parent
().
next
().
find
(
'.dist-item'
);
if
(
nextDistItem
)
{
nextDistItem
.
trigger
(
'click'
);
}
// console.log('current level:', level)
// console.log('distItemAreaId:', distItemAreaId)
...
...
Please
register
or
login
to post a comment