1. 程式人生 > >並排列表listview

並排列表listview

import android.support.v4.app.Fragment;

import com.xiebao.addtrad.fragment.AddressListhalfFragment;
import com.xiebao.fatherclass.AbstractListFragmentActivity;

public class AddressListActivity extends AbstractListFragmentActivity{

	@Override
	protected Fragment setFragment() {
		// TODO Auto-generated method stub
		return AddressListhalfFragment.instance(getBundle());
	}

}import java.util.HashMap;
import java.util.List;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;

import com.google.gson.Gson;
import com.xiebao.R;
import com.xiebao.addtrad.adapter.GridAddressAdapter;
import com.xiebao.bean.Address;
import com.xiebao.bean.AddressList;
import com.xiebao.fatherclass.FatherFragment;
import com.xiebao.util.IConstant;
import com.xiebao.util.save.SaveUserInfoUtil;
import com.xiebao.view.TopBarView;

/**
 * @ClassName:
 * @Description:選擇地區,並排listview
 * @author gongxibo
 * @date 建立時間:2016年1月16日 下午2:02:36
 */
public class AddressListhalfFragment extends FatherFragment {

	/**
	 * 地區,下一級地區
	 */
	private ListView listView, sublistView;
	private Address address;
	private TextView provinceName;
	/**
	 * 上個頁面傳過來的地址
	 */
	private Address fromaddress;

	public static FatherFragment instance(Bundle bundle) {
		FatherFragment frag = new AddressListhalfFragment();
		frag.setArguments(bundle);
		return frag;
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View root = inflater.inflate(R.layout.address_listhalf_layout,
				container, false);
		topBarView = (TopBarView) root.findViewById(R.id.topBarView);
		provinceName = findView(root, R.id.province_name);
		listView = findView(root, R.id.list_view);
		sublistView = findView(root, R.id.sublist_view);

		return root;
	}

	@Override
	public void onActivityCreated(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onActivityCreated(savedInstanceState);
		initView();
		initListener();
	}

	private void initListener() {
		getAreaData();

	}

	private void initView() {
		 fromaddress=(Address) getArguments().getSerializable(GridAddressAdapter.AREA);
		topBarView.renderView(R.string.area_text);
		provinceName.setText(fromaddress.getName());
		provinceName.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				saveAddress(fromaddress);
				
			}
		});
	}

	/**
	 * 獲取地址資料
	 */
	private void getAreaData() {
		final HashMap hashMap = new HashMap();
		// session id 暫定為fm253j45fsl2bk63csu2ln2p87
		hashMap.put("sid", SaveUserInfoUtil.getUserSid(context));
		// 使用者名稱,暫定為bbbbb
		hashMap.put("username", SaveUserInfoUtil.getUserName(context));
		// String
		// area=getArguments().getString(IConstant.AREA_ID,String.valueOf(0));
		// 區域id

		String areaid =fromaddress.getId();
		hashMap.put("area_id", areaid);
		String url = super.getUrl(IConstant.AREA_LIST, hashMap);
		super.volley_post(url);
	}

	@Override
	protected void correcttResponse(String response) {
		// TODO Auto-generated method stub

		setData(response);
	}

	private void setData(String response) {
		Gson gson = new Gson();
		AddressList data = gson.fromJson(response, AddressList.class);
		final List
list = data.getList(); int number = list.size(); if (number == 0) { return; } address = list.get(0); setsubList(); ArrayAdapter
adapter = new ArrayAdapter
(context, R.layout.textview_item_layout, list); listView.setAdapter(adapter); listView.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { address = list.get(position); setsubList(); } }); } /** * 設定自列表 */ protected void setsubList() { final List
sonList = address.getSon(); ArrayAdapter
subadapter = new ArrayAdapter
(context, R.layout.textview_item_layout, sonList); sublistView.setAdapter(subadapter); // sublistView.setChoiceMode(ListView.CHOICE_MODE_SINGLE);//預設選中第一個 sublistView.post(new Runnable() { @Override public void run() { sublistView.setSelection(0); // sublistView.getSelectedView().setSelected(true); // sublistView.setItemChecked(0, true); } }); sublistView.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { Address son = sonList.get(position); saveAddress(son); } }); } }<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?> { "status": "1", "msg": "獲取協議列表成功", "list": [ { "id": "170", "parent_id": "16", "name": "濟南市", "remark": "", "rank": "2", "id_link": "0_1_16_170_", "is_end": "0", "son": [ { "id": "170", "parent_id": "16", "name": "全濟南市", "remark": "", "rank": "2", "id_link": "0_1_16_170_", "is_end": 1 }, { "id": "1724", "parent_id": "170", "name": "市轄區", "remark": "", "rank": "3", "id_link": "0_1_16_170_1724_", "is_end": "1" }, { "id": "1725", "parent_id": "170", "name": "歷下區", "remark": "", "rank": "3", "id_link": "0_1_16_170_1725_", "is_end": "1" }, { "id": "1726", "parent_id": "170", "name": "市中區", "remark": "", "rank": "3", "id_link": "0_1_16_170_1726_", "is_end": "1" }, { "id": "1727", "parent_id": "170", "name": "槐蔭區", "remark": "", "rank": "3", "id_link": "0_1_16_170_1727_", "is_end": "1" }, { "id": "1728", "parent_id": "170", "name": "天橋區", "remark": "", "rank": "3", "id_link": "0_1_16_170_1728_", "is_end": "1" }, { "id": "1729", "parent_id": "170", "name": "歷城區", "remark": "", "rank": "3", "id_link": "0_1_16_170_1729_", "is_end": "1" }, { "id": "1730", "parent_id": "170", "name": "長清區", "remark": "", "rank": "3", "id_link": "0_1_16_170_1730_", "is_end": "1" }, { "id": "1731", "parent_id": "170", "name": "平陰縣", "remark": "", "rank": "3", "id_link": "0_1_16_170_1731_", "is_end": "1" }, { "id": "1732", "parent_id": "170", "name": "濟陽縣", "remark": "", "rank": "3", "id_link": "0_1_16_170_1732_", "is_end": "1" }, { "id": "1733", "parent_id": "170", "name": "商河縣", "remark": "", "rank": "3", "id_link": "0_1_16_170_1733_", "is_end": "1" }, { "id": "1734", "parent_id": "170", "name": "章丘市", "remark": "", "rank": "3", "id_link": "0_1_16_170_1734_", "is_end": "1" } ] }, { "id": "171", "parent_id": "16", "name": "青島市", "remark": "", "rank": "2", "id_link": "0_1_16_171_", "is_end": "0", "son": [ { "id": "171", "parent_id": "16", "name": "全青島市", "remark": "", "rank": "2", "id_link": "0_1_16_171_", "is_end": 1 }, { "id": "1735", "parent_id": "171", "name": "市轄區", "remark": "", "rank": "3", "id_link": "0_1_16_171_1735_", "is_end": "1" }, { "id": "1736", "parent_id": "171", "name": "市南區", "remark": "", "rank": "3", "id_link": "0_1_16_171_1736_", "is_end": "1" }, { "id": "1737", "parent_id": "171", "name": "市北區", "remark": "", "rank": "3", "id_link": "0_1_16_171_1737_", "is_end": "1" }, { "id": "1738", "parent_id": "171", "name": "四方區", "remark": "", "rank": "3", "id_link": "0_1_16_171_1738_", "is_end": "1" }, { "id": "1739", "parent_id": "171", "name": "黃島區", "remark": "", "rank": "3", "id_link": "0_1_16_171_1739_", "is_end": "1" }, { "id": "1740", "parent_id": "171", "name": "嶗山區", "remark": "", "rank": "3", "id_link": "0_1_16_171_1740_", "is_end": "1" }, { "id": "1741", "parent_id": "171", "name": "李滄區", "remark": "", "rank": "3", "id_link": "0_1_16_171_1741_", "is_end": "1" }, { "id": "1742", "parent_id": "171", "name": "城陽區", "remark": "", "rank": "3", "id_link": "0_1_16_171_1742_", "is_end": "1" }, { "id": "1743", "parent_id": "171", "name": "膠州市", "remark": "", "rank": "3", "id_link": "0_1_16_171_1743_", "is_end": "1" }, { "id": "1744", "parent_id": "171", "name": "即墨市", "remark": "", "rank": "3", "id_link": "0_1_16_171_1744_", "is_end": "1" }, { "id": "1745", "parent_id": "171", "name": "平度市", "remark": "", "rank": "3", "id_link": "0_1_16_171_1745_", "is_end": "1" }, { "id": "1746", "parent_id": "171", "name": "膠南市", "remark": "", "rank": "3", "id_link": "0_1_16_171_1746_", "is_end": "1" }, { "id": "1747", "parent_id": "171", "name": "萊西市", "remark": "", "rank": "3", "id_link": "0_1_16_171_1747_", "is_end": "1" } ] }, { "id": "172", "parent_id": "16", "name": "淄博市", "remark": "", "rank": "2", "id_link": "0_1_16_172_", "is_end": "0", "son": [ { "id": "172", "parent_id": "16", "name": "全淄博市", "remark": "", "rank": "2", "id_link": "0_1_16_172_", "is_end": 1 }, { "id": "1748", "parent_id": "172", "name": "市轄區", "remark": "", "rank": "3", "id_link": "0_1_16_172_1748_", "is_end": "1" }, { "id": "1749", "parent_id": "172", "name": "淄川區", "remark": "", "rank": "3", "id_link": "0_1_16_172_1749_", "is_end": "1" }, { "id": "1750", "parent_id": "172", "name": "張店區", "remark": "", "rank": "3", "id_link": "0_1_16_172_1750_", "is_end": "1" }, { "id": "1751", "parent_id": "172", "name": "博山區", "remark": "", "rank": "3", "id_link": "0_1_16_172_1751_", "is_end": "1" }, { "id": "1752", "parent_id": "172", "name": "臨淄區", "remark": "", "rank": "3", "id_link": "0_1_16_172_1752_", "is_end": "1" }, { "id": "1753", "parent_id": "172", "name": "周村區", "remark": "", "rank": "3", "id_link": "0_1_16_172_1753_", "is_end": "1" }, { "id": "1754", "parent_id": "172", "name": "桓臺縣", "remark": "", "rank": "3", "id_link": "0_1_16_172_1754_", "is_end": "1" }, { "id": "1755", "parent_id": "172", "name": "高青縣", "remark": "", "rank": "3", "id_link": "0_1_16_172_1755_", "is_end": "1" }, { "id": "1756", "parent_id": "172", "name": "沂源縣", "remark": "", "rank": "3", "id_link": "0_1_16_172_1756_", "is_end": "1" } ] }, { "id": "173", "parent_id": "16", "name": "棗莊市", "remark": "", "rank": "2", "id_link": "0_1_16_173_", "is_end": "0", "son": [ { "id": "173", "parent_id": "16", "name": "全棗莊市", "remark": "", "rank": "2", "id_link": "0_1_16_173_", "is_end": 1 }, { "id": "1757", "parent_id": "173", "name": "市轄區", "remark": "", "rank": "3", "id_link": "0_1_16_173_1757_", "is_end": "1" }, { "id": "1758", "parent_id": "173", "name": "市中區", "remark": "", "rank": "3", "id_link": "0_1_16_173_1758_", "is_end": "1" }, { "id": "1759", "parent_id": "173", "name": "薛城區", "remark": "", "rank": "3", "id_link": "0_1_16_173_1759_", "is_end": "1" }, { "id": "1760", "parent_id": "173", "name": "嶧城區", "remark": "", "rank": "3", "id_link": "0_1_16_173_1760_", "is_end": "1" }, { "id": "1761", "parent_id": "173", "name": "臺兒莊區", "remark": "", "rank": "3", "id_link": "0_1_16_173_1761_", "is_end": "1" }, { "id": "1762", "parent_id": "173", "name": "山亭區", "remark": "", "rank": "3", "id_link": "0_1_16_173_1762_", "is_end": "1" }, { "id": "1763", "parent_id": "173", "name": "滕州市", "remark": "", "rank": "3", "id_link": "0_1_16_173_1763_", "is_end": "1" } ] }, { "id": "174", "parent_id": "16", "name": "東營市", "remark": "", "rank": "2", "id_link": "0_1_16_174_", "is_end": "0", "son": [ { "id": "174", "parent_id": "16", "name": "全東營市", "remark": "", "rank": "2", "id_link": "0_1_16_174_", "is_end": 1 }, { "id": "1764", "parent_id": "174", "name": "市轄區", "remark": "", "rank": "3", "id_link": "0_1_16_174_1764_", "is_end": "1" }, { "id": "1765", "parent_id": "174", "name": "東營區", "remark": "", "rank": "3", "id_link": "0_1_16_174_1765_", "is_end": "1" }, { "id": "1766", "parent_id": "174", "name": "河口區", "remark": "", "rank": "3", "id_link": "0_1_16_174_1766_", "is_end": "1" }, { "id": "1767", "parent_id": "174", "name": "墾利縣", "remark": "", "rank": "3", "id_link": "0_1_16_174_1767_", "is_end": "1" }, { "id": "1768", "parent_id": "174", "name": "利津縣", "remark": "", "rank": "3", "id_link": "0_1_16_174_1768_", "is_end": "1" }, { "id": "1769", "parent_id": "174", "name": "廣饒縣", "remark": "", "rank": "3", "id_link": "0_1_16_174_1769_", "is_end": "1" } ] }, { "id": "175", "parent_id": "16", "name": "煙臺市", "remark": "", "rank": "2", "id_link": "0_1_16_175_", "is_end": "0", "son": [ { "id": "175", "parent_id": "16", "name": "全煙臺市", "remark": "", "rank": "2", "id_link": "0_1_16_175_", "is_end": 1 }, { "id": "1770", "parent_id": "175", "name": "市轄區", "remark": "", "rank": "3", "id_link": "0_1_16_175_1770_", "is_end": "1" }, { "id": "1771", "parent_id": "175", "name": "芝罘區", "remark": "", "rank": "3", "id_link": "0_1_16_175_1771_", "is_end": "1" }, { "id": "1772", "parent_id": "175", "name": "福山區", "remark": "", "rank": "3", "id_link": "0_1_16_175_1772_", "is_end": "1" }, { "id": "1773", "parent_id": "175", "name": "牟平區", "remark": "", "rank": "3", "id_link": "0_1_16_175_1773_", "is_end": "1" }, { "id": "1774", "parent_id": "175", "name": "萊山區", "remark": "", "rank": "3", "id_link": "0_1_16_175_1774_", "is_end": "1" }, { "id": "1775", "parent_id": "175", "name": "長島縣", "remark": "", "rank": "3", "id_link": "0_1_16_175_1775_", "is_end": "1" }, { "id": "1776", "parent_id": "175", "name": "龍口市", "remark": "", "rank": "3", "id_link": "0_1_16_175_1776_", "is_end": "1" }, { "id": "1777", "parent_id": "175", "name": "萊陽市", "remark": "", "rank": "3", "id_link": "0_1_16_175_1777_", "is_end": "1" }, { "id": "1778", "parent_id": "175", "name": "萊州市", "remark": "", "rank": "3", "id_link": "0_1_16_175_1778_", "is_end": "1" }, { "id": "1779", "parent_id": "175", "name": "蓬萊市", "remark": "", "rank": "3", "id_link": "0_1_16_175_1779_", "is_end": "1" }, { "id": "1780", "parent_id": "175", "name": "招遠市", "remark": "", "rank": "3", "id_link": "0_1_16_175_1780_", "is_end": "1" }, { "id": "1781", "parent_id": "175", "name": "棲霞市", "remark": "", "rank": "3", "id_link": "0_1_16_175_1781_", "is_end": "1" }, { "id": "1782", "parent_id": "175", "name": "海陽市", "remark": "", "rank": "3", "id_link": "0_1_16_175_1782_", "is_end": "1" } ] }, { "id": "176", "parent_id": "16", "name": "濰坊市", "remark": "", "rank": "2", "id_link": "0_1_16_176_", "is_end": "0", "son": [ { "id": "176", "parent_id": "16", "name": "全濰坊市", "remark": "", "rank": "2", "id_link": "0_1_16_176_", "is_end": 1 }, { "id": "1783", "parent_id": "176", "name": "市轄區", "remark": "", "rank": "3", "id_link": "0_1_16_176_1783_", "is_end": "1" }, { "id": "1784", "parent_id": "176", "name": "濰城區", "remark": "", "rank": "3", "id_link": "0_1_16_176_1784_", "is_end": "1" }, { "id": "1785", "parent_id": "176", "name": "寒亭區", "remark": "", "rank": "3", "id_link": "0_1_16_176_1785_", "is_end": "1" }, { "id": "1786", "parent_id": "176", "name": "坊子區", "remark": "", "rank": "3", "id_link": "0_1_16_176_1786_", "is_end": "1" }, { "id": "1787", "parent_id": "176", "name": "奎文區", "remark": "", "rank": "3", "id_link": "0_1_16_176_1787_", "is_end": "1" }, { "id": "1788", "parent_id": "176", "name": "臨朐縣", "remark": "", "rank": "3", "id_link": "0_1_16_176_1788_", "is_end": "1" }, { "id": "1789", "parent_id": "176", "name": "昌樂縣", "remark": "", "rank": "3", "id_link": "0_1_16_176_1789_", "is_end": "1" }, { "id": "1790", "parent_id": "176", "name": "青州市", "remark": "", "rank": "3", "id_link": "0_1_16_176_1790_", "is_end": "1" }, { "id": "1791", "parent_id": "176", "name": "諸城市", "remark": "", "rank": "3", "id_link": "0_1_16_176_1791_", "is_end": "1" }, { "id": "1792", "parent_id": "176", "name": "壽光市", "remark": "", "rank": "3", "id_link": "0_1_16_176_1792_", "is_end": "1" }, { "id": "1793", "parent_id": "176", "name": "安丘市", "remark": "", "rank": "3", "id_link": "0_1_16_176_1793_", "is_end": "1" }, { "id": "1794", "parent_id": "176", "name": "高密市", "remark": "", "rank": "3", "id_link": "0_1_16_176_1794_", "is_end": "1" }, { "id": "1795", "parent_id": "176", "name": "昌邑市", "remark": "", "rank": "3", "id_link": "0_1_16_176_1795_", "is_end": "1" } ] }, { "id": "177", "parent_id": "16", "name": "濟寧市", "remark": "", "rank": "2", "id_link": "0_1_16_177_", "is_end": "0", "son": [ { "id": "177", "parent_id": "16", "name": "全濟寧市", "remark": "", "rank": "2", "id_link": "0_1_16_177_", "is_end": 1 }, { "id": "1796", "parent_id": "177", "name": "市轄區", "remark": "", "rank": "3", "id_link": "0_1_16_177_1796_", "is_end": "1" }, { "id": "1797", "parent_id": "177", "name": "市中區", "remark": "", "rank": "3", "id_link": "0_1_16_177_1797_", "is_end": "1" }, { "id": "1798", "parent_id": "177", "name": "任城區", "remark": "", "rank": "3", "id_link": "0_1_16_177_1798_", "is_end": "1" }, { "id": "1799", "parent_id": "177", "name": "微山縣", "remark": "", "rank": "3", "id_link": "0_1_16_177_1799_", "is_end": "1" }, { "id": "1800", "parent_id": "177", "name": "魚臺縣", "remark": "", "rank": "3", "id_link": "0_1_16_177_1800_", "is_end": "1" }, { "id": "1801", "parent_id": "177", "name": "金鄉縣", "remark": "", "rank": "3", "id_link": "0_1_16_177_1801_", "is_end": "1" }, { "id": "1802", "parent_id": "177", "name": "嘉祥縣", "remark": "", "rank": "3", "id_link": "0_1_16_177_1802_", "is_end": "1" }, { "id": "1803", "parent_id": "177", "name": "汶上縣", "remark": "", "rank": "3", "id_link": "0_1_16_177_1803_", "is_end": "1" }, { "id": "1804", "parent_id": "177", "name": "泗水縣", "remark": "", "rank": "3", "id_link": "0_1_16_177_1804_", "is_end": "1" }, { "id": "1805", "parent_id": "177", "name": "梁山縣", "remark": "", "rank": "3", "id_link": "0_1_16_177_1805_", "is_end": "1" }, { "id": "1806", "parent_id": "177", "name": "曲阜市", "remark": "", "rank": "3", "id_link": "0_1_16_177_1806_", "is_end": "1" }, { "id": "1807", "parent_id": "177", "name": "兗州市", "remark": "", "rank": "3", "id_link": "0_1_16_177_1807_", "is_end": "1" }, { "id": "1808", "parent_id": "177", "name": "鄒城市", "remark": "", "rank": "3", "id_link": "0_1_16_177_1808_", "is_end": "1" } ] }, { "id": "178", "parent_id": "16", "name": "泰安市", "remark": "", "rank": "2", "id_link": "0_1_16_178_", "is_end": "0", "son": [ { "id": "178", "parent_id": "16", "name": "全泰安市", "remark": "", "rank": "2", "id_link": "0_1_16_178_", "is_end": 1 }, { "id": "1809", "parent_id": "178", "name": "市轄區", "remark": "", "rank": "3", "id_link": "0_1_16_178_1809_", "is_end": "1" }, { "id": "1810", "parent_id": "178", "name": "泰山區", "remark": "", "rank": "3", "id_link": "0_1_16_178_1810_", "is_end": "1" }, { "id": "1811", "parent_id": "178", "name": "岱嶽區", "remark": "", "rank": "3", "id_link": "0_1_16_178_1811_", "is_end": "1" }, { "id": "1812", "parent_id": "178", "name": "寧陽縣", "remark": "", "rank": "3", "id_link": "0_1_16_178_1812_", "is_end": "1" }, { "id": "1813", "parent_id": "178", "name": "東平縣", "remark": "", "rank": "3", "id_link": "0_1_16_178_1813_", "is_end": "1" }, { "id": "1814", "parent_id": "178", "name": "新泰市", "remark": "", "rank": "3", "id_link": "0_1_16_178_1814_", "is_end": "1" }, { "id": "1815", "parent_id": "178", "name": "肥城市", "remark": "", "rank": "3", "id_link": "0_1_16_178_1815_", "is_end": "1" } ] }, { "id": "179", "parent_id": "16", "name": "威海市", "remark": "", "rank": "2", "id_link": "0_1_16_179_", "is_end": "0", "son": [ { "id": "179", "parent_id": "16", "name": "全威海市", "remark": "", "rank": "2", "id_link": "0_1_16_179_", "is_end": 1 }, { "id": "1816", "parent_id": "179", "name": "市轄區", "remark": "", "rank": "3", "id_link": "0_1_16_179_1816_", "is_end": "1" }, { "id": "1817", "parent_id": "179", "name": "環翠區", "remark": "", "rank": "3", "id_link": "0_1_16_179_1817_", "is_end": "1" }, { "id": "1818", "parent_id": "179", "name": "文登市", "remark": "", "rank": "3", "id_link": "0_1_16_179_1818_", "is_end": "1" }, { "id": "1819", "parent_id": "179", "name": "榮成市", "remark": "", "rank": "3", "id_link": "0_1_16_179_1819_", "is_end": "1" }, { "id": "1820", "parent_id": "179", "name": "乳山市", "remark": "", "rank": "3", "id_link": "0_1_16_179_1820_", "is_end": "1" } ] }, { "id": "180", "parent_id": "16", "name": "日照市", "remark": "", "rank": "2", "id_link": "0_1_16_180_", "is_end": "0", "son": [ { "id": "180", "parent_id": "16", "name": "全日照市", "remark": "", "rank": "2", "id_link": "0_1_16_180_", "is_end": 1 }, { "id": "1821", "parent_id": "180", "name": "市轄區", "remark": "", "rank": "3", "id_link": "0_1_16_180_1821_", "is_end": "1" }, { "id": "1822", "parent_id": "180", "name": "東港區", "remark": "", "rank": "3", "id_link": "0_1_16_180_1822_", "is_end": "1" }, { "id": "1823", "parent_id": "180", "name": "嵐山區", "remark": "", "rank": "3", "id_link": "0_1_16_180_1823_", "is_end": "1" }, { "id": "1824", "parent_id": "180", "name": "五蓮縣", "remark": "", "rank": "3", "id_link": "0_1_16_180_1824_", "is_end": "1" }, { "id": "1825", "parent_id": "180", "name": "莒 縣", "remark": "", "rank": "3", "id_link": "0_1_16_180_1825_", "is_end": "1" } ] }, { "id": "181", "parent_id": "16", "name": "萊蕪市", "remark": "", "rank": "2", "id_link": "0_1_16_181_", "is_end": "0", "son": [ { "id": "181", "parent_id": "16", "name": "全萊蕪市", "remark": "", "rank": "2", "id_link": "0_1_16_181_", "is_end": 1 }, { "id": "1826", "parent_id": "181", "name": "市轄區", "remark": "", "rank": "3", "id_link": "0_1_16_181_1826_", "is_end": "1" }, { "id": "1827", "parent_id": "181", "name": "萊城區", "remark": "", "rank": "3", "id_link": "0_1_16_181_1827_", "is_end": "1" }, { "id": "1828", "parent_id": "181", "name": "鋼城區", "remark": "", "rank": "3", "id_link": "0_1_16_181_1828_", "is_end": "1" } ] }, { "id": "182", "parent_id": "16", "name": "臨沂市", "remark": "", "rank": "2", "id_link": "0_1_16_182_", "is_end": "0", "son": [ { "id": "182", "parent_id": "16", "name": "全臨沂市", "remark": "", "rank": "2", "id_link": "0_1_16_182_", "is_end": 1 }, { "id": "1829", "parent_id": "182", "name": "市轄區", "remark": "", "rank": "3", "id_link": "0_1_16_182_1829_", "is_end": "1" }, { "id": "1830", "parent_id": "182", "name": "蘭山區", "remark": "", "rank": "3", "id_link": "0_1_16_182_1830_", "is_end": "1" }, { "id": "1831", "parent_id": "182", "name": "羅莊區", "remark": "", "rank": "3", "id_link": "0_1_16_182_1831_", "is_end": "1" }, { "id": "1832", "parent_id": "182", "name": "河東區", "remark": "", "rank": "3", "id_link": "0_1_16_182_1832_", "is_end": "1" }, { "id": "1833", "parent_id": "182", "name": "沂南縣", "remark": "", "rank": "3", "id_link": "0_1_16_182_1833_", "is_end": "1" }, { "id": "1834", "parent_id": "182", "name": "郯城縣", "remark": "", "rank": "3", "id_link": "0_1_16_182_1834_", "is_end": "1" }, { "id": "1835", "parent_id": "182", "name": "沂水縣", "remark": "", "rank": "3", "id_link": "0_1_16_182_1835_", "is_end": "1" }, { "id": "1836", "parent_id": "182", "name": "蒼山縣", "remark": "", "rank": "3", "id_link": "0_1_16_182_1836_", "is_end": "1" }, { "id": "1837", "parent_id": "182", "name": "費 縣", "remark": "", "rank": "3", "id_link": "0_1_16_182_1837_", "is_end": "1" }, { "id": "1838", "parent_id": "182", "name": "平邑縣", "remark": "", "rank": "3", "id_link": "0_1_16_182_1838_", "is_end": "1" }, { "id": "1839", "parent_id": "182", "name": "莒南縣", "remark": "", "rank": "3", "id_link": "0_1_16_182_1839_", "is_end": "1" }, { "id": "1840", "parent_id": "182", "name": "蒙陰縣", "remark": "", "rank": "3", "id_link": "0_1_16_182_1840_", "is_end": "1" }, { "id": "1841", "parent_id": "182", "name": "臨沭縣", "remark": "", "rank": "3", "id_link": "0_1_16_182_1841_", "is_end": "1" } ] }, { "id": "183", "parent_id": "16", "name": "德州市", "remark": "", "rank": "2", "id_link": "0_1_16_183_", "is_end": "0", "son": [ { "id": "183", "parent_id": "16", "name": "全德州市", "remark": "", "rank": "2", "id_link": "0_1_16_183_", "is_end": 1 }, { "id": "1842", "parent_id": "183", "name": "市轄區", "remark": "", "rank": "3", "id_link": "0_1_16_183_1842_", "is_end": "1" }, { "id": "1843", "parent_id": "183", "name": "德城區", "remark": "", "rank": "3", "id_link": "0_1_16_183_1843_", "is_end": "1" }, { "id": "1844", "parent_id": "183", "name": "陵 縣", "remark": "", "rank": "3", "id_link": "0_1_16_183_1844_", "is_end": "1" }, { "id": "1845", "parent_id": "183", "name": "寧津縣", "remark": "", "rank": "3", "id_link": "0_1_16_183_1845_", "is_end": "1" }, { "id": "1846", "parent_id": "183", "name": "慶雲縣", "remark": "", "rank": "3", "id_link": "0_1_16_183_1846_", "is_end": "1" }, { "id": "1847", "parent_id": "183", "name": "臨邑縣", "remark": "", "rank": "3", "id_link": "0_1_16_183_1847_", "is_end": "1" }, { "id": "1848", "parent_id": "183", "name": "齊河縣", "remark": "", "rank": "3", "id_link": "0_1_16_183_1848_", "is_end": "1" }, { "id": "1849", "parent_id": "183", "name": "平原縣", "remark": "", "rank": "3", "id_link": "0_1_16_183_1849_", "is_end": "1" }, { "id": "1850", "parent_id": "183", "name": "夏津縣", "remark": "", "rank": "3", "id_link": "0_1_16_183_1850_", "is_end": "1" }, { "id": "1851", "parent_id": "183", "name": "武城縣", "remark": "", "rank": "3", "id_link": "0_1_16_183_1851_", "is_end": "1" }, { "id": "1852", "parent_id": "183", "name": "樂陵市", "remark": "", "rank": "3", "id_link": "0_1_16_183_1852_", "is_end": "1" }, { "id": "1853", "parent_id": "183", "name": "禹城市", "remark": "", "rank": "3", "id_link": "0_1_16_183_1853_", "is_end": "1" } ] }, { "id": "184", "parent_id": "16", "name": "聊城市", "remark": "", "rank": "2", "id_link": "0_1_16_184_", "is_end": "0", "son": [ { "id": "184", "parent_id": "16", "name": "全聊城市", "remark": "", "rank": "2", "id_link": "0_1_16_184_", "is_end": 1 }, { "id": "1854", "parent_id": "184", "name": "市轄區", "remark": "", "rank": "3", "id_link": "0_1_16_184_1854_", "is_end": "1" }, { "id": "1855", "parent_id": "184", "name": "東昌府區", "remark": "", "rank": "3", "id_link": "0_1_16_184_1855_", "is_end": "1" }, { "id": "1856", "parent_id": "184", "name": "陽谷縣", "remark": "", "rank": "3", "id_link": "0_1_16_184_1856_", "is_end": "1" }, { "id": "1857", "parent_id": "184", "name": "莘 縣", "remark": "", "rank": "3", "id_link": "0_1_16_184_1857_", "is_end": "1" }, { "id": "1858", "parent_id": "184", "name": "茌平縣", "remark": "", "rank": "3", "id_link": "0_1_16_184_1858_", "is_end": "1" }, { "id": "1859", "parent_id": "184", "name": "東阿縣", "remark": "", "rank": "3", "id_link": "0_1_16_184_1859_", "is_end": "1" }, { "id": "1860", "parent_id": "184", "name": "冠 縣", "remark": "", "rank": "3", "id_link": "0_1_16_184_1860_", "is_end": "1" }, { "id": "1861", "parent_id": "184", "name": "高唐縣", "remark": "", "rank": "3", "id_link": "0_1_16_184_1861_", "is_end": "1" }, { "id": "1862", "parent_id": "184", "name": "臨清市", "remark": "", "rank": "3", "id_link": "0_1_16_184_1862_", "is_end": "1" } ] }, { "id": "185", "parent_id": "16", "name": "濱州市", "remark": "", "rank": "2", "id_link": "0_1_16_185_", "is_end": "0", "son": [ { "id": "185", "parent_id": "16", "name": "全濱州市", "remark": "", "rank": "2", "id_link": "0_1_16_185_", "is_end": 1 }, { "id": "1863", "parent_id": "185", "name": "市轄區", "remark": "", "rank": "3", "id_link": "0_1_16_185_1863_", "is_end": "1" }, { "id": "1864", "parent_id": "185", "name": "濱城區", "remark": "", "rank": "3", "id_link": "0_1_16_185_1864_", "is_end": "1" }, { "id": "1865", "parent_id": "185", "name": "惠民縣", "remark": "", "rank": "3", "id_link": "0_1_16_185_1865_", "is_end": "1" }, { "id": "1866", "parent_id": "185", "name": "陽信縣", "remark": "", "rank": "3", "id_link": "0_1_16_185_1866_", "is_end": "1" }, { "id": "1867", "parent_id": "185", "name": "無棣縣", "remark": "", "rank": "3", "id_link": "0_1_16_185_1867_", "is_end": "1" }, { "id": "1868", "parent_id": "185", "name": "沾化縣", "remark": "", "rank": "3", "id_link": "0_1_16_185_1868_", "is_end": "1" }, { "id": "1869", "parent_id": "185", "name": "博興縣", "remark": "", "rank": "3", "id_link": "0_1_16_185_1869_", "is_end": "1" }, { "id": "1870", "parent_id": "185", "name": "鄒平縣", "remark": "", "rank": "3", "id_link": "0_1_16_185_1870_", "is_end": "1" } ] }, { "id": "186", "parent_id": "16", "name": "荷澤市", "remark": "", "rank": "2", "id_link": "0_1_16_186_", "is_end": "0", "son": [ { "id": "186", "parent_id": "16", "name": "全荷澤市", "remark": "", "rank": "2", "id_link": "0_1_16_186_", "is_end": 1 }, { "id": "1871", "parent_id": "186", "name": "市轄區", "remark": "", "rank": "3", "id_link": "0_1_16_186_1871_", "is_end": "1" }, { "id": "1872", "parent_id": "186", "name": "牡丹區", "remark": "", "rank": "3", "id_link": "0_1_16_186_1872_", "is_end": "1" }, { "id": "1873", "parent_id": "186", "name": "曹 縣", "remark": "", "rank": "3", "id_link": "0_1_16_186_1873_", "is_end": "1" }, { "id": "1874", "parent_id": "186", "name": "單 縣", "remark": "", "rank": "3", "id_link": "0_1_16_186_1874_", "is_end": "1" }, { "id": "1875", "parent_id": "186", "name": "成武縣", "remark": "", "rank": "3", "id_link": "0_1_16_186_1875_", "is_end": "1" }, { "id": "1876", "parent_id": "186", "name": "鉅野縣", "remark": "", "rank": "3", "id_link": "0_1_16_186_1876_", "is_end": "1" }, { "id": "1877", "parent_id": "186", "name": "鄆城縣", "remark": "", "rank": "3", "id_link": "0_1_16_186_1877_", "is_end": "1" }, { "id": "1878", "parent_id": "186", "name": "鄄城縣", "remark": "", "rank": "3", "id_link": "0_1_16_186_1878_", "is_end": "1" }, { "id": "1879", "parent_id": "186", "name": "定陶縣", "remark": "", "rank": "3", "id_link": "0_1_16_186_1879_", "is_end": "1" }, { "id": "1880", "parent_id": "186", "name": "東明縣", "remark": "", "rank": "3", "id_link": "0_1_16_186_1880_", "is_end": "1" } ] } ] }