-
+
+
diff --git a/数据分析和可视化/新冠疫情/hello.py b/数据分析和可视化/新冠疫情/hello.py index 0918d70..4322941 100644 --- a/数据分析和可视化/新冠疫情/hello.py +++ b/数据分析和可视化/新冠疫情/hello.py @@ -6,12 +6,9 @@ app=Flask(__name__) @app.route("/query_province_topn/",methods=['POST']) def query_province_topn(): - #print(request.form.get('topnum')) - #print(request.form.get('topdate')) db=GetFromDB() results=db.query_province_topn('2020-08-07',5) data=jsonify(pub_dates=str(results[0][2]),areas=[x[0] for x in results],curcofirms=[x[1] for x in results]) - return data @app.route("/chinaInfo/",methods=['POST']) @@ -27,7 +24,6 @@ def chinasummary(): db=GetFromDB() nowtime=time.strftime('%Y-%m-%d',time.localtime(time.time())) results=db.searchSummaryChina(nowtime) - print(results) results=results[0] #获取各省份疫情数据 provinces=db.searchProvinceConfirmed(nowtime) @@ -63,5 +59,13 @@ def GlobalInfomation(): def hello(): return render_template('index.html') +@app.route("/foreign/") +def foreign(): + return render_template('index.html') + +@app.route("/fanghu/") +def hello1(): + return render_template('fanghu.html') + if __name__=='__main__': app.run(host='192.168.1.30') \ No newline at end of file diff --git a/数据分析和可视化/新冠疫情/static/css/index.css b/数据分析和可视化/新冠疫情/static/css/index.css index d5d0104..fa0a83c 100644 --- a/数据分析和可视化/新冠疫情/static/css/index.css +++ b/数据分析和可视化/新冠疫情/static/css/index.css @@ -168,11 +168,6 @@ li{list-style:none;} font-size:0.25rem; } - /* 国外疫情概览 */ - .tabs_list.dongtai.gll_tips { - color:rgb(128, 133, 134); - font-size:0.25rem; - } /* detail4 */ .tabs_list.gailan .detail4 { @@ -184,29 +179,14 @@ li{list-style:none;} border-bottom: 1px solid #dfdddd; margin-top:0.2rem; } - .dongtai .detail4{ - height:1.4rem; - display:flex; - justify-content: space-between; - align-items: center; - padding-bottom: 0.3rem; - border-bottom: 1px solid #dfdddd; - margin-top:0.2rem; - } .tabs_list.gailan .detail4 .list4 p { text-align:center; } - .tabs_list.dongtai.detail4.list4 p{ - text-align:center; - } .tabs_list.gailan .detail4 .list4 .num{ font-size:0.45rem; } - .tabs_list.dongtai.detail4.list4.num{ - font-size:0.45rem; - } .tabs_list.gailan .detail4 .list4 .color1 { color:rgb(234, 51, 35); @@ -275,16 +255,27 @@ li{list-style:none;} } .table_pro .title span.t_area{ - width:40%; + width:20%; background:rgb(227, 231, 243); } .table_pro .title span.t_confirm { + width:20%; background: rgb(243, 186, 176); } .table_pro .title span.t_dead { + width:20%; background: rgb(180, 192, 213); } .table_pro .title span.t_heal { + width:20%; + background: rgb(102, 204, 153); + } + .table_pro .title span.t_add { + width:10%; + background: rgb(102, 104, 100); + } + .table_pro .title span.t_all { + width:10%; background: rgb(102, 204, 153); } .table_pro .content { diff --git a/数据分析和可视化/新冠疫情/static/js/update.js b/数据分析和可视化/新冠疫情/static/js/update.js index 89afc1c..8b13789 100644 --- a/数据分析和可视化/新冠疫情/static/js/update.js +++ b/数据分析和可视化/新冠疫情/static/js/update.js @@ -1,2 +1 @@ -console.log('--------------------------'); diff --git a/数据分析和可视化/新冠疫情/templates/base1.html b/数据分析和可视化/新冠疫情/templates/base1.html new file mode 100644 index 0000000..65978cb --- /dev/null +++ b/数据分析和可视化/新冠疫情/templates/base1.html @@ -0,0 +1,88 @@ + + +
+截止2020-02-02 11:52全国数据统计
+ +较昨日+110
+0
+较昨日110
+0
+较昨日+110
+0
+较昨日+110
+0
+较昨日+110
+0
+截止2020-02-02 11:52全国数据统计
+ +较昨日+110
+0
+较昨日110
+0
+较昨日+110
+0
+较昨日+110
+0
+较昨日+110
+0
+截止2020-02-02 11:52全国数据统计
@@ -140,36 +140,16 @@