由于微信小程序的选择器为省市区选择器共3列 如我仅需要省市2列的选择器 就需要我们另寻他法找来找去没有合适的 只能自己写了
1. 首先我们把所需要的省数据 市县数据放在一个 p_c.js 文件里面,使用的时候可以通过util 来引用
//p_c.js
module.exports = { "province": [ { "title": "上海市", "weight": 1, "evaluation_value": 0, "hint": "", "code": "sh", "disabled": false }, { "title": "江苏省", "weight": 3, "evaluation_value": 0, "hint": "", "code": "js", "disabled": false }, { "title": "浙江省", "weight": 5, "evaluation_value": 0, "hint": "", "code": "zj", "disabled": false }, { "title": "安徽省", "weight": 10, "evaluation_value": 0, "code": "ah", "disabled": false }, { "title": "北京市", "weight": 20, "evaluation_value": 0, "code": "bj", "disabled": false }, { "title": "重庆市", "weight": 30, "evaluation_value": 0, "code": "cq", "disabled": false }, { "title": "福建省", "weight": 40, "evaluation_value": 0, "code": "fj", "disabled": false }, { "title": "甘肃省", "weight": 50, "evaluation_value": 0, "code": "gs", "disabled": false }, { "title": "广东省", "weight": 60, "evaluation_value": 0, "code": "gd", "disabled": false }, { "title": "广西壮族自治区", "weight": 70, "evaluation_value": 0, "code": "gx", "disabled": false }, { "title": "贵州省", "weight": 80, "evaluation_value": 0, "code": "gz", "disabled": false }, { "title": "海南省", "weight": 90, "evaluation_value": 0, "code": "hn1", "disabled": false }, { "title": "河北省", "weight": 100, "evaluation_value": 0, "code": "hb1", "disabled": false }, { "title": "黑龙江省", "weight": 110, "evaluation_value": 0, "code": "hlj", "disabled": false }, { "title": "河南省", "weight": 120, "evaluation_value": 0, "code": "hn2", "disabled": false }, { "title": "香港特别行政区", "weight": 130, "evaluation_value": 0, "code": "xg", "disabled": false }, { "title": "湖北省", "weight": 140, "evaluation_value": 0, "code": "hb2", "disabled": false }, { "title": "湖南省", "weight": 150, "evaluation_value": 0, "code": "hn3", "disabled": false }, { "title": "江西省", "weight": 170, "evaluation_value": 0, "code": "jx", "disabled": false }, { "title": "吉林省", "weight": 180, "evaluation_value": 0, "code": "jl", "disabled": false }, { "title": "辽宁省", "weight": 190, "evaluation_value": 0, "code": "ln", "disabled": false }, { "title": "澳门特别行政区", "weight": 200, "evaluation_value": 0, "code": "am", "disabled": false }, { "title": "内蒙古自治区", "weight": 210, "evaluation_value": 0, "code": "nmg", "disabled": false }, { "title": "宁夏回族自治区", "weight": 220, "evaluation_value": 0, "code": "nx", "disabled": false }, { "title": "青海省", "weight": 230, "evaluation_value": 0, "code": "qh", "disabled": false }, { "title": "山东省", "weight": 240, "evaluation_value": 0, "code": "sd", "disabled": false }, { "title": "陕西省", "weight": 260, "evaluation_value": 0, "code": "sx1", "disabled": false }, { "title": "山西省", "weight": 270, "evaluation_value": 0, "code": "sx2", "disabled": false }, { "title": "四川省", "weight": 280, "evaluation_value": 0, "code": "sc", "disabled": false }, { "title": "台湾省", "weight": 290, "evaluation_value": 0, "code": "tw", "disabled": false }, { "title": "天津市", "weight": 300, "evaluation_value": 0, "code": "tj", "disabled": false }, { "title": "新疆维吾尔自治区", "weight": 310, "evaluation_value": 0, "code": "xj", "disabled": false }, { "title": "西藏自治区", "weight": 320, "evaluation_value": 0, "code": "xz", "disabled": false }, { "title": "云南省", "weight": 330, "evaluation_value": 0, "code": "yn", "disabled": false }, { "title": "其他国家", "weight": 350, "evaluation_value": 0, "code": "qt", "disabled": false } ], "city": [ { "title": "合肥市", "weight": 10, "evaluation_value": 0, "disabled": false, "parent_code": "ah" }, { "title": "黄山市", "weight": 20, "evaluation_value": 0, "disabled": false, "parent_code": "ah" }, { "title": "安庆市", "weight": 30, "evaluation_value": 0, "disabled": false, "parent_code": "ah" }, { "title": "芜湖市", "weight": 40, "evaluation_value": 0, "disabled": false, "parent_code": "ah" }, { "title": "蚌埠市", "weight": 50, "evaluation_value": 0, "disabled": false, "parent_code": "ah" }, { "title": "淮北市", "weight": 60, "evaluation_value": 0, "disabled": false, "parent_code": "ah" }, { "title": "六安市", "weight": 70, "evaluation_value": 0, "disabled": false, "parent_code": "ah" }, { "title": "阜阳市", "weight": 80, "evaluation_value": 0, "disabled": false, "parent_code": "ah" }, { "title": "宿州市", "weight": 90, "evaluation_value": 0, "disabled": false, "parent_code": "ah" }, { "title": "巢湖市", "weight": 100, "evaluation_value": 0, "disabled": false, "parent_code": "ah" }, { "title": "马鞍山市", "weight": 110, "evaluation_value": 0, "disabled": false, "parent_code": "ah" }, { "title": "淮南市", "weight": 120, "evaluation_value": 0, "disabled": false, "parent_code": "ah" }, { "title": "滁州市", "weight": 130, "evaluation_value": 0, "disabled": false, "parent_code": "ah" }, { "title": "池州市", "weight": 140, "evaluation_value": 0, "disabled": false, "parent_code": "ah" }, { "title": "铜陵市", "weight": 150, "evaluation_value": 0, "disabled": false, "parent_code": "ah" }, { "title": "亳州市", "weight": 160, "evaluation_value": 0, "disabled": false, "parent_code": "ah" }, { "title": "安徽其他地区", "weight": 170, "evaluation_value": 0, "disabled": false, "parent_code": "ah" }, { "title": "朝阳区", "weight": 180, "evaluation_value": 0, "disabled": false, "parent_code": "bj" }, { "title": "海淀区", "weight": 190, "evaluation_value": 0, "disabled": false, "parent_code": "bj" }, { "title": "西城区", "weight": 200, "evaluation_value": 0, "disabled": false, "parent_code": "bj" }, { "title": "东城区", "weight": 210, "evaluation_value": 0, "disabled": false, "parent_code": "bj" }, { "title": "崇文区", "weight": 220, "evaluation_value": 0, "disabled": false, "parent_code": "bj" }, { "title": "宣武区", "weight": 230, "evaluation_value": 0, "disabled": false, "parent_code": "bj" }, { "title": "丰台区", "weight": 240, "evaluation_value": 0, "disabled": false, "parent_code": "bj" }, { "title": "石景山区", "weight": 250, "evaluation_value": 0, "disabled": false, "parent_code": "bj" }, { "title": "门头沟", "weight": 260, "evaluation_value": 0, "disabled": false, "parent_code": "bj" }, { "title": "房山区", "weight": 270, "evaluation_value": 0, "disabled": false, "parent_code": "bj" }, { "title": "通州区", "weight": 280, "evaluation_value": 0, "disabled": false, "parent_code": "bj" }, { "title": "大兴区", "weight": 290, "evaluation_value": 0, "disabled": false, "parent_code": "bj" }, { "title": "顺义区", "weight": 300, "evaluation_value": 0, "disabled": false, "parent_code": "bj" }, { "title": "怀柔区", "weight": 310, "evaluation_value": 0, "disabled": false, "parent_code": "bj" }, { "title": "密云区", "weight": 320, "evaluation_value": 0, "disabled": false, "parent_code": "bj" }, { "title": "昌平区", "weight": 330, "evaluation_value": 0, "disabled": false, "parent_code": "bj" }, { "title": "平谷区", "weight": 340, "evaluation_value": 0, "disabled": false, "parent_code": "bj" }, { "title": "延庆县", "weight": 350, "evaluation_value": 0, "disabled": false, "parent_code": "bj" }, { "title": "北京其他地区", "weight": 360, "evaluation_value": 0, "disabled": false, "parent_code": "bj" }, { "title": "万州区", "weight": 370, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "涪陵区", "weight": 380, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "梁平区", "weight": 390, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "南川区", "weight": 400, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "潼南区", "weight": 410, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "大足区", "weight": 420, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "黔江区", "weight": 430, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "武隆县", "weight": 440, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "丰都县", "weight": 450, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "奉节县", "weight": 460, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "开县", "weight": 470, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "云阳县", "weight": 480, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "忠县", "weight": 490, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "巫溪县", "weight": 500, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "巫山县", "weight": 510, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "石柱县", "weight": 520, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "彭水县", "weight": 530, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "垫江县", "weight": 540, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "酉阳县", "weight": 550, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "秀山县", "weight": 560, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "璧山县", "weight": 570, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "荣昌县", "weight": 580, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "铜梁县", "weight": 590, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "合川区", "weight": 600, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "巴南区", "weight": 610, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "北碚区", "weight": 620, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "江津区", "weight": 630, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "渝北区", "weight": 640, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "长寿区", "weight": 650, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "永川区", "weight": 660, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "江北区", "weight": 670, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "南岸区", "weight": 680, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "九龙坡区", "weight": 690, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "沙坪坝区", "weight": 700, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "大渡口区", "weight": 710, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "綦江区", "weight": 720, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "渝中区", "weight": 730, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "高新区", "weight": 740, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "北部新区", "weight": 750, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "城口县", "weight": 760, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "重庆其他地区", "weight": 770, "evaluation_value": 0, "disabled": false, "parent_code": "cq" }, { "title": "福州市", "weight": 780, "evaluation_value": 0, "disabled": false, "parent_code": "fj" }, { "title": "厦门市", "weight": 790, "evaluation_value": 0, "disabled": false, "parent_code": "fj" }, { "title": "泉州市", "weight": 800, "evaluation_value": 0, "disabled": false, "parent_code": "fj" }, { "title": "漳州市", "weight": 810, "evaluation_value": 0, "disabled": false, "parent_code": "fj" }, { "title": "莆田市", "weight": 820, "evaluation_value": 0, "disabled": false, "parent_code": "fj" }, { "title": "宁德市", "weight": 830, "evaluation_value": 0, "disabled": false, "parent_code": "fj" }, { "title": "南平市", "weight": 840, "evaluation_value": 0, "disabled": false, "parent_code": "fj" }, { "title": "三明市", "weight": 850, "evaluation_value": 0, "disabled": false, "parent_code": "fj" }, { "title": "龙岩市", "weight": 860, "evaluation_value": 0, "disabled": false, "parent_code": "fj" }, { "title": "福建其他地区", "weight": 870, "evaluation_value": 0, "disabled": false, "parent_code": "fj" }, { "title": "兰州市", "weight": 880, "evaluation_value": 0, "disabled": false, "parent_code": "gs" }, { "title": "天水市", "weight": 890, "evaluation_value": 0, "disabled": false, "parent_code": "gs" }, { "title": "武威市", "weight": 900, "evaluation_value": 0, "disabled": false, "parent_code": "gs" }, { "title": "酒泉市", "weight": 910, "evaluation_value": 0, "disabled": false, "parent_code": "gs" }, { "title": "张掖市", "weight": 920, "evaluation_value": 0, "disabled": false, "parent_code": "gs" }, { "title": "定西市", "weight": 930, "evaluation_value": 0, "disabled": false, "parent_code": "gs" }, { "title": "嘉峪关市", "weight": 940, "evaluation_value": 0, "disabled": false, "parent_code": "gs" }, { "title": "平凉市", "weight": 950, "evaluation_value": 0, "disabled": false, "parent_code": "gs" }, { "title": "庆阳市", "weight": 960, "evaluation_value": 0, "disabled": false, "parent_code": "gs" }, { "title": "白银市", "weight": 970, "evaluation_value": 0, "disabled": false, "parent_code": "gs" }, { "title": "陇南市", "weight": 980, "evaluation_value": 0, "disabled": false, "parent_code": "gs" }, { "title": "金昌市", "weight": 990, "evaluation_value": 0, "disabled": false, "parent_code": "gs" }, { "title": "临夏回族自治州", "weight": 1000, "evaluation_value": 0, "disabled": false, "parent_code": "gs" }, { "title": "甘南藏族自治州", "weight": 1010, "evaluation_value": 0, "disabled": false, "parent_code": "gs" }, { "title": "甘肃其他地区", "weight": 1020, "evaluation_value": 0, "disabled": false, "parent_code": "gs" }, { "title": "深圳市", "weight": 1030, "evaluation_value": 0, "disabled": false, "parent_code": "gd" }, { "title": "广州市", "weight": 1040, "evaluation_value": 0, "disabled": false, "parent_code": "gd" }, { "title": "东莞市", "weight": 1050, "evaluation_value": 0, "disabled": false, "parent_code": "gd" }, { "title": "惠州市", "weight": 1060, "evaluation_value": 0, "disabled": false, "parent_code": "gd" }, { "title": "佛山市", "weight": 1070, "evaluation_value": 0, "disabled": false, "parent_code": "gd" }, { "title": "汕头市", "weight": 1080, "evaluation_value": 0, "disabled": false, "parent_code": "gd" }, { "title": "中山市", "weight": 1090, "evaluation_value": 0, "disabled": false, "parent_code": "gd" }, { "title": "珠海市", "weight": 1100, "evaluation_value": 0, "disabled": false, "parent_code": "gd" }, { "title": "湛江市", "weight": 1110, "evaluation_value": 0, "disabled": false, "parent_code": "gd" }, { "title": "江门市", "weight": 1120, "evaluation_value": 0, "disabled": false, "parent_code": "gd" }, { "title": "河源市", "weight": 1130, "evaluation_value": 0, "disabled": false, "parent_code": "gd" }, { "title": "潮州市", "weight": 1140, "evaluation_value": 0, "disabled": false, "parent_code": "gd" }, { "title": "梅州市", "weight": 1150, "evaluation_value": 0, "disabled": false, "parent_code": "gd" }, { "title": "揭阳市", "weight": 1160, "evaluation_value": 0, "disabled": false, "parent_code": "gd" }, { "title": "茂名市", "weight": 1170, "evaluation_value": 0, "disabled": false, "parent_code": "gd" }, { "title": "肇庆市", "weight": 1180, "evaluation_value": 0, "disabled": false, "parent_code": "gd" }, { "title": "韶关市", "weight": 1190, "evaluation_value": 0, "disabled": false, "parent_code": "gd" }, { "title": "清远市", "weight": 1200, "evaluation_value": 0, "disabled": false, "parent_code": "gd" }, { "title": "汕尾市", "weight": 1210, "evaluation_value": 0, "disabled": false, "parent_code": "gd" }, { "title": "云浮市", "weight": 1220, "evaluation_value": 0, "disabled": false, "parent_code": "gd" }, { "title": "阳江市", "weight": 1230, "evaluation_value": 0, "disabled": false, "parent_code": "gd" }, { "title": "广东其他地区", "weight": 1240, "evaluation_value": 0, "disabled": false, "parent_code": "gd" }, { "title": "南宁市", "weight": 1250, "evaluation_value": 0, "disabled": false, "parent_code": "gx" }, { "title": "桂林市", "weight": 1260, "evaluation_value": 0, "disabled": false, "parent_code": "gx" }, { "title": "柳州市", "weight": 1270, "evaluation_value": 0, "disabled": false, "parent_code": "gx" }, { "title": "玉林市", "weight": 1280, "evaluation_value": 0, "disabled": false, "parent_code": "gx" }, { "title": "贵港市", "weight": 1290, "evaluation_value": 0, "disabled": false, "parent_code": "gx" }, { "title": "梧州市", "weight": 1300, "evaluation_value": 0, "disabled": false, "parent_code": "gx" }, { "title": "北海市", "weight": 1310, "evaluation_value": 0, "disabled": false, "parent_code": "gx" }, { "title": "百色市", "weight": 1320, "evaluation_value": 0, "disabled": false, "parent_code": "gx" }, { "title": "河池市", "weight": 1330, "evaluation_value": 0, "disabled": false, "parent_code": "gx" }, { "title": "钦州市", "weight": 1340, "evaluation_value": 0, "disabled": false, "parent_code": "gx" }, { "title": "防城港市", "weight": 1350, "evaluation_value": 0, "disabled": false, "parent_code": "gx" }, { "title": "来宾市", "weight": 1360, "evaluation_value": 0, "disabled": false, "parent_code": "gx" }, { "title": "崇左市", "weight": 1370, "evaluation_value": 0, "disabled": false, "parent_code": "gx" }, { "title": "贺州市", "weight": 1380, "evaluation_value": 0, "disabled": false, "parent_code": "gx" }, { "title": "广西其他地区", "weight": 1390, "evaluation_value": 0, "disabled": false, "parent_code": "gx" }, { "title": "贵阳市", "weight": 1400, "evaluation_value": 0, "disabled": false, "parent_code": "gz" }, { "title": "遵义市", "weight": 1410, "evaluation_value": 0, "disabled": false, "parent_code": "gz" }, { "title": "黔东南苗族侗族", "weight": 1420, "evaluation_value": 0, "disabled": false, "parent_code": "gz" }, { "title": "安顺市", "weight": 1430, "evaluation_value": 0, "disabled": false, "parent_code": "gz" }, { "title": "黔南布依族苗族", "weight": 1440, "evaluation_value": 0, "disabled": false, "parent_code": "gz" }, { "title": "毕节地区", "weight": 1450, "evaluation_value": 0, "disabled": false, "parent_code": "gz" }, { "title": "六盘水市", "weight": 1460, "evaluation_value": 0, "disabled": false, "parent_code": "gz" }, { "title": "铜仁地区", "weight": 1470, "evaluation_value": 0, "disabled": false, "parent_code": "gz" }, { "title": "黔西南布依族苗族", "weight": 1480, "evaluation_value": 0, "disabled": false, "parent_code": "gz" }, { "title": "贵州其他地区", "weight": 1490, "evaluation_value": 0, "disabled": false, "parent_code": "gz" }, { "title": "三亚市", "weight": 1500, "evaluation_value": 0, "disabled": false, "parent_code": "hn1" }, { "title": "海口市", "weight": 1510, "evaluation_value": 0, "disabled": false, "parent_code": "hn1" }, { "title": "海南其他地区", "weight": 1520, "evaluation_value": 0, "disabled": false, "parent_code": "hn1" }, { "title": "石家庄市", "weight": 1530, "evaluation_value": 0, "disabled": false, "parent_code": "hb1" }, { "title": "保定市", "weight": 1540, "evaluation_value": 0, "disabled": false, "parent_code": "hb1" }, { "title": "唐山市", "weight": 1550, "evaluation_value": 0, "disabled": false, "parent_code": "hb1" }, { "title": "沧州市", "weight": 1560, "evaluation_value": 0, "disabled": false, "parent_code": "hb1" }, { "title": "邯郸市", "weight": 1570, "evaluation_value": 0, "disabled": false, "parent_code": "hb1" }, { "title": "廊坊市", "weight": 1580, "evaluation_value": 0, "disabled": false, "parent_code": "hb1" }, { "title": "邢台市", "weight": 1590, "evaluation_value": 0, "disabled": false, "parent_code": "hb1" }, { "title": "衡水市", "weight": 1600, "evaluation_value": 0, "disabled": false, "parent_code": "hb1" }, { "title": "秦皇岛市", "weight": 1610, "evaluation_value": 0, "disabled": false, "parent_code": "hb1" }, { "title": "张家口市", "weight": 1620, "evaluation_value": 0, "disabled": false, "parent_code": "hb1" }, { "title": "承德市", "weight": 1630, "evaluation_value": 0, "disabled": false, "parent_code": "hb1" }, { "title": "河北其他地区", "weight": 1640, "evaluation_value": 0, "disabled": false, "parent_code": "hb1" }, { "title": "哈尔滨市", "weight": 1650, "evaluation_value": 0, "disabled": false, "parent_code": "hlj" }, { "title": "齐齐哈尔市", "weight": 1660, "evaluation_value": 0, "disabled": false, "parent_code": "hlj" }, { "title": "大庆市", "weight": 1670, "evaluation_value": 0, "disabled": false, "parent_code": "hlj" }, { "title": "牡丹江市", "weight": 1680, "evaluation_value": 0, "disabled": false, "parent_code": "hlj" }, { "title": "佳木斯市", "weight": 1690, "evaluation_value": 0, "disabled": false, "parent_code": "hlj" }, { "title": "鸡西市", "weight": 1700, "evaluation_value": 0, "disabled": false, "parent_code": "hlj" }, { "title": "黑河市", "weight": 1710, "evaluation_value": 0, "disabled": false, "parent_code": "hlj" }, { "title": "绥化市", "weight": 1720, "evaluation_value": 0, "disabled": false, "parent_code": "hlj" }, { "title": "双鸭山市", "weight": 1730, "evaluation_value": 0, "disabled": false, "parent_code": "hlj" }, { "title": "伊春市", "weight": 1740, "evaluation_value": 0, "disabled": false, "parent_code": "hlj" }, { "title": "鹤岗市", "weight": 1750, "evaluation_value": 0, "disabled": false, "parent_code": "hlj" }, { "title": "大兴安岭地区", "weight": 1760, "evaluation_value": 0, "disabled": false, "parent_code": "hlj" }, { "title": "七台河市", "weight": 1770, "evaluation_value": 0, "disabled": false, "parent_code": "hlj" }, { "title": "黑龙江其他地区", "weight": 1780, "evaluation_value": 0, "disabled": false, "parent_code": "hlj" }, { "title": "郑州市", "weight": 1790, "evaluation_value": 0, "disabled": false, "parent_code": "hn2" }, { "title": "南阳市", "weight": 1800, "evaluation_value": 0, "disabled": false, "parent_code": "hn2" }, { "title": "新乡市", "weight": 1810, "evaluation_value": 0, "disabled": false, "parent_code": "hn2" }, { "title": "洛阳市", "weight": 1820, "evaluation_value": 0, "disabled": false, "parent_code": "hn2" }, { "title": "安阳市", "weight": 1830, "evaluation_value": 0, "disabled": false, "parent_code": "hn2" }, { "title": "开封市", "weight": 1840, "evaluation_value": 0, "disabled": false, "parent_code": "hn2" }, { "title": "信阳市", "weight": 1850, "evaluation_value": 0, "disabled": false, "parent_code": "hn2" }, { "title": "焦作市", "weight": 1860, "evaluation_value": 0, "disabled": false, "parent_code": "hn2" }, { "title": "平顶山市", "weight": 1870, "evaluation_value": 0, "disabled": false, "parent_code": "hn2" }, { "title": "周口市", "weight": 1880, "evaluation_value": 0, "disabled": false, "parent_code": "hn2" }, { "title": "三门峡市", "weight": 1890, "evaluation_value": 0, "disabled": false, "parent_code": "hn2" }, { "title": "商丘市", "weight": 1900, "evaluation_value": 0, "disabled": false, "parent_code": "hn2" }, { "title": "驻马店市", "weight": 1910, "evaluation_value": 0, "disabled": false, "parent_code": "hn2" }, { "title": "许昌市", "weight": 1920, "evaluation_value": 0, "disabled": false, "parent_code": "hn2" }, { "title": "濮阳市", "weight": 1930, "evaluation_value": 0, "disabled": false, "parent_code": "hn2" }, { "title": "漯河市", "weight": 1940, "evaluation_value": 0, "disabled": false, "parent_code": "hn2" }, { "title": "鹤壁市", "weight": 1950, "evaluation_value": 0, "disabled": false, "parent_code": "hn2" }, { "title": "济源", "weight": 1960, "evaluation_value": 0, "disabled": false, "parent_code": "hn2" }, { "title": "河南其他地区", "weight": 1970, "evaluation_value": 0, "disabled": false, "parent_code": "hn2" }, { "title": "香港特别行政区", "weight": 1980, "evaluation_value": 0, "disabled": false, "parent_code": "xg" }, { "title": "武汉市", "weight": 1990, "evaluation_value": 0, "disabled": false, "parent_code": "hb2" }, { "title": "宜昌市", "weight": 2000, "evaluation_value": 0, "disabled": false, "parent_code": "hb2" }, { "title": "十堰市", "weight": 2010, "evaluation_value": 0, "disabled": false, "parent_code": "hb2" }, { "title": "孝感市", "weight": 2020, "evaluation_value": 0, "disabled": false, "parent_code": "hb2" }, { "title": "荆州市", "weight": 2030, "evaluation_value": 0, "disabled": false, "parent_code": "hb2" }, { "title": "襄樊市", "weight": 2040, "evaluation_value": 0, "disabled": false, "parent_code": "hb2" }, { "title": "黄冈市", "weight": 2050, "evaluation_value": 0, "disabled": false, "parent_code": "hb2" }, { "title": "黄石市", "weight": 2060, "evaluation_value": 0, "disabled": false, "parent_code": "hb2" }, { "title": "恩施土家族苗族", "weight": 2070, "evaluation_value": 0, "disabled": false, "parent_code": "hb2" }, { "title": "随州市", "weight": 2080, "evaluation_value": 0, "disabled": false, "parent_code": "hb2" }, { "title": "荆门市", "weight": 2090, "evaluation_value": 0, "disabled": false, "parent_code": "hb2" }, { "title": "天门市", "weight": 2100, "evaluation_value": 0, "disabled": false, "parent_code": "hb2" }, { "title": "仙桃市", "weight": 2110, "evaluation_value": 0, "disabled": false, "parent_code": "hb2" }, { "title": "咸宁市", "weight": 2120, "evaluation_value": 0, "disabled": false, "parent_code": "hb2" }, { "title": "潜江市", "weight": 2130, "evaluation_value": 0, "disabled": false, "parent_code": "hb2" }, { "title": "神农架林区", "weight": 2140, "evaluation_value": 0, "disabled": false, "parent_code": "hb2" }, { "title": "鄂州市", "weight": 2150, "evaluation_value": 0, "disabled": false, "parent_code": "hb2" }, { "title": "湖北其他地区", "weight": 2160, "evaluation_value": 0, "disabled": false, "parent_code": "hb2" }, { "title": "长沙市", "weight": 2170, "evaluation_value": 0, "disabled": false, "parent_code": "hn3" }, { "title": "常德市", "weight": 2180, "evaluation_value": 0, "disabled": false, "parent_code": "hn3" }, { "title": "湘潭市", "weight": 2190, "evaluation_value": 0, "disabled": false, "parent_code": "hn3" }, { "title": "衡阳市", "weight": 2200, "evaluation_value": 0, "disabled": false, "parent_code": "hn3" }, { "title": "岳阳市", "weight": 2210, "evaluation_value": 0, "disabled": false, "parent_code": "hn3" }, { "title": "怀化市", "weight": 2220, "evaluation_value": 0, "disabled": false, "parent_code": "hn3" }, { "title": "邵阳市", "weight": 2230, "evaluation_value": 0, "disabled": false, "parent_code": "hn3" }, { "title": "株洲市", "weight": 2240, "evaluation_value": 0, "disabled": false, "parent_code": "hn3" }, { "title": "益阳市", "weight": 2250, "evaluation_value": 0, "disabled": false, "parent_code": "hn3" }, { "title": "娄底市", "weight": 2260, "evaluation_value": 0, "disabled": false, "parent_code": "hn3" }, { "title": "郴州市", "weight": 2270, "evaluation_value": 0, "disabled": false, "parent_code": "hn3" }, { "title": "永州市", "weight": 2280, "evaluation_value": 0, "disabled": false, "parent_code": "hn3" }, { "title": "张家界市", "weight": 2290, "evaluation_value": 0, "disabled": false, "parent_code": "hn3" }, { "title": "湘西土家族苗族自治州", "weight": 2300, "evaluation_value": 0, "disabled": false, "parent_code": "hn3" }, { "title": "湖南其他地区", "weight": 2310, "evaluation_value": 0, "disabled": false, "parent_code": "hn3" }, { "title": "南京市", "weight": 2320, "evaluation_value": 0, "disabled": false, "parent_code": "js" }, { "title": "苏州市", "weight": 2330, "evaluation_value": 0, "disabled": false, "parent_code": "js" }, { "title": "徐州市", "weight": 2340, "evaluation_value": 0, "disabled": false, "parent_code": "js" }, { "title": "无锡市", "weight": 2350, "evaluation_value": 0, "disabled": false, "parent_code": "js" }, { "title": "南通市", "weight": 2360, "evaluation_value": 0, "disabled": false, "parent_code": "js" }, { "title": "连云港市", "weight": 2370, "evaluation_value": 0, "disabled": false, "parent_code": "js" }, { "title": "扬州市", "weight": 2380, "evaluation_value": 0, "disabled": false, "parent_code": "js" }, { "title": "淮安市", "weight": 2390, "evaluation_value": 0, "disabled": false, "parent_code": "js" }, { "title": "盐城市", "weight": 2400, "evaluation_value": 0, "disabled": false, "parent_code": "js" }, { "title": "常州市", "weight": 2410, "evaluation_value": 0, "disabled": false, "parent_code": "js" }, { "title": "镇江市", "weight": 2420, "evaluation_value": 0, "disabled": false, "parent_code": "js" }, { "title": "泰州市", "weight": 2430, "evaluation_value": 0, "disabled": false, "parent_code": "js" }, { "title": "宿迁市", "weight": 2440, "evaluation_value": 0, "disabled": false, "parent_code": "js" }, { "title": "江苏其他地区", "weight": 2450, "evaluation_value": 0, "disabled": false, "parent_code": "js" }, { "title": "南昌市", "weight": 2460, "evaluation_value": 0, "disabled": false, "parent_code": "jx" }, { "title": "赣州市", "weight": 2470, "evaluation_value": 0, "disabled": false, "parent_code": "jx" }, { "title": "九江市", "weight": 2480, "evaluation_value": 0, "disabled": false, "parent_code": "jx" }, { "title": "上饶市", "weight": 2490, "evaluation_value": 0, "disabled": false, "parent_code": "jx" }, { "title": "吉安市", "weight": 2500, "evaluation_value": 0, "disabled": false, "parent_code": "jx" }, { "title": "景德镇市", "weight": 2510, "evaluation_value": 0, "disabled": false, "parent_code": "jx" }, { "title": "宜春市", "weight": 2520, "evaluation_value": 0, "disabled": false, "parent_code": "jx" }, { "title": "抚州市", "weight": 2530, "evaluation_value": 0, "disabled": false, "parent_code": "jx" }, { "title": "萍乡市", "weight": 2540, "evaluation_value": 0, "disabled": false, "parent_code": "jx" }, { "title": "新余市", "weight": 2550, "evaluation_value": 0, "disabled": false, "parent_code": "jx" }, { "title": "鹰潭市", "weight": 2560, "evaluation_value": 0, "disabled": false, "parent_code": "jx" }, { "title": "江西其他地区", "weight": 2570, "evaluation_value": 0, "disabled": false, "parent_code": "jx" }, { "title": "长春市", "weight": 2580, "evaluation_value": 0, "disabled": false, "parent_code": "jl" }, { "title": "吉林市", "weight": 2590, "evaluation_value": 0, "disabled": false, "parent_code": "jl" }, { "title": "白城市", "weight": 2600, "evaluation_value": 0, "disabled": false, "parent_code": "jl" }, { "title": "延边朝鲜族", "weight": 2610, "evaluation_value": 0, "disabled": false, "parent_code": "jl" }, { "title": "白山市", "weight": 2620, "evaluation_value": 0, "disabled": false, "parent_code": "jl" }, { "title": "四平市", "weight": 2630, "evaluation_value": 0, "disabled": false, "parent_code": "jl" }, { "title": "松原市", "weight": 2640, "evaluation_value": 0, "disabled": false, "parent_code": "jl" }, { "title": "通化市", "weight": 2650, "evaluation_value": 0, "disabled": false, "parent_code": "jl" }, { "title": "辽源市", "weight": 2660, "evaluation_value": 0, "disabled": false, "parent_code": "jl" }, { "title": "吉林其他地区", "weight": 2670, "evaluation_value": 0, "disabled": false, "parent_code": "jl" }, { "title": "沈阳市", "weight": 2680, "evaluation_value": 0, "disabled": false, "parent_code": "ln" }, { "title": "大连市", "weight": 2690, "evaluation_value": 0, "disabled": false, "parent_code": "ln" }, { "title": "丹东市", "weight": 2700, "evaluation_value": 0, "disabled": false, "parent_code": "ln" }, { "title": "葫芦岛市", "weight": 2710, "evaluation_value": 0, "disabled": false, "parent_code": "ln" }, { "title": "辽阳市", "weight": 2720, "evaluation_value": 0, "disabled": false, "parent_code": "ln" }, { "title": "锦州市", "weight": 2730, "evaluation_value": 0, "disabled": false, "parent_code": "ln" }, { "title": "鞍山市", "weight": 2740, "evaluation_value": 0, "disabled": false, "parent_code": "ln" }, { "title": "盘锦市", "weight": 2750, "evaluation_value": 0, "disabled": false, "parent_code": "ln" }, { "title": "抚顺市", "weight": 2760, "evaluation_value": 0, "disabled": false, "parent_code": "ln" }, { "title": "朝阳市", "weight": 2770, "evaluation_value": 0, "disabled": false, "parent_code": "ln" }, { "title": "营口市", "weight": 2780, "evaluation_value": 0, "disabled": false, "parent_code": "ln" }, { "title": "铁岭市", "weight": 2790, "evaluation_value": 0, "disabled": false, "parent_code": "ln" }, { "title": "本溪市", "weight": 2800, "evaluation_value": 0, "disabled": false, "parent_code": "ln" }, { "title": "阜新市", "weight": 2810, "evaluation_value": 0, "disabled": false, "parent_code": "ln" }, { "title": "辽宁其他地区", "weight": 2820, "evaluation_value": 0, "disabled": false, "parent_code": "ln" }, { "title": "澳门特别行政区", "weight": 2830, "evaluation_value": 0, "disabled": false, "parent_code": "am" }, { "title": "呼和浩特市", "weight": 2840, "evaluation_value": 0, "disabled": false, "parent_code": "nmg" }, { "title": "包头市", "weight": 2850, "evaluation_value": 0, "disabled": false, "parent_code": "nmg" }, { "title": "赤峰市", "weight": 2860, "evaluation_value": 0, "disabled": false, "parent_code": "nmg" }, { "title": "呼伦贝尔市", "weight": 2870, "evaluation_value": 0, "disabled": false, "parent_code": "nmg" }, { "title": "通辽市", "weight": 2880, "evaluation_value": 0, "disabled": false, "parent_code": "nmg" }, { "title": "乌海市", "weight": 2890, "evaluation_value": 0, "disabled": false, "parent_code": "nmg" }, { "title": "鄂尔多斯市", "weight": 2900, "evaluation_value": 0, "disabled": false, "parent_code": "nmg" }, { "title": "乌兰察布市", "weight": 2910, "evaluation_value": 0, "disabled": false, "parent_code": "nmg" }, { "title": "锡林郭勒盟", "weight": 2920, "evaluation_value": 0, "disabled": false, "parent_code": "nmg" }, { "title": "兴安盟", "weight": 2930, "evaluation_value": 0, "disabled": false, "parent_code": "nmg" }, { "title": "巴彦淖尔市", "weight": 2940, "evaluation_value": 0, "disabled": false, "parent_code": "nmg" }, { "title": "阿拉善盟", "weight": 2950, "evaluation_value": 0, "disabled": false, "parent_code": "nmg" }, { "title": "内蒙古其他地区", "weight": 2960, "evaluation_value": 0, "disabled": false, "parent_code": "nmg" }, { "title": "银川市", "weight": 2970, "evaluation_value": 0, "disabled": false, "parent_code": "nx" }, { "title": "石嘴山市", "weight": 2980, "evaluation_value": 0, "disabled": false, "parent_code": "nx" }, { "title": "吴忠市", "weight": 2990, "evaluation_value": 0, "disabled": false, "parent_code": "nx" }, { "title": "固原市", "weight": 3000, "evaluation_value": 0, "disabled": false, "parent_code": "nx" }, { "title": "中卫市", "weight": 3010, "evaluation_value": 0, "disabled": false, "parent_code": "nx" }, { "title": "宁夏其他地区", "weight": 3020, "evaluation_value": 0, "disabled": false, "parent_code": "nx" }, { "title": "西宁市", "weight": 3030, "evaluation_value": 0, "disabled": false, "parent_code": "qh" }, { "title": "海西蒙古族藏族", "weight": 3040, "evaluation_value": 0, "disabled": false, "parent_code": "qh" }, { "title": "海东地区", "weight": 3050, "evaluation_value": 0, "disabled": false, "parent_code": "qh" }, { "title": "海南藏族", "weight": 3060, "evaluation_value": 0, "disabled": false, "parent_code": "qh" }, { "title": "海北藏族", "weight": 3070, "evaluation_value": 0, "disabled": false, "parent_code": "qh" }, { "title": "玉树藏族", "weight": 3080, "evaluation_value": 0, "disabled": false, "parent_code": "qh" }, { "title": "黄南藏族", "weight": 3090, "evaluation_value": 0, "disabled": false, "parent_code": "qh" }, { "title": "果洛藏族", "weight": 3100, "evaluation_value": 0, "disabled": false, "parent_code": "qh" }, { "title": "青海其他地区", "weight": 3110, "evaluation_value": 0, "disabled": false, "parent_code": "qh" }, { "title": "青岛市", "weight": 3120, "evaluation_value": 0, "disabled": false, "parent_code": "sd" }, { "title": "济南市", "weight": 3130, "evaluation_value": 0, "disabled": false, "parent_code": "sd" }, { "title": "潍坊市", "weight": 3140, "evaluation_value": 0, "disabled": false, "parent_code": "sd" }, { "title": "淄博市", "weight": 3150, "evaluation_value": 0, "disabled": false, "parent_code": "sd" }, { "title": "烟台市", "weight": 3160, "evaluation_value": 0, "disabled": false, "parent_code": "sd" }, { "title": "临沂市", "weight": 3170, "evaluation_value": 0, "disabled": false, "parent_code": "sd" }, { "title": "泰安市", "weight": 3180, "evaluation_value": 0, "disabled": false, "parent_code": "sd" }, { "title": "济宁市", "weight": 3190, "evaluation_value": 0, "disabled": false, "parent_code": "sd" }, { "title": "威海市", "weight": 3200, "evaluation_value": 0, "disabled": false, "parent_code": "sd" }, { "title": "东营市", "weight": 3210, "evaluation_value": 0, "disabled": false, "parent_code": "sd" }, { "title": "菏泽市", "weight": 3220, "evaluation_value": 0, "disabled": false, "parent_code": "sd" }, { "title": "日照市", "weight": 3230, "evaluation_value": 0, "disabled": false, "parent_code": "sd" }, { "title": "滨州市", "weight": 3240, "evaluation_value": 0, "disabled": false, "parent_code": "sd" }, { "title": "聊城市", "weight": 3250, "evaluation_value": 0, "disabled": false, "parent_code": "sd" }, { "title": "德州市", "weight": 3260, "evaluation_value": 0, "disabled": false, "parent_code": "sd" }, { "title": "枣庄市", "weight": 3270, "evaluation_value": 0, "disabled": false, "parent_code": "sd" }, { "title": "莱芜市", "weight": 3280, "evaluation_value": 0, "disabled": false, "parent_code": "sd" }, { "title": "山东其他地区", "weight": 3290, "evaluation_value": 0, "disabled": false, "parent_code": "sd" }, { "title": "黄浦区", "weight": 3300, "evaluation_value": 0, "disabled": false, "parent_code": "sh" }, { "title": "徐汇区", "weight": 3310, "evaluation_value": 0, "disabled": false, "parent_code": "sh" }, { "title": "长宁区", "weight": 3320, "evaluation_value": 0, "disabled": false, "parent_code": "sh" }, { "title": "静安区", "weight": 3330, "evaluation_value": 0, "disabled": false, "parent_code": "sh" }, { "title": "闸北区", "weight": 3340, "evaluation_value": 0, "disabled": false, "parent_code": "sh" }, { "title": "虹口区", "weight": 3350, "evaluation_value": 0, "disabled": false, "parent_code": "sh" }, { "title": "普陀区", "weight": 3360, "evaluation_value": 0, "disabled": false, "parent_code": "sh" }, { "title": "杨浦区", "weight": 3370, "evaluation_value": 0, "disabled": false, "parent_code": "sh" }, { "title": "宝山区", "weight": 3380, "evaluation_value": 0, "disabled": false, "parent_code": "sh" }, { "title": "闵行区", "weight": 3390, "evaluation_value": 0, "disabled": false, "parent_code": "sh" }, { "title": "嘉定区", "weight": 3400, "evaluation_value": 0, "disabled": false, "parent_code": "sh" }, { "title": "浦东新区", "weight": 3410, "evaluation_value": 0, "disabled": false, "parent_code": "sh" }, { "title": "青浦区", "weight": 3420, "evaluation_value": 0, "disabled": false, "parent_code": "sh" }, { "title": "松江区", "weight": 3430, "evaluation_value": 0, "disabled": false, "parent_code": "sh" }, { "title": "金山区", "weight": 3440, "evaluation_value": 0, "disabled": false, "parent_code": "sh" }, { "title": "奉贤区", "weight": 3450, "evaluation_value": 0, "disabled": false, "parent_code": "sh" }, { "title": "崇明区", "weight": 3460, "evaluation_value": 0, "disabled": false, "parent_code": "sh" }, { "title": "上海其他地区", "weight": 3470, "evaluation_value": 0, "disabled": false, "parent_code": "sh" }, { "title": "西安市", "weight": 3480, "evaluation_value": 0, "disabled": false, "parent_code": "sx1" }, { "title": "咸阳市", "weight": 3490, "evaluation_value": 0, "disabled": false, "parent_code": "sx1" }, { "title": "宝鸡市", "weight": 3500, "evaluation_value": 0, "disabled": false, "parent_code": "sx1" }, { "title": "渭南市", "weight": 3510, "evaluation_value": 0, "disabled": false, "parent_code": "sx1" }, { "title": "汉中市", "weight": 3520, "evaluation_value": 0, "disabled": false, "parent_code": "sx1" }, { "title": "安康市", "weight": 3530, "evaluation_value": 0, "disabled": false, "parent_code": "sx1" }, { "title": "榆林市", "weight": 3540, "evaluation_value": 0, "disabled": false, "parent_code": "sx1" }, { "title": "延安市", "weight": 3550, "evaluation_value": 0, "disabled": false, "parent_code": "sx1" }, { "title": "铜川市", "weight": 3560, "evaluation_value": 0, "disabled": false, "parent_code": "sx1" }, { "title": "商洛市", "weight": 3570, "evaluation_value": 0, "disabled": false, "parent_code": "sx1" }, { "title": "陕西其他地区", "weight": 3580, "evaluation_value": 0, "disabled": false, "parent_code": "sx1" }, { "title": "太原市", "weight": 3590, "evaluation_value": 0, "disabled": false, "parent_code": "sx2" }, { "title": "长治市", "weight": 3600, "evaluation_value": 0, "disabled": false, "parent_code": "sx2" }, { "title": "大同市", "weight": 3610, "evaluation_value": 0, "disabled": false, "parent_code": "sx2" }, { "title": "晋城市", "weight": 3620, "evaluation_value": 0, "disabled": false, "parent_code": "sx2" }, { "title": "运城市", "weight": 3630, "evaluation_value": 0, "disabled": false, "parent_code": "sx2" }, { "title": "晋中市", "weight": 3640, "evaluation_value": 0, "disabled": false, "parent_code": "sx2" }, { "title": "忻州市", "weight": 3650, "evaluation_value": 0, "disabled": false, "parent_code": "sx2" }, { "title": "临汾市", "weight": 3660, "evaluation_value": 0, "disabled": false, "parent_code": "sx2" }, { "title": "阳泉市", "weight": 3670, "evaluation_value": 0, "disabled": false, "parent_code": "sx2" }, { "title": "吕梁市", "weight": 3680, "evaluation_value": 0, "disabled": false, "parent_code": "sx2" }, { "title": "朔州市", "weight": 3690, "evaluation_value": 0, "disabled": false, "parent_code": "sx2" }, { "title": "山西其他地区", "weight": 3700, "evaluation_value": 0, "disabled": false, "parent_code": "sx2" }, { "title": "成都市", "weight": 3710, "evaluation_value": 0, "disabled": false, "parent_code": "sc" }, { "title": "乐山市", "weight": 3720, "evaluation_value": 0, "disabled": false, "parent_code": "sc" }, { "title": "绵阳市", "weight": 3730, "evaluation_value": 0, "disabled": false, "parent_code": "sc" }, { "title": "广元市", "weight": 3740, "evaluation_value": 0, "disabled": false, "parent_code": "sc" }, { "title": "南充市", "weight": 3750, "evaluation_value": 0, "disabled": false, "parent_code": "sc" }, { "title": "达州市", "weight": 3760, "evaluation_value": 0, "disabled": false, "parent_code": "sc" }, { "title": "德阳市", "weight": 3770, "evaluation_value": 0, "disabled": false, "parent_code": "sc" }, { "title": "攀枝花市", "weight": 3780, "evaluation_value": 0, "disabled": false, "parent_code": "sc" }, { "title": "内江市", "weight": 3790, "evaluation_value": 0, "disabled": false, "parent_code": "sc" }, { "title": "宜宾市", "weight": 3800, "evaluation_value": 0, "disabled": false, "parent_code": "sc" }, { "title": "雅安市", "weight": 3810, "evaluation_value": 0, "disabled": false, "parent_code": "sc" }, { "title": "凉山彝族", "weight": 3820, "evaluation_value": 0, "disabled": false, "parent_code": "sc" }, { "title": "遂宁市", "weight": 3830, "evaluation_value": 0, "disabled": false, "parent_code": "sc" }, { "title": "眉山市", "weight": 3840, "evaluation_value": 0, "disabled": false, "parent_code": "sc" }, { "title": "泸州市", "weight": 3850, "evaluation_value": 0, "disabled": false, "parent_code": "sc" }, { "title": "巴中市", "weight": 3860, "evaluation_value": 0, "disabled": false, "parent_code": "sc" }, { "title": "自贡市", "weight": 3870, "evaluation_value": 0, "disabled": false, "parent_code": "sc" }, { "title": "资阳市", "weight": 3880, "evaluation_value": 0, "disabled": false, "parent_code": "sc" }, { "title": "阿坝藏族羌族", "weight": 3890, "evaluation_value": 0, "disabled": false, "parent_code": "sc" }, { "title": "广安市", "weight": 3900, "evaluation_value": 0, "disabled": false, "parent_code": "sc" }, { "title": "甘孜藏族", "weight": 3910, "evaluation_value": 0, "disabled": false, "parent_code": "sc" }, { "title": "四川其他地区", "weight": 3920, "evaluation_value": 0, "disabled": false, "parent_code": "sc" }, { "title": "东丽区", "weight": 3930, "evaluation_value": 0, "disabled": false, "parent_code": "tj" }, { "title": "和平区", "weight": 3940, "evaluation_value": 0, "disabled": false, "parent_code": "tj" }, { "title": "河北区", "weight": 3950, "evaluation_value": 0, "disabled": false, "parent_code": "tj" }, { "title": "河东区", "weight": 3960, "evaluation_value": 0, "disabled": false, "parent_code": "tj" }, { "title": "河西区", "weight": 3970, "evaluation_value": 0, "disabled": false, "parent_code": "tj" }, { "title": "红桥区", "weight": 3980, "evaluation_value": 0, "disabled": false, "parent_code": "tj" }, { "title": "蓟县", "weight": 3990, "evaluation_value": 0, "disabled": false, "parent_code": "tj" }, { "title": "静海县", "weight": 4000, "evaluation_value": 0, "disabled": false, "parent_code": "tj" }, { "title": "南开区", "weight": 4010, "evaluation_value": 0, "disabled": false, "parent_code": "tj" }, { "title": "塘沽区", "weight": 4020, "evaluation_value": 0, "disabled": false, "parent_code": "tj" }, { "title": "西青区", "weight": 4030, "evaluation_value": 0, "disabled": false, "parent_code": "tj" }, { "title": "武清区", "weight": 4040, "evaluation_value": 0, "disabled": false, "parent_code": "tj" }, { "title": "津南区", "weight": 4050, "evaluation_value": 0, "disabled": false, "parent_code": "tj" }, { "title": "汉沽区", "weight": 4060, "evaluation_value": 0, "disabled": false, "parent_code": "tj" }, { "title": "大港区", "weight": 4070, "evaluation_value": 0, "disabled": false, "parent_code": "tj" }, { "title": "北辰区", "weight": 4080, "evaluation_value": 0, "disabled": false, "parent_code": "tj" }, { "title": "宝坻区", "weight": 4090, "evaluation_value": 0, "disabled": false, "parent_code": "tj" }, { "title": "宁河县", "weight": 4100, "evaluation_value": 0, "disabled": false, "parent_code": "tj" }, { "title": "天津其他地区", "weight": 4110, "evaluation_value": 0, "disabled": false, "parent_code": "tj" }, { "title": "台湾省", "weight": 4120, "evaluation_value": 0, "disabled": false, "parent_code": "tw" }, { "title": "乌鲁木齐市", "weight": 4130, "evaluation_value": 0, "disabled": false, "parent_code": "xj" }, { "title": "石河子市", "weight": 4140, "evaluation_value": 0, "disabled": false, "parent_code": "xj" }, { "title": "伊犁哈萨克", "weight": 4150, "evaluation_value": 0, "disabled": false, "parent_code": "xj" }, { "title": "哈密地区", "weight": 4160, "evaluation_value": 0, "disabled": false, "parent_code": "xj" }, { "title": "巴音郭楞蒙古", "weight": 4170, "evaluation_value": 0, "disabled": false, "parent_code": "xj" }, { "title": "昌吉回族", "weight": 4180, "evaluation_value": 0, "disabled": false, "parent_code": "xj" }, { "title": "阿勒泰地区", "weight": 4190, "evaluation_value": 0, "disabled": false, "parent_code": "xj" }, { "title": "喀什地区", "weight": 4200, "evaluation_value": 0, "disabled": false, "parent_code": "xj" }, { "title": "塔城地区", "weight": 4210, "evaluation_value": 0, "disabled": false, "parent_code": "xj" }, { "title": "阿克苏地区", "weight": 4220, "evaluation_value": 0, "disabled": false, "parent_code": "xj" }, { "title": "克拉玛依市", "weight": 4230, "evaluation_value": 0, "disabled": false, "parent_code": "xj" }, { "title": "吐鲁番地区", "weight": 4240, "evaluation_value": 0, "disabled": false, "parent_code": "xj" }, { "title": "和田地区", "weight": 4250, "evaluation_value": 0, "disabled": false, "parent_code": "xj" }, { "title": "博尔塔拉蒙古", "weight": 4260, "evaluation_value": 0, "disabled": false, "parent_code": "xj" }, { "title": "五家渠市", "weight": 4270, "evaluation_value": 0, "disabled": false, "parent_code": "xj" }, { "title": "阿拉尔市", "weight": 4280, "evaluation_value": 0, "disabled": false, "parent_code": "xj" }, { "title": "克孜勒苏柯尔克孜", "weight": 4290, "evaluation_value": 0, "disabled": false, "parent_code": "xj" }, { "title": "图木舒克市", "weight": 4300, "evaluation_value": 0, "disabled": false, "parent_code": "xj" }, { "title": "新疆其他地区", "weight": 4310, "evaluation_value": 0, "disabled": false, "parent_code": "xj" }, { "title": "拉萨市", "weight": 4320, "evaluation_value": 0, "disabled": false, "parent_code": "xz" }, { "title": "日喀则地区", "weight": 4330, "evaluation_value": 0, "disabled": false, "parent_code": "xz" }, { "title": "林芝地区", "weight": 4340, "evaluation_value": 0, "disabled": false, "parent_code": "xz" }, { "title": "阿里地区", "weight": 4350, "evaluation_value": 0, "disabled": false, "parent_code": "xz" }, { "title": "那曲地区", "weight": 4360, "evaluation_value": 0, "disabled": false, "parent_code": "xz" }, { "title": "昌都地区", "weight": 4370, "evaluation_value": 0, "disabled": false, "parent_code": "xz" }, { "title": "山南地区", "weight": 4380, "evaluation_value": 0, "disabled": false, "parent_code": "xz" }, { "title": "西藏其他地区", "weight": 4390, "evaluation_value": 0, "disabled": false, "parent_code": "xz" }, { "title": "昆明市", "weight": 4400, "evaluation_value": 0, "disabled": false, "parent_code": "yn" }, { "title": "丽江市", "weight": 4410, "evaluation_value": 0, "disabled": false, "parent_code": "yn" }, { "title": "曲靖市", "weight": 4420, "evaluation_value": 0, "disabled": false, "parent_code": "yn" }, { "title": "玉溪市", "weight": 4430, "evaluation_value": 0, "disabled": false, "parent_code": "yn" }, { "title": "昭通市", "weight": 4440, "evaluation_value": 0, "disabled": false, "parent_code": "yn" }, { "title": "大理白族", "weight": 4450, "evaluation_value": 0, "disabled": false, "parent_code": "yn" }, { "title": "楚雄彝族", "weight": 4460, "evaluation_value": 0, "disabled": false, "parent_code": "yn" }, { "title": "临沧市", "weight": 4470, "evaluation_value": 0, "disabled": false, "parent_code": "yn" }, { "title": "红河哈尼族彝族", "weight": 4480, "evaluation_value": 0, "disabled": false, "parent_code": "yn" }, { "title": "保山市", "weight": 4490, "evaluation_value": 0, "disabled": false, "parent_code": "yn" }, { "title": "普洱市", "weight": 4500, "evaluation_value": 0, "disabled": false, "parent_code": "yn" }, { "title": "西双版纳傣族", "weight": 4510, "evaluation_value": 0, "disabled": false, "parent_code": "yn" }, { "title": "德宏傣族景颇族", "weight": 4520, "evaluation_value": 0, "disabled": false, "parent_code": "yn" }, { "title": "文山壮族苗族", "weight": 4530, "evaluation_value": 0, "disabled": false, "parent_code": "yn" }, { "title": "迪庆藏族", "weight": 4540, "evaluation_value": 0, "disabled": false, "parent_code": "yn" }, { "title": "怒江傈僳族", "weight": 4550, "evaluation_value": 0, "disabled": false, "parent_code": "yn" }, { "title": "云南其他地区", "weight": 4560, "evaluation_value": 0, "disabled": false, "parent_code": "yn" }, { "title": "杭州市", "weight": 4570, "evaluation_value": 0, "disabled": false, "parent_code": "zj" }, { "title": "温州市", "weight": 4580, "evaluation_value": 0, "disabled": false, "parent_code": "zj" }, { "title": "宁波市", "weight": 4590, "evaluation_value": 0, "disabled": false, "parent_code": "zj" }, { "title": "台州市", "weight": 4600, "evaluation_value": 0, "disabled": false, "parent_code": "zj" }, { "title": "金华市", "weight": 4610, "evaluation_value": 0, "disabled": false, "parent_code": "zj" }, { "title": "绍兴市", "weight": 4620, "evaluation_value": 0, "disabled": false, "parent_code": "zj" }, { "title": "嘉兴市", "weight": 4630, "evaluation_value": 0, "disabled": false, "parent_code": "zj" }, { "title": "湖州市", "weight": 4640, "evaluation_value": 0, "disabled": false, "parent_code": "zj" }, { "title": "丽水市", "weight": 4650, "evaluation_value": 0, "disabled": false, "parent_code": "zj" }, { "title": "衢州市", "weight": 4660, "evaluation_value": 0, "disabled": false, "parent_code": "zj" }, { "title": "舟山市", "weight": 4670, "evaluation_value": 0, "disabled": false, "parent_code": "zj" }, { "title": "浙江其他地区", "weight": 4680, "evaluation_value": 0, "disabled": false, "parent_code": "zj" }, { "title": "其他国家地区", "weight": 4690, "evaluation_value": 0, "disabled": false, "parent_code": "qt" } ] }
2. 把province 和 city通过util.js (export)出来 成为全局变量
//util.js
const app = getApp(); const p_c = require("city.js"); module.exports = { resource: json.resource, province: p_c.province, }
3. 正式环节 准备好wxml
<view class="container flex-menu"> <picker mode="multiSelector" bindchange="pkIndex" bindcolumnchange="pkCol" value="{{pcIndex}}" range="{{p_c}}"> <view class="picker"> 当前选择:{{p_c[0][pcIndex[0]]}},{{p_c[1][pcIndex[1]]}} </view> </picker> </view>
4. 页面js 代码如下
var app = getApp(); var util = require("../../utils/util.js"); var province = (util.province || []).map(v => { return v.title });
// 获取到的province["上海市", "江苏省", "浙江省", "安徽省", "北京市", "重庆市", ...]
var city = ((util.city || []).filter(v => { return v.parent_code == "sh" }) || []).map(v => { return v.title }); // 获取到的 city["黄浦区", "徐汇区", "长宁区", "静安区", "闸北区", "虹口区", "普陀区", "杨浦区",...] Page({ data: {
//给一个默认值 p_c: [["上海市"], ["黄浦区"]],
//对应的数组下标 eg: pcIndex[1,2]指的是 p_c[0][1] 省的名称 和 p_c[1][2] 市的名称 pcIndex: [0, 0], }, onLoad: function (options) { this.data.p_c[0] = province this.data.p_c[1] = city
//初始化p_c
this.setData({ p_c: this.data.p_c }) console.log(this.data.p_c) }, pkIndex: function (e) { console.log(‘picker发送选择改变,携带值为‘, e.detail.value) this.setData({ pcIndex: e.detail.value }) }, pkCol: function (e) { console.log(‘修改的列为‘, e.detail.column, ‘,值为‘, e.detail.value); var data = { p_c: this.data.p_c, pcIndex: this.data.pcIndex };
//如果选择省则区的数组会变 if (e.detail.column == 0) {
//code默认值为上海 var code = "sh";
// 获取我们选择省所对应的code (util.province || []).some(v => { if (v.title == province[e.detail.value]) { code = v.code
// if选择北京 则code值变为 "bj" 并返回true return true } return false });
// 选取parent_code为"bj"的所有区 把所有区的title放到一个city数组里面
var city = ((util.city || []).filter(v => { return v.parent_code == code }) || []).map(v => { return v.title });
//把区的变化和下标的变化设置data里就ok data.p_c[1] = city data.pcIndex[0] = e.detail.value this.setData(data) } else { data.pcIndex[1] = 0; } } })
//最后打完收工
//关注我的blog 有疑问或好的建议请提出 谢谢您的关注 http://www.cnblogs.com/Oopa/