PC省市区级联选择器(原创)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>Cascader 级联选择器</title>
<link rel="stylesheet" href="https://www.jq22.com/demo/Cascader202404082232/css/common.css">
<link rel="stylesheet" href="https://www.jq22.com/demo/Cascader202404082232/css/Cascader.css">
<script src="https://www.jq22.com/jquery/jquery-1.10.2.js"></script>
<script src="https://www.jq22.com/demo/Cascader202404082232/js/layer.js"></script>
<script src="https://www.jq22.com/demo/Cascader202404082232/js/Cascader.js"></script>
</head>
<style>
.form_group {
padding: 0 80px;
}
.form_box {
padding: 20px 0;
}
h2 {
font-weight: 400;
color: #1f2f3d;
}
p {
font-size: 14px;
color: #5e6d82;
line-height: 3em;
}
.form_item {
position: relative;
margin-left: 8px;
width: 275px;
height: 40px;
}
#areas{
border-radius: 4px;
border: 1px solid #dcdfe6;
box-sizing: border-box;
color: #606266;
height: 40px;
line-height: 40px;
padding: 0 15px;
width: 100%;
}
</style>
<body>
<div class="form_group">
<div class="form_box">
<h2>基础用法</h2>
<p>默认 click 触发子菜单</p>
<div class="form_item">
<input type="text" id="areas" readonly autocomplete="off" placeholder="请选择省/市/区" value="">
</div>
</div>
</div>
</body>
<script>
$(function () {
//省市区级联
setSelArea()
})
function setSelArea() {
var myLayerOpne = new LayerOpen({
arrowClick: function ({ name, pinyin, code, label }, callback) {
let list = []
if (!code) { return false; }
// $.ajax({
// url: url,
// type: 'post',
// dataType: 'json',
// data: {
// 'parent_code': code,
// },
// async: false,
// error: function (data) { },
// success: function (json) {
// console.log(json);
// if (json.Code == 200) {
// console.log(json.Data);
// for (var i = 0; i < json.Data.length; i++) {
// if (label === 'province') {
// let cityList = new Array()
// cityList['Name'] = json.Data.Name
// cityList['label'] = 'city'
// cityList['Code'] = json.Data.Code
// list.push(cityList)
// } else if (label === 'city') {
// let districtList = new Array()
// districtList['Name'] = json.Data.Name
// districtList['label'] = 'district'
// districtList['Code'] = json.Data.Code
// list.push(districtList)
// }
// }
// }
// }
// });
console.log(name, pinyin, code, label);
/* 模拟请求数据:(测试接口时请删除) start */
if (label === 'province') {
list = [
{
"Id": 50,
"Code": "140100",
"Name": "太原",
"Fullname": "太原市",
"Enname": "",
"Parent_code": "140000", "label": "city",
"Provincial_capital": "1",
"Longitude": "112.5561970",
"Latitude": "37.8768570",
"Deep": "5",
"Pinyin": "taiyuan"
},
{
"Id": 51,
"Code": "140200",
"Name": "大同",
"Fullname": "大同市",
"Enname": "",
"Parent_code": "140000", "label": "city",
"Provincial_capital": "0",
"Longitude": "113.3733450",
"Latitude": "40.1027840",
"Deep": "5",
"Pinyin": "datong"
},
{
"Id": 52,
"Code": "140300",
"Name": "阳泉",
"Fullname": "阳泉市",
"Enname": "",
"Parent_code": "140000", "label": "city",
"Provincial_capital": "0",
"Longitude": "113.5870160",
"Latitude": "37.8628980",
"Deep": "5",
"Pinyin": "yangquan"
},
{
"Id": 53,
"Code": "140400",
"Name": "长治",
"Fullname": "长治市",
"Enname": "",
"Parent_code": "140000", "label": "city",
"Provincial_capital": "0",
"Longitude": "113.1237950",
"Latitude": "36.2010420",
"Deep": "5",
"Pinyin": "changzhi"
},
{
"Id": 54,
"Code": "140500",
"Name": "晋城",
"Fullname": "晋城市",
"Enname": "",
"Parent_code": "140000", "label": "city",
"Provincial_capital": "0",
"Longitude": "112.8581100",
"Latitude": "35.4968190",
"Deep": "5",
"Pinyin": "jincheng"
},
{
"Id": 55,
"Code": "140600",
"Name": "朔州",
"Fullname": "朔州市",
"Enname": "",
"Parent_code": "140000", "label": "city",
"Provincial_capital": "0",
"Longitude": "112.4396130",
"Latitude": "39.3381260",
"Deep": "5",
"Pinyin": "shuozhou"
},
{
"Id": 56,
"Code": "140700",
"Name": "晋中",
"Fullname": "晋中市",
"Enname": "",
"Parent_code": "140000", "label": "city",
"Provincial_capital": "0",
"Longitude": "112.7593350",
"Latitude": "37.6935830",
"Deep": "5",
"Pinyin": "jinzhong"
},
{
"Id": 57,
"Code": "140800",
"Name": "运城",
"Fullname": "运城市",
"Enname": "",
"Parent_code": "140000", "label": "city",
"Provincial_capital": "0",
"Longitude": "111.0134820",
"Latitude": "35.0330440",
"Deep": "5",
"Pinyin": "yuncheng"
},
{
"Id": 58,
"Code": "140900",
"Name": "忻州",
"Fullname": "忻州市",
"Enname": "",
"Parent_code": "140000", "label": "city",
"Provincial_capital": "0",
"Longitude": "112.7406242",
"Latitude": "38.4223834",
"Deep": "5",
"Pinyin": "xinzhou"
},
{
"Id": 59,
"Code": "141000",
"Name": "临汾",
"Fullname": "临汾市",
"Enname": "",
"Parent_code": "140000", "label": "city",
"Provincial_capital": "0",
"Longitude": "111.5256880",
"Latitude": "36.0940340",
"Deep": "5",
"Pinyin": "linfen"
},
{
"Id": 60,
"Code": "141100",
"Name": "吕梁",
"Fullname": "吕梁市",
"Enname": "",
"Parent_code": "140000", "label": "city",
"Provincial_capital": "0",
"Longitude": "111.1509820",
"Latitude": "37.5250910",
"Deep": "5",
"Pinyin": "lvliang"
}
]
} else if (label === 'city') {
list = [
{
"Id": 642,
"Code": "140501",
"Name": "市辖区",
"Fullname": "市辖区",
"Enname": "",
"Parent_code": "140500", "label": "district",
"Provincial_capital": "0",
"Longitude": "112.8585782",
"Latitude": "35.4962846",
"Deep": "6",
"Pinyin": "shixiaqu"
},
{
"Id": 643,
"Code": "140502",
"Name": "城区",
"Fullname": "城区",
"Enname": "",
"Parent_code": "140500", "label": "district",
"Provincial_capital": "0",
"Longitude": null,
"Latitude": null,
"Deep": "6",
"Pinyin": "chengqu"
},
{
"Id": 644,
"Code": "140521",
"Name": "沁水县",
"Fullname": "沁水县",
"Enname": "",
"Parent_code": "140500", "label": "district",
"Provincial_capital": "0",
"Longitude": null,
"Latitude": null,
"Deep": "6",
"Pinyin": "qingshuixian"
},
{
"Id": 645,
"Code": "140522",
"Name": "阳城县",
"Fullname": "阳城县",
"Enname": "",
"Parent_code": "140500", "label": "district",
"Provincial_capital": "0",
"Longitude": null,
"Latitude": null,
"Deep": "6",
"Pinyin": "yangchengxian"
},
{
"Id": 646,
"Code": "140524",
"Name": "陵川县",
"Fullname": "陵川县",
"Enname": "",
"Parent_code": "140500", "label": "district",
"Provincial_capital": "0",
"Longitude": null,
"Latitude": null,
"Deep": "6",
"Pinyin": "lingchuanxian"
},
{
"Id": 647,
"Code": "140525",
"Name": "泽州县",
"Fullname": "泽州县",
"Enname": "",
"Parent_code": "140500", "label": "district",
"Provincial_capital": "0",
"Longitude": null,
"Latitude": null,
"Deep": "6",
"Pinyin": "zechuanxian"
},
{
"Id": 648,
"Code": "140581",
"Name": "高平市",
"Fullname": "高平市",
"Enname": "",
"Parent_code": "140500", "label": "district",
"Provincial_capital": "0",
"Longitude": null,
"Latitude": null,
"Deep": "6",
"Pinyin": "gaopingshi"
}
]
}
/* 模拟请求数据:(测试接口时请删除) end */
callback(list)
},
ele: '#areas',
initArea: { //默认选中(必传)的地区信息
'province': '山西',
"provincePinyin": "shanxi",
"provinceCode": 140000,
'city': '晋城',
"cityPinyin": "jincheng",
"cityCode": 140500,
'district': '沁水县',
"districtPinyin": "qingshuixian",
"districtCode": 140521,
},
list: [ // 省份数据-可无需接口
{
"Id": 1,
"Code": "110000",
"Name": "北京",
"Fullname": "北京市",
"Enname": "",
"Parent_code": "11001", "label": "province",
"Provincial_capital": "0",
"Longitude": "116.7313940",
"Latitude": "39.9104330",
"Deep": "4",
"Pinyin": "beijing"
},
{
"Id": 2,
"Code": "120000",
"Name": "天津",
"Fullname": "天津市",
"Enname": "",
"Parent_code": "11001", "label": "province",
"Provincial_capital": "0",
"Longitude": "117.2080870",
"Latitude": "39.0910910",
"Deep": "4",
"Pinyin": "tianjin"
},
{
"Id": 3,
"Code": "130000",
"Name": "河北",
"Fullname": "河北省",
"Enname": "",
"Parent_code": "11001", "label": "province",
"Provincial_capital": "0",
"Longitude": "114.5214030",
"Latitude": "38.0482920",
"Deep": "4",
"Pinyin": "hebei"
},
{
"Id": 4,
"Code": "140000",
"Name": "山西",
"Fullname": "山西省",
"Enname": "",
"Parent_code": "11001", "label": "province",
"Provincial_capital": "0",
"Longitude": "112.5561970",
"Latitude": "37.8768570",
"Deep": "4",
"Pinyin": "shanxi"
},
{
"Id": 5,
"Code": "150000",
"Name": "内蒙古",
"Fullname": "内蒙古自治区",
"Enname": "",
"Parent_code": "11001", "label": "province",
"Provincial_capital": "0",
"Longitude": "111.7554260",
"Latitude": "40.8481190",
"Deep": "4",
"Pinyin": "neimenggu"
},
{
"Id": 6,
"Code": "210000",
"Name": "辽宁",
"Fullname": "辽宁省",
"Enname": "",
"Parent_code": "11001", "label": "province",
"Provincial_capital": "0",
"Longitude": "123.4711220",
"Latitude": "41.6836570",
"Deep": "4",
"Pinyin": "liaoning"
},
{
"Id": 7,
"Code": "220000",
"Name": "吉林",
"Fullname": "吉林省",
"Enname": "",
"Parent_code": "11001", "label": "province",
"Provincial_capital": "0",
"Longitude": "125.3302530",
"Latitude": "43.8227950",
"Deep": "4",
"Pinyin": "jilin"
},
{
"Id": 8,
"Code": "230000",
"Name": "黑龙江",
"Fullname": "黑龙江省",
"Enname": "",
"Parent_code": "11001", "label": "province",
"Provincial_capital": "0",
"Longitude": "126.5418830",
"Latitude": "45.8086100",
"Deep": "4",
"Pinyin": "heilongjiang"
},
{
"Id": 9,
"Code": "310000",
"Name": "上海",
"Fullname": "上海市",
"Enname": "",
"Parent_code": "11001", "label": "province",
"Provincial_capital": "0",
"Longitude": "121.4802480",
"Latitude": "31.2362760",
"Deep": "4",
"Pinyin": "shanghai"
},
{
"Id": 10,
"Code": "320000",
"Name": "江苏",
"Fullname": "江苏省",
"Enname": "",
"Parent_code": "11001", "label": "province",
"Provincial_capital": "0",
"Longitude": "118.8031810",
"Latitude": "32.0657390",
"Deep": "4",
"Pinyin": "jiangsu"
},
{
"Id": 11,
"Code": "330000",
"Name": "浙江",
"Fullname": "浙江省",
"Enname": "",
"Parent_code": "11001", "label": "province",
"Provincial_capital": "0",
"Longitude": "120.2164810",
"Latitude": "30.2518630",
"Deep": "4",
"Pinyin": "zhejiang"
},
{
"Id": 12,
"Code": "340000",
"Name": "安徽",
"Fullname": "安徽省",
"Enname": "",
"Parent_code": "11001", "label": "province",
"Provincial_capital": "0",
"Longitude": "117.2336740",
"Latitude": "31.8269720",
"Deep": "4",
"Pinyin": "anhui"
},
{
"Id": 13,
"Code": "350000",
"Name": "福建",
"Fullname": "福建省",
"Enname": "",
"Parent_code": "11001", "label": "province",
"Provincial_capital": "0",
"Longitude": "119.3029030",
"Latitude": "26.0805530",
"Deep": "4",
"Pinyin": "fujian"
},
{
"Id": 14,
"Code": "360000",
"Name": "江西",
"Fullname": "江西省",
"Enname": "",
"Parent_code": "11001", "label": "province",
"Provincial_capital": "0",
"Longitude": "115.8645510",
"Latitude": "28.6886710",
"Deep": "4",
"Pinyin": "jiangxi"
},
{
"Id": 15,
"Code": "370000",
"Name": "山东",
"Fullname": "山东省",
"Enname": "",
"Parent_code": "11001", "label": "province",
"Provincial_capital": "0",
"Longitude": "117.1265410",
"Latitude": "36.6584000",
"Deep": "4",
"Pinyin": "shandong"
},
{
"Id": 16,
"Code": "410000",
"Name": "河南",
"Fullname": "河南省",
"Enname": "",
"Parent_code": "11001", "label": "province",
"Provincial_capital": "0",
"Longitude": "113.6315570",
"Latitude": "34.7526100",
"Deep": "4",
"Pinyin": "henan"
},
{
"Id": 17,
"Code": "420000",
"Name": "湖北",
"Fullname": "湖北省",
"Enname": "",
"Parent_code": "11001", "label": "province",
"Provincial_capital": "0",
"Longitude": "114.3117540",
"Latitude": "30.5986040",
"Deep": "4",
"Pinyin": "hubei"
},
{
"Id": 18,
"Code": "430000",
"Name": "湖南",
"Fullname": "湖南省",
"Enname": "",
"Parent_code": "11001", "label": "province",
"Provincial_capital": "0",
"Longitude": "112.9453580",
"Latitude": "28.2344510",
"Deep": "4",
"Pinyin": "hunan"
},
{
"Id": 19,
"Code": "440000",
"Name": "广东",
"Fullname": "广东省",
"Enname": "",
"Parent_code": "11001", "label": "province",
"Provincial_capital": "0",
"Longitude": "113.2707580",
"Latitude": "23.1355890",
"Deep": "4",
"Pinyin": "guangdong"
},
{
"Id": 20,
"Code": "450000",
"Name": "广西",
"Fullname": "广西壮族自治区",
"Enname": "",
"Parent_code": "11001", "label": "province",
"Provincial_capital": "0",
"Longitude": "108.3729580",
"Latitude": "22.8238100",
"Deep": "4",
"Pinyin": "guangxi"
},
{
"Id": 21,
"Code": "460000",
"Name": "海南",
"Fullname": "海南省",
"Enname": "",
"Parent_code": "11001", "label": "province",
"Provincial_capital": "0",
"Longitude": "110.2066840",
"Latitude": "20.0521270",
"Deep": "4",
"Pinyin": "hainan"
},
{
"Id": 22,
"Code": "500000",
"Name": "重庆",
"Fullname": "重庆市",
"Enname": "",
"Parent_code": "11001", "label": "province",
"Provincial_capital": "0",
"Longitude": "106.5569010",
"Latitude": "29.5700450",
"Deep": "4",
"Pinyin": "chongqing"
},
{
"Id": 23,
"Code": "510000",
"Name": "四川",
"Fullname": "四川省",
"Enname": "",
"Parent_code": "11001", "label": "province",
"Provincial_capital": "0",
"Longitude": "104.0727420",
"Latitude": "30.5789840",
"Deep": "4",
"Pinyin": "sichuan"
},
{
"Id": 24,
"Code": "520000",
"Name": "贵州",
"Fullname": "贵州省",
"Enname": "",
"Parent_code": "11001", "label": "province",
"Provincial_capital": "0",
"Longitude": "106.6348580",
"Latitude": "26.6524340",
"Deep": "4",
"Pinyin": "guizhou"
},
{
"Id": 25,
"Code": "530000",
"Name": "云南",
"Fullname": "云南省",
"Enname": "",
"Parent_code": "11001", "label": "province",
"Provincial_capital": "0",
"Longitude": "102.8401680",
"Latitude": "24.8878330",
"Deep": "4",
"Pinyin": "yunnan"
},
{
"Id": 26,
"Code": "540000",
"Name": "西藏",
"Fullname": "西藏自治区",
"Enname": "",
"Parent_code": "11001", "label": "province",
"Provincial_capital": "0",
"Longitude": "91.1784540",
"Latitude": "29.6595040",
"Deep": "4",
"Pinyin": "xizang"
},
{
"Id": 27,
"Code": "610000",
"Name": "陕西",
"Fullname": "陕西省",
"Enname": "",
"Parent_code": "11001", "label": "province",
"Provincial_capital": "0",
"Longitude": "108.9461660",
"Latitude": "34.3493820",
"Deep": "4",
"Pinyin": "sx"
},
{
"Id": 28,
"Code": "620000",
"Name": "甘肃",
"Fullname": "甘肃省",
"Enname": "",
"Parent_code": "11001", "label": "province",
"Provincial_capital": "0",
"Longitude": "103.8407550",
"Latitude": "36.0667460",
"Deep": "4",
"Pinyin": "gansu"
},
{
"Id": 29,
"Code": "630000",
"Name": "青海",
"Fullname": "青海省",
"Enname": "",
"Parent_code": "11001", "label": "province",
"Provincial_capital": "0",
"Longitude": "101.7845620",
"Latitude": "36.6232360",
"Deep": "4",
"Pinyin": "qinghai"
},
{
"Id": 30,
"Code": "640000",
"Name": "宁夏",
"Fullname": "宁夏回族自治区",
"Enname": "",
"Parent_code": "11001", "label": "province",
"Provincial_capital": "0",
"Longitude": "106.2374280",
"Latitude": "38.4937880",
"Deep": "4",
"Pinyin": "ningxia"
},
{
"Id": 31,
"Code": "650000",
"Name": "新疆",
"Fullname": "新疆维吾尔自治区",
"Enname": "",
"Parent_code": "11001", "label": "province",
"Provincial_capital": "0",
"Longitude": "87.6232720",
"Latitude": "43.8315650",
"Deep": "4",
"Pinyin": "xinjiang"
},
{
"Id": 32,
"Code": "710000",
"Name": "台湾",
"Fullname": "台湾省",
"Enname": "",
"Parent_code": "11001", "label": "province",
"Provincial_capital": "0",
"Longitude": "121.5733890",
"Latitude": "25.0457620",
"Deep": "4",
"Pinyin": "taiwan"
},
{
"Id": 33,
"Code": "810000",
"Name": "香港",
"Fullname": "香港特别行政区",
"Enname": "",
"Parent_code": "11001", "label": "province",
"Provincial_capital": "0",
"Longitude": "114.1751960",
"Latitude": "22.3630370",
"Deep": "4",
"Pinyin": "xianggang"
},
{
"Id": 34,
"Code": "820000",
"Name": "澳门",
"Fullname": "澳门特别行政区",
"Enname": "",
"Parent_code": "11001", "label": "province",
"Provincial_capital": "0",
"Longitude": "113.5497470",
"Latitude": "22.1931700",
"Deep": "4",
"Pinyin": "aomen"
}],
cityList: [ //市区数据-接口获取后请在此填入
{
"Id": 50,
"Code": "140100",
"Name": "太原",
"Fullname": "太原市",
"Enname": "",
"Parent_code": "140000", "label": "city",
"Provincial_capital": "1",
"Longitude": "112.5561970",
"Latitude": "37.8768570",
"Deep": "5",
"Pinyin": "taiyuan"
},
{
"Id": 51,
"Code": "140200",
"Name": "大同",
"Fullname": "大同市",
"Enname": "",
"Parent_code": "140000", "label": "city",
"Provincial_capital": "0",
"Longitude": "113.3733450",
"Latitude": "40.1027840",
"Deep": "5",
"Pinyin": "datong"
},
{
"Id": 52,
"Code": "140300",
"Name": "阳泉",
"Fullname": "阳泉市",
"Enname": "",
"Parent_code": "140000", "label": "city",
"Provincial_capital": "0",
"Longitude": "113.5870160",
"Latitude": "37.8628980",
"Deep": "5",
"Pinyin": "yangquan"
},
{
"Id": 53,
"Code": "140400",
"Name": "长治",
"Fullname": "长治市",
"Enname": "",
"Parent_code": "140000", "label": "city",
"Provincial_capital": "0",
"Longitude": "113.1237950",
"Latitude": "36.2010420",
"Deep": "5",
"Pinyin": "changzhi"
},
{
"Id": 54,
"Code": "140500",
"Name": "晋城",
"Fullname": "晋城市",
"Enname": "",
"Parent_code": "140000", "label": "city",
"Provincial_capital": "0",
"Longitude": "112.8581100",
"Latitude": "35.4968190",
"Deep": "5",
"Pinyin": "jincheng"
},
{
"Id": 55,
"Code": "140600",
"Name": "朔州",
"Fullname": "朔州市",
"Enname": "",
"Parent_code": "140000", "label": "city",
"Provincial_capital": "0",
"Longitude": "112.4396130",
"Latitude": "39.3381260",
"Deep": "5",
"Pinyin": "shuozhou"
},
{
"Id": 56,
"Code": "140700",
"Name": "晋中",
"Fullname": "晋中市",
"Enname": "",
"Parent_code": "140000", "label": "city",
"Provincial_capital": "0",
"Longitude": "112.7593350",
"Latitude": "37.6935830",
"Deep": "5",
"Pinyin": "jinzhong"
},
{
"Id": 57,
"Code": "140800",
"Name": "运城",
"Fullname": "运城市",
"Enname": "",
"Parent_code": "140000", "label": "city",
"Provincial_capital": "0",
"Longitude": "111.0134820",
"Latitude": "35.0330440",
"Deep": "5",
"Pinyin": "yuncheng"
},
{
"Id": 58,
"Code": "140900",
"Name": "忻州",
"Fullname": "忻州市",
"Enname": "",
"Parent_code": "140000", "label": "city",
"Provincial_capital": "0",
"Longitude": "112.7406242",
"Latitude": "38.4223834",
"Deep": "5",
"Pinyin": "xinzhou"
},
{
"Id": 59,
"Code": "141000",
"Name": "临汾",
"Fullname": "临汾市",
"Enname": "",
"Parent_code": "140000", "label": "city",
"Provincial_capital": "0",
"Longitude": "111.5256880",
"Latitude": "36.0940340",
"Deep": "5",
"Pinyin": "linfen"
},
{
"Id": 60,
"Code": "141100",
"Name": "吕梁",
"Fullname": "吕梁市",
"Enname": "",
"Parent_code": "140000", "label": "city",
"Provincial_capital": "0",
"Longitude": "111.1509820",
"Latitude": "37.5250910",
"Deep": "5",
"Pinyin": "lvliang"
}],
districtList: [//县数据-接口获取后请在此填入
{
"Id": 642,
"Code": "140501",
"Name": "市辖区",
"Fullname": "市辖区",
"Enname": "",
"Parent_code": "140500", "label": "district",
"Provincial_capital": "0",
"Longitude": "112.8585782",
"Latitude": "35.4962846",
"Deep": "6",
"Pinyin": "shixiaqu"
},
{
"Id": 643,
"Code": "140502",
"Name": "城区",
"Fullname": "城区",
"Enname": "",
"Parent_code": "140500", "label": "district",
"Provincial_capital": "0",
"Longitude": null,
"Latitude": null,
"Deep": "6",
"Pinyin": "chengqu"
},
{
"Id": 644,
"Code": "140521",
"Name": "沁水县",
"Fullname": "沁水县",
"Enname": "",
"Parent_code": "140500", "label": "district",
"Provincial_capital": "0",
"Longitude": null,
"Latitude": null,
"Deep": "6",
"Pinyin": "qingshuixian"
},
{
"Id": 645,
"Code": "140522",
"Name": "阳城县",
"Fullname": "阳城县",
"Enname": "",
"Parent_code": "140500", "label": "district",
"Provincial_capital": "0",
"Longitude": null,
"Latitude": null,
"Deep": "6",
"Pinyin": "yangchengxian"
},
{
"Id": 646,
"Code": "140524",
"Name": "陵川县",
"Fullname": "陵川县",
"Enname": "",
"Parent_code": "140500", "label": "district",
"Provincial_capital": "0",
"Longitude": null,
"Latitude": null,
"Deep": "6",
"Pinyin": "lingchuanxian"
},
{
"Id": 647,
"Code": "140525",
"Name": "泽州县",
"Fullname": "泽州县",
"Enname": "",
"Parent_code": "140500", "label": "district",
"Provincial_capital": "0",
"Longitude": null,
"Latitude": null,
"Deep": "6",
"Pinyin": "zechuanxian"
},
{
"Id": 648,
"Code": "140581",
"Name": "高平市",
"Fullname": "高平市",
"Enname": "",
"Parent_code": "140500", "label": "district",
"Provincial_capital": "0",
"Longitude": null,
"Latitude": null,
"Deep": "6",
"Pinyin": "gaopingshi"
}
]
})
$('#areas').click(function (e) {
myLayerOpne.init()
})
}
</script>
</html>
页:
[1]