...
|
...
|
@@ -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)
|
...
|
...
|
|