# 确诊肺炎同程系统-疫同 **Repository Path**: yangmain/tcb-hackthon-YT ## Basic Information - **Project Name**: 确诊肺炎同程系统-疫同 - **Description**: 疫同,一款寻找疫友同乘的工具。集成确诊同程信息发布、信息审核、同乘查询以及自主上报功能,从发布到上报形成一套闭环,做到疫情的防控的作用。已加入语音播报功能(TTS),能是残障人士快速上手。 - **Primary Language**: 微信 - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 21 - **Created**: 2020-02-13 - **Last Updated**: 2020-12-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 作品名 ### 疫同 ## 项目简介 疫同,一款寻找疫友同乘的工具。集成确诊同程信息发布、信息审核、同乘查询以及自主上报功能,从发布到上报形成一套闭环,做到疫情的防控的作用。 项目的所有初始数据来自2019ncov.nosugartech.com 错误数据反馈:xunren@pdnews.cn, nearpost@qq.com, gainover@qq.com 若各地官方机构希望增补行程数据、寻人信息,可联系xunren@pdnews.cn ## 项目预览图片 ![小程序码](http://1510lab.com/img/QR.png "疫同1.png") ![项目截图:主页](https://images.gitee.com/uploads/images/2020/0211/000638_91c02f4b_1463122.png "疫同1.png") ![项目截图:次页](https://images.gitee.com/uploads/images/2020/0211/000648_90abf818_1463122.png "疫同2.png") ## 团队信息 团队名:疫同程 团队成员 - 队长: 汤圆(@tangyuantang) - 队员: - 范子龙(@fzl924018662) ## 实现思路 1.用户上传确诊患者所乘坐过的行程线索,提交form表单 ``` JavaScript db.collection('Clue').add({ }) //云数据库增加表单 ``` 2.首页使用db.RegExp模糊查找数据,并使用.skip()进行分页加载 ``` JavaScript db.collection("busData").where( _.or([{ t_no: db.RegExp({ regexp: data.t_no, options: 'i', }), t_date: db.RegExp({ regexp: this.data.date, options: 'i', }), t_pos_start: db.RegExp({ regexp: data.t_city, options: 'i', }), }, { t_no: db.RegExp({ regexp: data.t_no, options: 'i', }), t_date: db.RegExp({ regexp: this.data.date, options: 'i', }), t_pos_end: db.RegExp({ regexp: data.t_city, options: 'i', }), } ]) ).skip(this.data.page).get({ success: res => { wx.hideLoading(); if (res.data.length == 0) { wx.showToast({ icon: 'none', title: '暂无数据' }) } else { this.setData({ queryResult: res.data, page: this.data.page + 20 }) } }, fail: err => { wx.hideLoading(); wx.showToast({ icon: 'none', title: '暂无数据' }) } }) ``` 3.前端使用wx:for列表渲染和wx:if条件渲染数据 ```html 飞机: 火车: 地铁: 大巴: 公交车: 出租车: 轮船: 公共场所: {{item.t_no}} {{item.t_date}} {{item.t_pos_start}} => {{item.t_pos_end}} {{item.t_no_sub}} {{item.t_memo}} 消息来源:{{item.who}} ``` 4.项目数据使用“2019ncov.nosugartech.com”的数据接口和小程序中用户说上传并核实的线索作为支撑。 ## 视频展示 https://v.qq.com/x/page/q3061yc8unr.html ## LOG 20200208 * 增加[Conviction](https://gitee.com/leedaisen/tcb-hackthon-MBaby)的TTS模块