基本项目框架

master
yangxudongll 5 years ago
parent 2a58698a6e
commit 982d73f6b7

File diff suppressed because it is too large Load Diff

@ -1,3 +1,5 @@
import time
from flask import Flask, render_template, jsonify,request
from models import GetFromDB
app=Flask(__name__)
@ -20,6 +22,22 @@ def searchProvinceConfirmed():
data=jsonify(areas=[x[0] for x in results],confirmed=[x[1] for x in results])
return data
@app.route("/chinaSummary/",methods=['POST'])
def chinasummary():
db=GetFromDB()
nowtime=time.strftime('%Y-%m-%d',time.localtime(time.time()))
results=db.searchSummaryChina(nowtime)
results=results[0]
#获取各省份疫情数据
provinces=db.
data=jsonify(curConfirm=results[1],curConfirmRelative=results[2],
confirmed=results[9],confirmedRelative=results[10],
cured=results[13],curedRelative=results[14],died=results[15],
diedRelative=results[16],updateTime=nowtime)
return data
@app.route("/gloabalInfo/",methods=['POST'])
def GlobalInfomation():
print('----------------------------------')
@ -36,7 +54,7 @@ def GlobalInfomation():
@app.route("/")
def hello():
return render_template('global.html')
return render_template('index.html')
if __name__=='__main__':
app.run(host='192.168.1.30')

@ -0,0 +1,35 @@
.t_common .tit_common {
background: #f3f0f0;
height: 0.7rem;
line-height: 0.7rem;
/* padding-left:0.1rem; */
}
/* .t_common .tit_common .tit_icon {
display: inline-block;
width: 0.1rem;
height: 0.32rem;
background: rgb(56, 128, 220);
vertical-align: middle;
margin: 0 0.15rem 0 0.3rem;
} */
.t_common .tit_common .tit_con {
display: inline-block;
height: 0.7rem;
line-height: 0.7rem;
/* vertical-align: middle; */
font-family: MicrosoftYaHei-Bold;
font-size: 0.28rem;
color: #233E6A;
letter-spacing: 1px;
font-weight: 900;
/* position:absolute; */
/* left:0.45rem; */
/* top:0; */
/* font-size: 0.28rem; */
/* height:0.7rem; */
/* line-height:0.7rem; */
}

@ -0,0 +1,531 @@
@charset "UTF-8";
* { margin: 0; padding: 0;}
body{font-size:0.12rem;background-color:#fff;margin:0;}
#container{max-width:750px;margin:auto;}
a{text-decoration:none;}
li{list-style:none;}
.clearfix:after{content:'';display:block;clear:both;}
/* top */
.top {
width:100%;
height:auto;
position:relative;
}
.top .t_img {
width:100%;
display: block;
}
.top p{
position:absolute;
left:18%;
top:28%;
color:#fff;
font-size:0.5rem;
background:rgb(52,120,246);
padding: 0.1rem 0.3rem;
margin: 0;
}
.top span {
position: absolute;
left: 10%;
top: 53%;
color: #fff;
font-size:0.3rem;
background:rgb(101,201,122);
padding: 0.1rem 0.3rem;
margin: 0;
}
.top .logo_text {
position: absolute;
width:100%;
height:1rem;
color: #fff;
bottom:0;
left:0;
}
.top .logo_text .content {
height:100%;
text-align:center;
}
.top .logo_text .content img{
height:100%;
vertical-align: middle;
}
.top .logo_text .content div{
display:inline-block;
vertical-align: middle;
}
/* middle */
.middle_con {
width:100%;
height:auto;
}
.middle_con .wrap {
-webkit-tap-highlight-color:rgba(0, 0, 0, 0);
width:100%;
}
.middle_con .wrap .scroll_wrap {
width:88%;
margin:0.3rem auto 0;
height: 0.32rem;
position: relative;
font-size: 0.25rem;
/* border:1px solid blue; */
}
.middle_con .wrap .scroll_wrap div {
position: absolute;
top:0;
text-align:center;
}
.middle_con .wrap .scroll_wrap div.scroll_img{
left:0;
width:0.26rem;
height: 0.32rem;
/* border:1px solid red; */
}
.middle_con .wrap .scroll_wrap div.scroll_img img{
position: absolute;
top:50%;
left:0;
width:0.26rem;
height:0.26rem;
margin-top:-0.17rem;
}
.middle_con .wrap .scroll_wrap div.scroll_mar{
left:0.35rem;
right:1.18rem;
height:0.32rem;
line-height:0.32rem;
font-weight: bolder;
color:#333;
}
.middle_con .wrap .scroll_wrap div.scroll_detail{
width:1.1rem;
right:0;
height:0.32rem;
line-height:0.32rem;
color:rgb(56, 128, 220);
font-weight:bolder;
}
.middle_con .wrap .scroll_wrap div.scroll_detail a{
display:inline-block;
width:100%;
}
.middle_con .wrap .tabs {
margin: 0.2rem 0 0.3rem 0;
text-align: center;
cursor: pointer;
}
.middle_con .wrap .tabs .tabs_wrap{
border:1px solid rgb(56, 128, 220);
display: inline-block;
border-radius: 0.15rem;
overflow: hidden;
}
.middle_con .wrap .tabs .tabs_wrap span {
display:inline-block;
padding: 0.2rem 0.35rem;
font-size:0.25rem;
background: #fff;
color:rgb(56, 128, 220);
}
.middle_con .wrap .tabs .tabs_wrap span.sty {
background:rgb(56, 128, 220);
color:#fff;
}
.middle_con .wrap .tabs_content {
width:100%;
height:20rem;
position: relative;
}
.middle_con .wrap .tabs_content .tabs_list {
width:92%;
position: absolute;
top: 0;
left: 0;
padding:0 4%;
}
/* 疫情概览 */
.tabs_list.gailan .gl_tips {
color:rgb(128, 133, 134);
font-size:0.25rem;
}
/* 国外疫情概览 */
.tabs_list.dongtai.gll_tips {
color:rgb(128, 133, 134);
font-size:0.25rem;
}
/* detail4 */
.tabs_list.gailan .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;
}
.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);
}
.tabs_list.gailan .detail4 .list4 .color2 {
color: rgb(231, 161, 60);
}
.tabs_list.gailan .detail4 .list4 .color3 {
color: rgb(204, 208, 210);
}
.tabs_list.gailan .detail4 .list4 .num.color4 {
color: rgb(104, 202, 125);
}
.tabs_list.gailan .detail4 .list4 .text {
text-align: center;
font-size:0.3rem;
color:rgb(63, 79, 98);
}
/* analyze */
.tabs_list.gailan .analyze div {
display:flex;
justify-content: flex-start;
align-items: flex-start;
margin: 0.25rem 0;
}
.tabs_list.gailan .analyze div .list_img {
margin:0.05rem 0.2rem 0 0;
width:0.2rem;
display:inline-block;
}
.tabs_list.gailan .analyze div p {
margin:0;
font-size:0.25rem;
}
/* map */
.tabs_list.gailan .map {
margin-top: 0.5rem;
}
/* china table */
.table_t{
margin-top:0.4rem;
margin-bottom:0.1rem;
}
.tabs_list.gailan .table_pro {
width:100%;
height:auto;
}
.table_pro .title {
width:100%;
height:0.6rem;
color:#000;
}
.table_pro .title span{
float:left;
height:0.6rem;
line-height:0.6rem;
text-align:center;
font-size:0.25rem;
font-weight:bolder;
width:20%;
}
.table_pro .title span.t_area{
width:40%;
background:rgb(227, 231, 243);
}
.table_pro .title span.t_confirm {
background: rgb(243, 186, 176);
}
.table_pro .title span.t_dead {
background: rgb(180, 192, 213);
}
.table_pro .title span.t_heal {
background: rgb(102, 204, 153);
}
.table_pro .content {
width:100%;
}
.table_pro .content .c_line{
width:100%;
}
.table_pro .content .c_line .line_first{
width:100%;
height:0.6rem;
background:rgb(247, 247, 247);
}
.table_pro .content .c_line .line_first >span {
float:left;
width: 20%;
height:0.6rem;
line-height:0.6rem;
font-size:0.25rem;
font-weight:bolder;
background:rgb(247, 247, 247);
text-align:center;
box-sizing:border-box;
border-bottom:1px solid #eee;
}
.table_pro .content .c_line .line_first >span.c_area {
width: 40%;
text-align: left;
text-indent: 10px;
}
.table_pro .content .c_line .line_first >span.c_area img{
width: 6%;
}
.table_pro .content .c_line .line_hide {
width:100%;
/* height:0.6rem; */
display:none;
}
.table_pro .content .c_line .line_hide .hide_content{
width:100%;
height:0.6rem;
line-height:0.6rem;
}
.table_pro .content .c_line .line_hide .hide_content >span {
float: left;
width: 20%;
height: 0.6rem;
line-height: 0.6rem;
text-align:center;
box-sizing:border-box;
border-bottom:1px solid #eee;
font-size:14px !important;
}
.table_pro .content .c_line .line_hide .hide_content >span.c_area {
width: 40%;
}
.table_pro .rotate {
-moz-transform: rotate(90deg);
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
}
.cbp_tmtimeline {
margin: 0;
padding: 0;
list-style: none;
position: relative;
}
/* The line */
.cbp_tmtimeline:before {
content: '';
position: absolute;
top: 0;
bottom: 0;
width: 10px;
background: #afdcf8;
left: 20%;
margin-left: -10px;
}
.cbp_tmtimeline>li {
position: relative;
}
/* 时间 */
.cbp_tmtimeline>li .cbp_tmtime {
display: block;
width: 25%;
padding-right: 100px;
position: absolute;
}
.cbp_tmtimeline>li .cbp_tmtime span {
display: block;
text-align: right;
}
.cbp_tmtimeline>li .cbp_tmtime span:first-child {
font-size: 0.2rem;
color: #bdd0db;
}
.cbp_tmtimeline>li .cbp_tmtime span:last-child {
font-size: 2.9em;
color: #3594cb;
}
.cbp_tmtimeline>li:nth-child(odd) .cbp_tmtime span:last-child {
color: #6cbfee;
}
/* 内容 */
.cbp_tmtimeline>li .cbp_tmlabel {
margin: 0 0 15px 25%;
background: #3594cb;
color: #fff;
padding: 2em;
font-size: 1.2em;
font-weight: 300;
line-height: 1.4;
position: relative;
border-radius: 5px;
}
.cbp_tmtimeline>li:nth-child(odd) .cbp_tmlabel {
background: #6cbfee;
}
.cbp_tmtimeline>li .cbp_tmlabel h2 {
margin-top: 0px;
padding: 0 0 10px 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.4);
font-size: 0.3rem;
}
/* The triangle */
.cbp_tmtimeline>li .cbp_tmlabel:after {
right: 100%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
border-right-color: #3594cb;
border-width: 10px;
top: 10px;
}
.cbp_tmtimeline>li:nth-child(odd) .cbp_tmlabel:after {
border-right-color: #6cbfee;
}
/* Example Media Queries */
@media screen and (max-width: 65.375em) {
.cbp_tmtimeline>li .cbp_tmtime span:last-child {
font-size: 0.35rem
}
}
@media screen and (max-width: 47.2em) {
.cbp_tmtimeline:before {
display: none;
}
.cbp_tmtimeline>li .cbp_tmtime {
width: 100%;
position: relative;
padding: 0 0 15px 0;
}
.cbp_tmtimeline>li .cbp_tmtime span {
text-align: left;
}
.cbp_tmtimeline>li .cbp_tmlabel {
margin: 0 0 20px 0;
font-weight: 400;
font-size: 95%;
}
.cbp_tmtimeline>li .cbp_tmlabel:after {
right: auto;
left: 20px;
border-right-color: transparent;
border-bottom-color: #3594cb;
top: -20px;
}
.cbp_tmtimeline>li:nth-child(odd) .cbp_tmlabel:after {
border-right-color: transparent;
border-bottom-color: #6cbfee;
}
}
/* 防护知识 */
.fhzs .tit {
width:100%;
font-size:0.32rem;
margin-bottom:0.25rem;
font-weight:bolder;
}
.fhzs .fhhz,
.fhzs .fhbl,
.fhzs .fhnl {
width:100%;
background:rgb(250, 250, 250);
margin-bottom:0.2rem;
}
.fhzs .fhnl {
margin-bottom:0.4rem;
}
.fhzs .fhhz span,
.fhzs .fhbl span,
.fhzs .fhnl span {
height:0.8rem;
line-height:0.8rem;
text-indent: 0.2rem;
display: block;
font-size:0.25rem;
}
.fhzs .fhnl p{
height: 0.8rem;
margin-left: 0.2rem;
}
.fhzs .fhfg {
width:100%;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 314 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

File diff suppressed because it is too large Load Diff

@ -0,0 +1,643 @@
$(document).ready(function () {
$.ajax({
url: "https://view.inews.qq.com/g2/getOnsInfo?name=disease_h5", //请求的服务端地址
type: "post",
dataType: "JSONP",
error:function(requests){
alert(requests);
},
success: function (data) {
var tojson = $.parseJSON(data.data);
console.log(tojson);
$("#nowtime").html(tojson.lastUpdateTime); //时间
$(".num1").html(tojson.chinaTotal.confirm); //确诊病例
$(".add_num1").html(tojson.chinaAdd.confirm); //新增确诊病例
$(".num2").html(tojson.chinaTotal.suspect); //疑似病例
$(".add_num2").html(tojson.chinaAdd.suspect); //新增疑似病例
$(".num3").html(tojson.chinaTotal.dead); //死亡人数
$(".add_num3").html(tojson.chinaAdd.dead); //新增死亡人数
$(".num4").html(tojson.chinaTotal.heal); //治愈人数
$(".add_num4").html(tojson.chinaAdd.heal); //新增治愈人数
var chinaData = tojson.areaTree[0].children;
// 地图
var map_echarts = echarts.init(document.getElementById('map_echarts'));
var dataList = [];
for (var j = 0; j < chinaData.length; j++) {
var jsonobj = {};
jsonobj.name = chinaData[j].name;
jsonobj.value = chinaData[j].total.confirm;
dataList.push(jsonobj);
}
var nhbd = {
name: '南海半岛',
value: 0
};
dataList.push(nhbd);
var map_option = {
tooltip: {
triggerOn: "click",
formatter: function (e, t, n) {
return .5 == e.value ? e.name + ":有疑似病例" : e.seriesName + "<br />" + e.name + "" + e.value
}
},
visualMap: {
min: 0,
max: 100000,
left: 10,
bottom: 40,
itemWidth: 5, //图元的宽
itemHeight: 5, //图元的高
itemGap: 5, //两个图元之间的间隔距离
textStyle: {
fontSize: 9, //图元字体大小
},
pieces: [{
gt: 1000,
label: "> 1000",
color: "#7f1100"
}, {
gte: 500,
lte: 1000,
label: "500 - 1000",
color: "#ff5428"
}, {
gte: 150,
lt: 500,
label: "150 - 500",
color: "#ff8c71"
}, {
gt: 20,
lt: 150,
label: "20 - 150",
color: "#ffd768"
}, {
gt: 0,
lt: 20,
label: "0 - 20",
color: "rgb(253,235,207)"
}],
show: true
},
geo: {
map: "china",
roam: !1, //是否开启鼠标缩放和平移漫游
scaleLimit: { //滚轮缩放的极限控制
min: 1,
max: 2
},
zoom: 1.2, //当前视角的缩放比例。
top: 40,
label: {
show: !0,
fontSize: "7", //地图上文字的大小
color: "rgba(0,0,0,0.7)", //文字的颜色
position: ['0', '50%'],
align: "center",
verticalAlign: "middle",
distance: '2'
},
itemStyle: {
normal: {
//shadowBlur: 50,
//shadowColor: 'rgba(0, 0, 0, 0.2)',
borderColor: "rgba(0, 0, 0, 0.2)"
},
emphasis: {
areaColor: "#f2d5ad",
shadowOffsetX: 0,
shadowOffsetY: 0,
borderWidth: 0
}
}
},
series: [{
name: "确诊病例",
type: 'map',
mapType: 'china',
geoIndex: 0,
data: dataList
}]
};
map_echarts.setOption(map_option);
// 全国疫情新增确诊/新增疑似趋势图
var addData10 = tojson.chinaDayAddList;
console.log(addData10);
var xData10 = [];
var yData11 = [];
var yData12 = [];
/*
for (j = 0; j < addData10.length; j++) {
xData10.push(addData10[j].date);
yData11.push(addData10[j].confirm);
yData12.push(addData10[j].suspect);
}
*/
var echarts1 = echarts.init(document.getElementById('echarts1'));
var echarts1_option = {
title: {
top: '0',
left: 'left',
text: '全国疫情新增确诊/新增疑似趋势图',
textStyle: {
align: 'left',
color: '#000',
fontWeight: '500',
fontSize: 13,
}
},
backgroundColor: '#fff',
legend: {
right: '0',
top: '20px',
itemWidth: 10,
itemHeight: 5,
itemGap: 15,
textStyle: {
color: '#333',
fontSize: 10,
},
icon: 'roundRect',
data: ['新增确诊', '新增疑似']
},
grid: {
right: '0',
bottom: '0',
left: '0',
top: '50px',
containLabel: true
},
xAxis: [{
type: 'category',
data: xData10,
axisLine: { //坐标轴轴线相关设置
lineStyle: {
color: "#aaa"
}
},
axisTick: { //坐标轴刻度相关设置
show: true,
lineStyle: {
color: '#aaa',
width: 1,
},
length: 3,
},
axisLabel: { //坐标轴刻度标签的相关设置
show: true,
// interval:1,
textStyle: {
color: "#aaa",
fontSize: 9,
},
rotate: 30
}
}],
yAxis: [{
type: 'value',
position: 'left',
interval: 1000,
max: 6000,
axisLine: { //坐标轴轴线相关设置
show: false
},
axisTick: { //坐标轴刻度相关设置
show: false
},
axisLabel: { //坐标轴刻度标签的相关设置
show: true,
color: "#aaa",
fontSize: 9
},
splitLine: { //坐标轴在 grid 区域中的分隔线
lineStyle: {
color: "#eee",
}
}
}, ],
series: [{
name: '新增确诊',
type: 'line',
yAxisIndex: 0,
symbolSize: 4,
itemStyle: {
normal: {
color: 'rgb(255,215,104)',
}
},
data: yData11
},
{
name: '新增疑似',
type: 'line',
yAxisIndex: 0,
symbolSize: 4,
itemStyle: {
normal: {
color: 'rgb(127,17,0)',
}
},
data: yData12
}
]
};
echarts1.setOption(echarts1_option);
// 全国疫情累计确诊/疑似趋势图
var addData20 = tojson.chinaDayList;
var xData20 = [];
var yData21 = [];
var yData22 = [];
/*
for (var k = 0; k < addData20.length; k++) {
xData20.push(addData20[k].date);
yData21.push(addData20[k].confirm);
yData22.push(addData20[k].suspect);
}
*/
var echarts2 = echarts.init(document.getElementById('echarts2'));
var echarts2_option = {
title: {
top: '0',
left: 'left',
text: '全国疫情累计确诊/疑似趋势图',
textStyle: {
align: 'left',
color: '#000',
fontWeight: '500',
fontSize: 13,
}
},
backgroundColor: '#fff',
legend: {
right: '0',
top: '20px',
itemWidth: 10,
itemHeight: 5,
itemGap: 15,
textStyle: {
color: '#333',
fontSize: 10,
},
icon: 'roundRect',
data: ['累计确诊', '累计疑似']
},
grid: {
right: '0',
bottom: '0',
left: '0',
top: '50px',
containLabel: true
},
xAxis: [{
type: 'category',
data: xData20,
axisLine: { //坐标轴轴线相关设置
lineStyle: {
color: "#aaa"
}
},
axisTick: { //坐标轴刻度相关设置
show: true,
lineStyle: {
color: '#aaa',
width: 1,
},
length: 3,
},
axisLabel: { //坐标轴刻度标签的相关设置
show: true,
// interval:1,
textStyle: {
color: "#aaa",
fontSize: 9,
},
rotate: 30
}
}],
yAxis: [{
type: 'value',
position: 'left',
interval: 6000,
max: 48000,
axisLine: { //坐标轴轴线相关设置
show: false
},
axisTick: { //坐标轴刻度相关设置
show: false
},
axisLabel: { //坐标轴刻度标签的相关设置
show: true,
color: "#aaa",
fontSize: 9
},
splitLine: { //坐标轴在 grid 区域中的分隔线
lineStyle: {
color: "#eee",
}
}
}, ],
series: [{
name: '累计确诊',
type: 'line',
yAxisIndex: 0,
symbolSize: 4,
itemStyle: {
normal: {
color: 'rgb(255,215,104)',
}
},
data: yData21
},
{
name: '累计疑似',
type: 'line',
yAxisIndex: 0,
symbolSize: 4,
itemStyle: {
normal: {
color: 'rgb(127,17,0)',
}
},
data: yData22
}
]
};
echarts2.setOption(echarts2_option);
// 全国疫情累计死亡/治愈趋势图
var addData30 = tojson.chinaDayList;
var xData30 = [];
var yData31 = [];
var yData32 = [];
/*
for (var m = 0; m < addData30.length; m++) {
xData30.push(addData30[m].date);
yData31.push(addData30[m].dead);
yData32.push(addData30[m].heal);
}
*/
var echarts3 = echarts.init(document.getElementById('echarts3'));
var echarts3_option = {
title: {
top: '0',
left: 'left',
text: '全国疫情累计死亡/治愈趋势图',
textStyle: {
align: 'left',
color: '#000',
fontWeight: '500',
fontSize: 13,
}
},
backgroundColor: '#fff',
legend: {
right: '0',
top: '20px',
itemWidth: 10,
itemHeight: 5,
itemGap: 15,
textStyle: {
color: '#333',
fontSize: 10,
},
icon: 'roundRect',
data: ['累计死亡', '累计治愈']
},
grid: {
right: '0',
bottom: '0',
left: '0',
top: '50px',
containLabel: true
},
xAxis: [{
type: 'category',
data: xData30,
axisLine: { //坐标轴轴线相关设置
lineStyle: {
color: "#aaa"
}
},
axisTick: { //坐标轴刻度相关设置
show: true,
lineStyle: {
color: '#aaa',
width: 1,
},
length: 3,
},
axisLabel: { //坐标轴刻度标签的相关设置
show: true,
// interval:1,
textStyle: {
color: "#aaa",
fontSize: 9,
},
rotate: 30
}
}],
yAxis: [{
type: 'value',
position: 'left',
interval: 600,
max: 6000,
axisLine: { //坐标轴轴线相关设置
show: false
},
axisTick: { //坐标轴刻度相关设置
show: false
},
axisLabel: { //坐标轴刻度标签的相关设置
show: true,
color: "#aaa",
fontSize: 9
},
splitLine: { //坐标轴在 grid 区域中的分隔线
lineStyle: {
color: "#eee",
}
}
}, ],
series: [{
name: '累计死亡',
type: 'line',
yAxisIndex: 0,
symbolSize: 4,
itemStyle: {
normal: {
color: 'rgb(180,192,213)',
}
},
data: yData31
},
{
name: '累计治愈',
type: 'line',
yAxisIndex: 0,
symbolSize: 4,
itemStyle: {
normal: {
color: 'rgb(102,204,153)',
}
},
data: yData32
}
]
};
echarts3.setOption(echarts3_option);
// china 表格
$(".china.table_pro .content").html(eachchina(chinaData));
var china_line_first = $('.china.table_pro .content li.c_line .line_first');
china_line_first.on('click', function () {
$(this).next().slideToggle(500);
$(this).find('img').toggleClass('rotate');
});
// world 表格
tojson.areaTree.shift();
var worldData = tojson.areaTree;
$(".world.table_pro .content").html(eachworld(worldData));
},
error: function () {
console.log('请求数据出错');
}
});
$.ajax({
url: "https://view.inews.qq.com/g2/getOnsInfo?name=wuwei_ww_time_line", //请求的服务端地址
type: "post",
dataType: "JSONP",
success: function (data) {
var ssdata = JSON.parse(data.data);
// console.log(ssdata);
var newestdata = ssdata.reverse().slice(0, 20); //20条数据
var newswrap = $(".dongtai .main .cbp_tmtimeline");
newswrap.html(eachnews(newestdata));
},
error: function () {
console.log('请求数据出错');
}
});
});
function eachchina(obj) {
var str = '';
if (obj.constructor == Array) {
for (var i = 0, len = obj.length; i < len; i++) {
str += `<li class="c_line">
<div class="line_first">
<span class="c_area">
<img src="images/arrow.png">`;
str += `<div style="display:inline-block;margin-left:0.1rem;">` + obj[i].name + `</div>`;
str += `</span>`;
str += `<span class="c_confirm">` + obj[i].total.confirm + `</span>`;
str += `<span class="c_dead">` + obj[i].total.dead + `</span>`;
str += `<span class="c_heal">` + obj[i].total.heal + `</span>`;
str += `</div>`;
if (obj[i].children) {
str += `<div class="line_hide">`;
for (var j = 0; j < obj[i].children.length; j++) {
var thefirstchildren = obj[i].children[j];
str += `<div class="hide_content">`;
str += `<span class="c_area">` + thefirstchildren.name + `</span>`;
str += `<span class="c_confirm">` + thefirstchildren.total.confirm + `</span>`;
str += `<span class="c_dead">` + thefirstchildren.total.dead + `</span>`;
str += `<span class="c_heal">` + thefirstchildren.total.heal + `</span>`;
str += `</div>`;
}
str += `</div>`;
}
str += `</li>`;
}
return str;
}
}
function eachworld(obj) {
var str = '';
if (obj.constructor == Array) {
for (var i = 0, len = obj.length; i < len; i++) {
str += `<li class="c_line">
<div class="line_first">`;
str += `<span class="c_area" style="text-align:center;">` + obj[i].name + `</span>`;
str += `<span class="c_confirm">` + obj[i].total.confirm + `</span>`;
str += `<span class="c_dead">` + obj[i].total.dead + `</span>`;
str += `<span class="c_heal">` + obj[i].total.heal + `</span>`;
str += `</div>`;
str += `</li>`;
}
return str;
}
}
function eachnews(obj) {
var str = '';
if (obj.constructor == Array) {
for (var i = 0, len = obj.length; i < len; i++) {
var thetime = obj[i].time.split(" ");
if (obj[i].time != "") {
str += `<li>
<div class="cbp_tmtime">`;
str += `<span>` + thetime[0] + `</span>`;
str += `<span>` + thetime[1] + `</span>`;
str += `</div>
<div class="cbp_tmlabel">`;
str += `<h2>` + obj[i].title + `</h2>`;
str += `<p style="font-size: 0.25rem;padding:10px 0 0 0;">` + obj[i].desc + `</p>`;
str += `</div>`;
str += `</li>`;
}
}
return str;
}
}
var ospan = document.querySelectorAll('.middle middle_con');
console.log(ospan.length);
var num_op = 0;
var tabs_list = document.querySelectorAll('.middle_con .wrap div.tabs_content .tabs_lists');
console.log(tabs_list.length);
console.log('+++++++++++++++++++++++++++++++++++');
/*tabs_list[0].style.display = 'block';*/
for (var i = 0; i < ospan.length; i++) {
console.log('----------------------------------------------');
console.log(ospan.length);
ospan[i].index = i;
//一级标题:滑入事件
ospan[i].onclick = function () {
//一级标题style变化
ospan[num_op].className = '';
this.className = 'sty';
//二级内容block变化
tabs_list[num_op].style.display = '';
tabs_list[this.index].style.display = 'block';
num_op = this.index;
}
}

File diff suppressed because it is too large Load Diff

@ -0,0 +1,2 @@
console.log('--------------------------');

@ -1,88 +1,485 @@
{% extends 'base.html'%}
{% block title %}首页{% endblock %}
{% block head %}
<script
src="https://cdn.staticfile.org/echarts/4.3.0/echarts.min.js">
</script>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<!--如果是IE 就以标准渲染-->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<!-- 视窗——————响应式布局 -->
<meta name='viewport' content='width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0'>
<!--当前页面的三要素-->
<title>实时疫情</title>
<meta name="description" content="关键词、关键字">
<meta name="keywords" content="描述">
<link rel="icon" href="{{url_for('static',filename='images/favicon.ico')}}" type="image/x-icon" />
<!-- 引入CSS文件 -->
<link rel="stylesheet" type="text/css" href="{{url_for('static',filename='css/index.css')}}">
<!-- 公共样式 -->
<link rel="stylesheet" type="text/css" href="{{ url_for('static',filename='css/common.css')}}">
<script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js">
</script>
<script src={{url_for('static',filename='js/update.js')}}></script>
</head>
<body>
<div id='container' class='container'>
<div class="top">
<img src="{{url_for('static',filename='images/hImg.png')}}" alt="" width="100%" class="t_img">
<!-- <p>"聚"己之"能" "忧"患与共</p>
<span>合力战疫 "奠"定胜局</span>
<div class="logo_text">
<div class="content">
<img src="images/logo.png" alt="">
<div>深圳市聚能优电科技有限公司</div>
</div>
</div> -->
</div>
<div class="middle middle_con">
<div class='wrap'>
<div class="scroll_wrap">
<div class="scroll_img">
<img src="{{url_for('static',filename='images/news.png')}}" alt="">
</div>
<div class="scroll_mar">
<marquee behavior="scroll" direction="left">
如果您是湖北籍且目前身在湖北,疫情过后有意向来深圳发展,即日起可打开链接,在公司任何一个线上招聘网站或者公司官方公众号直接投递简历,公司人事小姐姐将重点筛选湖北籍简历,如接到面试通知,可等疫情过后参与面试,通过之后,入职日期将按照您投递简历之日起算。湖北的兄弟姐妹,我们在深圳等你!
</marquee>
</div>
<div class="scroll_detail"><a href="https://mp.weixin.qq.com/s/ZrbUqudyGbmACwQUp1oQZA">查看详情</a></div>
</div>
<div class="tabs">
<span class="tabs_wrap">
<span class="sty">疫情概览</span>
<span>国外疫情</span>
<span>防护知识</span>
</span>
</div>
<div class="tabs_content">
<div class="tabs_list gailan">
<!-- gl_tips -->
<p class="gl_tips">截止<span id="nowtime">2020-02-02 11:52</span>全国数据统计</p>
<!-- detail4 -->
<div class="detail4">
<div class="list4">
<p class="color1">较昨日+<span class="add_num1">110</span></p>
<p class="num num1 color1">0</p>
<div class="text">确诊病例</div>
</div>
<div class="list4">
<p class="color2">较昨日+<span class="add_num2">110</span></p>
<p class="num num2 color2">0</p>
<div class="text">现存确诊</div>
</div>
<div class="list4">
<p class="color3">较昨日+<span class="add_num3">110</span></p>
<p class="num num3 color3">0</p>
<div class="text">死亡人数</div>
</div>
<div class="list4">
<p class="color4">较昨日+<span class="add_num4">110</span></p>
<p class="num num4 color4">0</p>
<div class="text">治愈人数</div>
</div>
</div>
<!-- analyze -->
<div class="analyze">
<div>
</div>
<div>
</div>
<div>
</div>
<div>
</div>
<div>
</div>
</div>
<!-- map -->
<div class="map t_common">
<div class="map_tit tit_common">
<!-- <span class="tit_icon"></span> -->
<span class="tit_con">&nbsp;&nbsp;疫情概览</span>
</div>
<div class="map_con" id="map_echarts" style="width:100%;height:6.5rem;">
</div>
</div>
<!-- 全国疫情各省累计确诊图 -->
<div id="echarts1" style="width:100%;height:4rem;margin-bottom:0.4rem;"></div>
<!-- 全国疫情新增确诊图 -->
<div id="echarts2" style="width:100%;height:4rem;margin-bottom:0.4rem;"></div>
<!-- 全国疫情累计死亡/治愈趋势图 -->
<div id="echarts3" style="width:100%;height:4rem;"></div>
<!-- table -->
<!-- 全国表格 -->
<div class="china table_t t_common">
<div class="tit_common">
<!-- <span class="tit_icon"></span> -->
<span class="tit_con">&nbsp;&nbsp;全国数据统计</span>
</div>
</div>
<div class="china table_pro">
<div class="title">
<span class="t_area">地区</span>
<span class="t_confirm">确诊</span>
<span class="t_dead">死亡</span>
<span class="t_heal">治愈</span>
</div>
<ul class="content">
</ul>
</div>
<!-- 全球表格 -->
<div class="world table_t t_common">
<div class="tit_common">
<!-- <span class="tit_icon"></span> -->
<span class="tit_con">&nbsp;&nbsp;海外数据统计</span>
</div>
</div>
<div class="world table_pro">
<div class="title">
<span class="t_area">地区</span>
<span class="t_confirm">确诊</span>
<span class="t_dead">死亡</span>
<span class="t_heal">治愈</span>
</div>
<ul class="content">
<!-- <li class="c_line">
<div class="line_first">
<span class="c_area" style="text-align:center;">全球</span>
<span class="c_confirm">20623</span>
<span class="c_dead">427</span>
<span class="c_heal">657</span>
</div>
</li> -->
</ul>
</div>
</div>
<div class="tabs_list dongtai">
<!-- gl_tips -->
<p class="gll_tips">截止<span id="currenttime">2020-02-02 11:52</span>全国数据统计</p>
<!-- detail4 -->
<div class="detail4">
<div class="list4">
<p class="color1">较昨日+<span class="add_num1">110</span></p>
<p class="num num1 color1">0</p>
<div class="text">确诊病例</div>
</div>
<div class="list4">
<p class="color2">较昨日+<span class="add_num2">110</span></p>
<p class="num num2 color2">0</p>
<div class="text">疑似病例</div>
</div>
<div class="list4">
<p class="color3">较昨日+<span class="add_num3">110</span></p>
<p class="num num3 color3">0</p>
<div class="text">死亡人数</div>
</div>
<div class="list4">
<p class="color4">较昨日+<span class="add_num4">110</span></p>
<p class="num num4 color4">0</p>
<div class="text">治愈人数</div>
</div>
</div>
<!-- analyze -->
<div class="analyze">
<div>
<img src="{{url_for('static',filename='images/list.png')}}" alt="" class="list_img">
<p>
<span>病毒:</span>
<span>新型冠状病毒 2019-nCoV</span>
</p>
</div>
<div>
<img src="{{url_for('static',filename='images/list.png')}}" alt="" class="list_img">
<p>
<span>传染源:</span>
<span>野生动物,可能为中华菊头蝠</span>
</p>
</div>
<div>
<img src="{{url_for('static',filename='images/list.png')}}" alt="" class="list_img">
<p>
<span>传播途径:</span>
<span>经呼吸道飞沫传播,亦可通过接触传播,存在粪-口传播可能性</span>
</p>
</div>
<div>
<img src="{{url_for('static',filename='images/list.png')}}" alt="" class="list_img">
<p>
<span>易感人群:</span>
<span>人群普遍易感。老年人及有基础疾病者感染后病情较重,儿童及婴幼儿也有发病</span>
</p>
</div>
<div>
<img src="{{url_for('static',filename='images/list.png')}}" alt="" class="list_img">
<p>
<span>潜伏期:</span>
<span>一般为 37 天,最长不超过 14 天,潜伏期内存在传染性</span>
</p>
</div>
</div>
<!-- map -->
<div class="map t_common">
<div class="map_tit tit_common">
<!-- <span class="tit_icon"></span> -->
<span class="tit_con">&nbsp;&nbsp;疫情概览</span>
</div>
<div class="map_con" id="map_echart" style="width:100%;height:6.5rem;">
</div>
</div>
<!-- 全国疫情新增确诊/新增疑似趋势图 -->
<div id="echarts21" style="width:100%;height:4rem;margin-bottom:0.4rem;"></div>
<!-- 全国疫情累计确诊/疑似趋势图 -->
<div id="echarts22" style="width:100%;height:4rem;margin-bottom:0.4rem;"></div>
<!-- 全国疫情累计死亡/治愈趋势图 -->
<div id="echarts23" style="width:100%;height:4rem;"></div>
<!-- table -->
<!-- 全国表格 -->
<div class="china table_t t_common">
<div class="tit_common">
<!-- <span class="tit_icon"></span> -->
<span class="tit_con">&nbsp;&nbsp;全国数据统计</span>
</div>
</div>
<div class="china table_pro">
<div class="title">
<span class="t_area">地区</span>
<span class="t_confirm">确诊</span>
<span class="t_dead">死亡</span>
<span class="t_heal">治愈</span>
</div>
<ul class="content">
</ul>
</div>
<!-- 全球表格 -->
<div class="world table_t t_common">
<div class="tit_common">
<!-- <span class="tit_icon"></span> -->
<span class="tit_con">&nbsp;&nbsp;海外数据统计</span>
</div>
</div>
<div class="world table_pro">
<div class="title">
<span class="t_area">地区</span>
<span class="t_confirm">确诊</span>
<span class="t_dead">死亡</span>
<span class="t_heal">治愈</span>
</div>
<ul class="content">
<!-- <li class="c_line">
<div class="line_first">
<span class="c_area" style="text-align:center;">全球</span>
<span class="c_confirm">20623</span>
<span class="c_dead">427</span>
<span class="c_heal">657</span>
</div>
</li> -->
</ul>
</div>
</div>
<div class="tabs_list fhzs">
<div class="china table_t t_common">
<div class="tit_common">
<!-- <span class="tit_icon"></span> -->
<span class="tit_con">&nbsp;&nbsp;患者特征与防护</span>
</div>
</div>
<!-- <div class="tit tit1 tit_common">患者特征与防护</div> -->
<div class="fhhz">
<span>患者特征汇总</span>
<img src="{{url_for('static',filename='images/fhhz.png')}}" alt="" width="100%">
</div>
<div class="fhbl">
<span>性别比例</span>
<img src="{{url_for('static',filename='images/fhbl.png')}}" alt="" width="100%">
</div>
<div class="fhnl">
<span>年龄分布</span>
<p>
<b>中位数48岁</b>范围9个月~96岁15岁以下年龄组病例不到0.6%。
</p>
</div>
{% endblock %}
{% block main%}
<div class="china table_t t_common">
<div class="tit_common">
<!-- <span class="tit_icon"></span> -->
<span class="tit_con">&nbsp;&nbsp;节后返岗如是说</span>
</div>
</div>
<!-- <div class="tit tit tit_common">节后返岗如是说</div> -->
<div class="fhfg">
<img src="{{url_for('static',filename='images/fhfg.jpg')}}" alt="" width="100%">
<div id="boss">
<form class="form-inline my-2 my-lg-0">
<input class="form-control mr-sm-2" id="topdate" type="date" placeholder="2020-08-07" aria-label="Search">
<input class="form-control mr-sm-2" id="topnum" type="search" placeholder="省份个数" aria-label="Search">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
</form>
<div id="main" style="width: 400px;height:400px;">
</div>
</div>
</div>
</div>
</div>
</div><!-- container结束 -->
<script type="text/javascript">
// 基于准备好的dom初始化echarts实例
<script>
var ospan = document.querySelectorAll('.middle_con .wrap .tabs .tabs_wrap span');
var num_op = 0;
var tabs_list = document.querySelectorAll('.middle_con .wrap div.tabs_content .tabs_list');
tabs_list[0].style.display = 'block';
for (var i = 0; i < ospan.length; i++) {
ospan[i].index = i;
//一级标题:滑入事件
ospan[i].onclick = function () {
//一级标题style变化
ospan[num_op].className = '';
this.className = 'sty';
//二级内容block变化
tabs_list[num_op].style.display = '';
tabs_list[this.index].style.display = 'block';
num_op = this.index;
}
};
var dataList=[]
var myChart = echarts.init(document.getElementById('main'));
var topdate=document.getElementById('topdate').value
var topnum=$('#topnum').val()
option = {
title: {
text: '2020-08-07 感染人数最多5个省份',
subtext: '',
left: 'center'
},
tooltip: {
trigger: 'item',
formatter: '{a} <br/>{b} : {c} ({d}%)'
formatter:function(params,ticket, callback){
return params.seriesName+'<br />'+params.name+''+params.value
}//数据格式化
},
legend: {
orient: 'vertical',
visualMap: {
left: 'left',
data: []
top: 'bottom',
text: ['高','低'],//取值范围的文字
show:true//图注
},
geo: {
map: 'china',
roam: false,//不开启缩放和平移
zoom:1.23,//视角缩放比例
label: {
normal: {
show: true,
fontSize:'10',
color: 'rgba(0,0,0,0.7)'
}
},
series: [
{
name:'',
type: 'pie',
radius: '55%',
center: ['50%', '60%'],
data: [],
emphasis: {
itemStyle: {
shadowBlur: 10,
normal:{
borderColor: 'rgba(0, 0, 0, 0.2)'
},
emphasis:{
areaColor: '#F3B329',//鼠标选择区域颜色
shadowOffsetX: 0,
shadowOffsetY: 0,
shadowBlur: 20,
borderWidth: 0,
shadowColor: 'rgba(0, 0, 0, 0.5)'
}
}
},
series : [
{
name: '确诊人数',
type: 'map',
geoIndex: 0,
data:dataList
}
]
};
Udata=JSON.stringify({"name":"xudong"});
$.ajax({
$.ajax({
cache:false,
type:'POST',
url:'/query_province_topn',
data:{"topnum":topnum,
"topdate":topdate},
async:false,
url:'/chinaSummary',
error:function(request){
alert("fail")
alert('false');
},
success:function(results){
pub_dates=results.pub_dates;
areas=results.areas;
curConfirms=results.curcofirms;
console.log(curConfirms);
for(i=0,max=areas.length;i<max;i++){
option.legend.data.push(areas[i]);
option.series[0].data.push({value:curConfirms[i],name:areas[i]});
$("#nowtime").html(results.updateTime);
$(".num1").html(results.confirmed); //确诊病例
$(".add_num1").html(results.confirmedRelative); //新增确诊病例
$(".num2").html(results.curConfirm); //疑似病例
$(".add_num2").html(results.curConfirmRelative); //新增疑似病例
$(".num3").html(results.died); //死亡人数
$(".add_num3").html(results.diedRelative); //新增死亡人数
$(".num4").html(results.cured); //治愈人数
$(".add_num4").html(results.curedRelative); //新增治愈人数
}
// 使用刚指定的配置项和数据显示图表。
myChart.setOption(option);
});
</script>
<!-- 引入响应式布局的rem根标签 -->
<script>
(function(win,doc){
var docEl = doc.documentElement || document.body;//获取HTML标签
var container = doc.getElementById('container');//container元素
//判断是移动端设备还是PC,移动 就采用'orientationchange',横竖屏事件PC端就采用onresize窗口改变时间
var resize = 'onorientationchange' in win ? 'orientationchange':'resize';
function rem(){
docEl.style.fontSize= 100*(container.clientWidth/750)+'px';
}
});
</script>
//监听'DOMContent事件:DOM加载完成执行,如果DOMContent事件那么执行rem函数
doc.addEventListener('DOMContentLoaded',rem,false);
//win下监听resize事件,如果resize事件那么执行rem函数
win.addEventListener(resize,rem,false);
})(window,document);
</script>
<script type='text/javascript' src='{{ url_for("static",filename="js/echarts.js")}}'></script>
<script type='text/javascript' src='{{ url_for("static",filename="js/china.js")}}'></script>
<script type="text/javascript",src=" {{url_for('static',filename='js/jquery-3.2.1.js')}}"></script>
{%endblock%}
</body>
</html>

@ -1,7 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="fcea9d71-f4b2-41ab-b680-ecae8402b966" name="Default Changelist" comment="" />
<list default="true" id="fcea9d71-f4b2-41ab-b680-ecae8402b966" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/../数据分析和可视化/新冠疫情/hello.py" beforeDir="false" afterPath="$PROJECT_DIR$/../数据分析和可视化/新冠疫情/hello.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../数据分析和可视化/新冠疫情/templates/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/../数据分析和可视化/新冠疫情/templates/index.html" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/GrapData.py" beforeDir="false" afterPath="$PROJECT_DIR$/GrapData.py" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@ -80,22 +85,22 @@
<screen x="67" y="27" width="1853" height="1053" />
</state>
<state x="704" y="108" width="624" height="753" key="FileChooserDialogImpl/67.27.1853.1053@67.27.1853.1053" timestamp="1596679790740" />
<state width="1814" height="398" key="GridCell.Tab.0.bottom" timestamp="1597041528193">
<state width="1814" height="398" key="GridCell.Tab.0.bottom" timestamp="1597139627130">
<screen x="67" y="27" width="1853" height="1053" />
</state>
<state width="1814" height="398" key="GridCell.Tab.0.bottom/67.27.1853.1053@67.27.1853.1053" timestamp="1597041528193" />
<state width="1814" height="398" key="GridCell.Tab.0.center" timestamp="1597041528191">
<state width="1814" height="398" key="GridCell.Tab.0.bottom/67.27.1853.1053@67.27.1853.1053" timestamp="1597139627130" />
<state width="1814" height="398" key="GridCell.Tab.0.center" timestamp="1597139627126">
<screen x="67" y="27" width="1853" height="1053" />
</state>
<state width="1814" height="398" key="GridCell.Tab.0.center/67.27.1853.1053@67.27.1853.1053" timestamp="1597041528191" />
<state width="1814" height="398" key="GridCell.Tab.0.left" timestamp="1597041528190">
<state width="1814" height="398" key="GridCell.Tab.0.center/67.27.1853.1053@67.27.1853.1053" timestamp="1597139627126" />
<state width="1814" height="398" key="GridCell.Tab.0.left" timestamp="1597139627125">
<screen x="67" y="27" width="1853" height="1053" />
</state>
<state width="1814" height="398" key="GridCell.Tab.0.left/67.27.1853.1053@67.27.1853.1053" timestamp="1597041528190" />
<state width="1814" height="398" key="GridCell.Tab.0.right" timestamp="1597041528192">
<state width="1814" height="398" key="GridCell.Tab.0.left/67.27.1853.1053@67.27.1853.1053" timestamp="1597139627125" />
<state width="1814" height="398" key="GridCell.Tab.0.right" timestamp="1597139627127">
<screen x="67" y="27" width="1853" height="1053" />
</state>
<state width="1814" height="398" key="GridCell.Tab.0.right/67.27.1853.1053@67.27.1853.1053" timestamp="1597041528192" />
<state width="1814" height="398" key="GridCell.Tab.0.right/67.27.1853.1053@67.27.1853.1053" timestamp="1597139627127" />
<state x="67" y="27" width="1521" height="1053" key="SettingsEditor" timestamp="1596677393346">
<screen x="67" y="27" width="1853" height="1053" />
</state>

@ -157,7 +157,7 @@ class Spider():
#转换为json
DataIn=json.loads(summaryDataIn[0])
Inside=InsideChina()
Inside.curConfirm=int(DataIn['confirmed'])
Inside.curConfirm=int(DataIn['curConfirm'])
Inside.died=int(DataIn['died'])
Inside.cured=int(DataIn['cured'])
Inside.asymptomatic=int(DataIn['asymptomatic'])

Loading…
Cancel
Save