# chuxing2021 **Repository Path**: fzyme_admin/chuxing2021 ## Basic Information - **Project Name**: chuxing2021 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-08-16 - **Last Updated**: 2021-08-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 2021年出行防疫政策查询 近期全国多地疫情出现反复态势,各地疫情期间出行政策不一。这对很多用户出行造成困扰:到当地会被隔离吗?需要做核酸检测吗? 本H5提供的“出行防疫政策查询”功能,便于用户实时查询各地出行政策及风险地区查询,做好疫情防控准备,安全便利出行。 > ~喜欢就给个 **star** 鼓励下吧~ #### 政策信息数据来源:使用聚合数据提供的在线API调用政策信息,并进行展示。 > 其政策数据整理自当地政府等公开发布的消息,如有更新或错漏,请以最新政策为准,建议在出行前咨询当地防疫部门、机场、火车站等。 > 主要提供地市级(州)有关部门发布的政策信息,暂不覆盖县级官方(县、县级市、地级市辖区等)信息。 #### 聚合API免费开通URL:`https://www.juhe.cn/docs/api/id/566?s=github` > 开通聚合API接口后,将会获得一个API的请求Key,只需要将文件`epidemic.js`第19行的key换成你申请到的key,就可以使用啦。 ```js // "http:"===window.location.protocol&&(window.location="https://"+window.location.host+window.location.pathname) var fromCity = document.getElementById('fromCity'), toCity = document.getElementById('toCity'), fromVal = '', toVal = '', outFrom = document.getElementById('outFrom'), inFrom = document.getElementById('inFrom'), inTo = document.getElementById('inTo'), outTo = document.getElementById('outTo'), fromCode = document.getElementById('fromCode'), ToCode = document.getElementById('ToCode'), from_info = '', to_info = '', fromCodeDes = '', fromCodeImg = '', toCodeDes = '', toCodeImg = '', appKey = 'fa7914d4eec67d44499d2eca5eaea6e1'; ``` H5效果图: ![image](https://raw.githubusercontent.com/JUHEAPI/chuxing2021/main/img/sample.png)