{"id":13643367,"url":"https://github.com/limxing/CityPickerWebView","last_synced_at":"2025-04-21T01:32:25.188Z","repository":{"id":92386205,"uuid":"70380579","full_name":"limxing/CityPickerWebView","owner":"limxing","description":"省市县三级联动，JS实现","archived":false,"fork":false,"pushed_at":"2016-10-11T03:09:34.000Z","size":508,"stargazers_count":60,"open_issues_count":3,"forks_count":23,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-11-09T15:42:30.580Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/limxing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-10-09T06:01:36.000Z","updated_at":"2024-04-26T03:59:40.000Z","dependencies_parsed_at":"2023-05-17T02:15:13.391Z","dependency_job_id":null,"html_url":"https://github.com/limxing/CityPickerWebView","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/limxing%2FCityPickerWebView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/limxing%2FCityPickerWebView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/limxing%2FCityPickerWebView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/limxing%2FCityPickerWebView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/limxing","download_url":"https://codeload.github.com/limxing/CityPickerWebView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249982617,"owners_count":21355734,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T01:01:46.469Z","updated_at":"2025-04-21T01:32:24.496Z","avatar_url":"https://github.com/limxing.png","language":"JavaScript","readme":"# CityPickerWebView\n省市县三级联动，JS实现\n\n\u003cimg src=\"./city.gif\"/\u003e\n\n添加依赖\n```\ncompile 'me.leefeng:citypicker:1.0'\n```\n\n使用方法：\n\nonCreat()中：\n```\n  cityPicker = new CityPicker(MainActivity.this, this);\n\n```\n打开选择器：\n```\n cityPicker.show();\n\n```\n\n监听方法回调：\n```\n@Override\n public void getCity(final String name) {\n        textView.setText(name);\n }\n```\n\n处理返回键：\n```\n @Override\n    public void onBackPressed() {\n        if (cityPicker.isShow()){\n            cityPicker.close();\n            return;\n        }\n        super.onBackPressed();\n    }\n```\n\n 参考文献：\u003ca href=\"https://github.com/dcloudio/mui/\"\u003emui\u003c/a\u003e\n","funding_links":[],"categories":["选择器(Picker)"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flimxing%2FCityPickerWebView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flimxing%2FCityPickerWebView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flimxing%2FCityPickerWebView/lists"}