|
@@ -189,7 +189,7 @@ Page({
|
|
text:["优","良","差"]
|
|
text:["优","良","差"]
|
|
},
|
|
},
|
|
hcho:{
|
|
hcho:{
|
|
- range:[0.05,0.08],
|
|
|
|
|
|
+ range:[0.08,0.1],
|
|
text:["适宜","偏高","超标"]
|
|
text:["适宜","偏高","超标"]
|
|
}
|
|
}
|
|
};
|
|
};
|
|
@@ -798,7 +798,9 @@ Page({
|
|
let day = new Date();
|
|
let day = new Date();
|
|
let year = day.getFullYear();
|
|
let year = day.getFullYear();
|
|
let month = day.getMonth() + 1;
|
|
let month = day.getMonth() + 1;
|
|
|
|
+ month=month<10?('0'+month):month;
|
|
let today = day.getDate();
|
|
let today = day.getDate();
|
|
|
|
+ today=today<10?('0'+today):today;
|
|
const data={
|
|
const data={
|
|
projectId:this.data.spaceDetail.projectId,
|
|
projectId:this.data.spaceDetail.projectId,
|
|
date:`${year}${month}${today}`
|
|
date:`${year}${month}${today}`
|
|
@@ -863,6 +865,12 @@ Page({
|
|
(content[0].co2||content[0].co2==0)&&(content[0].co2level = this.checkLevel(content[0].co2,"co2"));
|
|
(content[0].co2||content[0].co2==0)&&(content[0].co2level = this.checkLevel(content[0].co2,"co2"));
|
|
(content[0].pm25||content[0].pm25==0)&&(content[0].pm25level = this.checkLevel(content[0].pm25,"pm25"));
|
|
(content[0].pm25||content[0].pm25==0)&&(content[0].pm25level = this.checkLevel(content[0].pm25,"pm25"));
|
|
(content[0].hcho||content[0].hcho==0)&&(content[0].hcholevel = this.checkLevel(content[0].hcho,"hcho"));
|
|
(content[0].hcho||content[0].hcho==0)&&(content[0].hcholevel = this.checkLevel(content[0].hcho,"hcho"));
|
|
|
|
+ if(typeof content[0].isPassengerPass==="undefined"){
|
|
|
|
+ content[0].isPassengerPassShow=false;
|
|
|
|
+ }else{
|
|
|
|
+ content[0].isPassengerPassShow=true;
|
|
|
|
+ content[0].isPassengerPass=content[0].isPassengerPass?'有人':'无人'
|
|
|
|
+ }
|
|
}
|
|
}
|
|
this.setData({spaceDetail:content[0]},()=>{
|
|
this.setData({spaceDetail:content[0]},()=>{
|
|
this.checkGuide(value);
|
|
this.checkGuide(value);
|