perf(): 代码优化

master
李神峰 2024-11-12 10:35:55 +08:00
parent 65b159ce06
commit b9e2563c8e
2 changed files with 21 additions and 31 deletions

View File

@ -138,13 +138,11 @@
getYlzList() {
uni.$http.post('/gunshiApp/xyt/stPptnRReal/list').then(res => {
if (res.data.code == 200) {
console.log(this.Ylzlist,'this.Ylzlist');
this.Ylzlist = res.data.data
}
})
},
getList() {
console.log(11);
uni.$http.post('/gunshiApp/xyt/messageCenter/list', {
start: '',
end: ''
@ -249,8 +247,6 @@
},
onLoad() {
console.log("走了几遍");
this.getYlzList();
},
@ -267,7 +263,6 @@
this.getYjData();
},
onHide() {
console.log(222);
clearInterval(timer)
timer = null;
},
@ -365,6 +360,7 @@
// margin-bottom: 12rpx;
background: #fff;
}
.info_24 {
width: 100%;
// position: fixed;

View File

@ -68,7 +68,6 @@
}
},
mounted() {
console.log('小玉潭水库222');
this.getList()
this.getDrp()
},
@ -91,13 +90,10 @@
uni.$http.get('/gunshiApp/xyt/reservoir/water/detail?stcd=716164061&_=1731028927554').then(res=>{
this.dataform={...this.dataform,...res.data.data}
console.log(this.dataform,'drp yesterdayDrp');
})
uni.$http.post('/gunshiApp/xyt/reservoir/water/list').then(res=>{
console.log(res,'drp list');
this.dataform={...this.dataform,...res.data.data[0]}
console.log(this.dataform,'drp list');
this.tm = res.data.data[0].tm
})
uni.$http.post('/gunshiApp/xyt/stWaterRReal/list').then(res=>{
@ -120,7 +116,6 @@
if(index == 0){
this.showImg = item.url
console.log(this.showImg,'this.showImg');
}
return item})
}
@ -140,7 +135,6 @@
},
getList(){
uni.$http.post('/gunshiApp/xyt/attResBase/list').then(res=>{
console.log(res.data.data[0]);
this.dataform=res.data.data[0]
})
},