tts
This commit is contained in:
parent
9dcfda0cb9
commit
3481ad5392
|
|
@ -65,12 +65,24 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'echarts','echarts-th
|
||||||
}
|
}
|
||||||
$city.citypicker();
|
$city.citypicker();
|
||||||
|
|
||||||
|
var $dropdown = $('.city-picker-dropdown');
|
||||||
|
if ($dropdown.length) {
|
||||||
|
var offset = $city.offset();
|
||||||
|
$dropdown.css({
|
||||||
|
top: offset.top + $city.outerHeight(),
|
||||||
|
left: offset.left,
|
||||||
|
position: 'absolute',
|
||||||
|
display: 'block',
|
||||||
|
'z-index': 9999
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
$city.off("cp:updated").on("cp:updated", function () {
|
$city.off("cp:updated").on("cp:updated", function () {
|
||||||
var citypicker = $(this).data("citypicker");
|
var citypicker = $(this).data("citypicker");
|
||||||
var code = citypicker.getCode("district") || citypicker.getCode("city") || citypicker.getCode("province");
|
var code = citypicker.getCode("district") || citypicker.getCode("city") || citypicker.getCode("province");
|
||||||
$("#select_area_id").val(code);
|
$("#select_area_id").val(code);
|
||||||
});
|
});
|
||||||
}, 500);
|
}, 800);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user