wx-program
parent
857f77487e
commit
b3f3feceba
|
@ -49,7 +49,8 @@
|
|||
clearInterval(this.timer)&&this.timer
|
||||
},
|
||||
onShow() {
|
||||
const that = this
|
||||
// console.log('greenhouseDevice');
|
||||
const that = this
|
||||
this.timer=setInterval(function() {
|
||||
uni.getStorage({
|
||||
key: 'token',
|
||||
|
@ -57,7 +58,7 @@
|
|||
that.getEquipmentInfo(uni.getStorageSync('userid'))
|
||||
}
|
||||
})
|
||||
}, 120000);
|
||||
}, 60000);
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
uni.showLoading({
|
||||
|
|
|
@ -28,7 +28,8 @@
|
|||
background: {
|
||||
backgroundColor: '#24B383',
|
||||
},
|
||||
deviceList: []
|
||||
deviceList: [],
|
||||
timer:null
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
|
@ -42,18 +43,23 @@
|
|||
that.getEquipmentInfo(uni.getStorageSync('userid'))
|
||||
},
|
||||
})
|
||||
setInterval(function() {
|
||||
|
||||
|
||||
},
|
||||
onHide() {
|
||||
clearInterval(this.timer)&&this.timer
|
||||
},
|
||||
onShow() {
|
||||
// console.log('preciseWaterAndFertilizer');
|
||||
const that = this
|
||||
this.timer=setInterval(function() {
|
||||
uni.getStorage({
|
||||
key: 'token',
|
||||
success: function(res) {
|
||||
// uni.showLoading({
|
||||
// title: '加载中...'
|
||||
// })
|
||||
that.getEquipmentInfo(uni.getStorageSync('userid'))
|
||||
}
|
||||
})
|
||||
}, 120000);
|
||||
|
||||
}, 60000);
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
uni.showLoading({
|
||||
|
|
|
@ -356,16 +356,9 @@
|
|||
that.getEquipmentInfo(uni.getStorageSync('userid'))
|
||||
},
|
||||
})
|
||||
this.timer = setInterval(function() {
|
||||
uni.getStorage({
|
||||
key: 'token',
|
||||
success: function(res) {
|
||||
that.getEquipmentInfo(uni.getStorageSync('userid'))
|
||||
},
|
||||
})
|
||||
}, 60000);
|
||||
},
|
||||
onShow() {
|
||||
// console.log('timeEnvironment');
|
||||
let that = this
|
||||
clearInterval(that.timer) && that.timer
|
||||
this.timer = setInterval(function() {
|
||||
|
@ -491,7 +484,7 @@
|
|||
} else {
|
||||
this.updateTime.push('暂无')
|
||||
}
|
||||
console.log(this.updateTime,'this.updateTime');
|
||||
// console.log(this.updateTime,'this.updateTime');
|
||||
}).catch(err => {
|
||||
console.log('接口失败');
|
||||
})
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -213,6 +213,7 @@ var _default = {
|
|||
clearInterval(this.timer) && this.timer;
|
||||
},
|
||||
onShow: function onShow() {
|
||||
// console.log('greenhouseDevice');
|
||||
var that = this;
|
||||
this.timer = setInterval(function () {
|
||||
uni.getStorage({
|
||||
|
@ -221,7 +222,7 @@ var _default = {
|
|||
that.getEquipmentInfo(uni.getStorageSync('userid'));
|
||||
}
|
||||
});
|
||||
}, 120000);
|
||||
}, 60000);
|
||||
},
|
||||
onPullDownRefresh: function onPullDownRefresh() {
|
||||
uni.showLoading({
|
||||
|
|
|
@ -193,7 +193,8 @@ var _default = {
|
|||
background: {
|
||||
backgroundColor: '#24B383'
|
||||
},
|
||||
deviceList: []
|
||||
deviceList: [],
|
||||
timer: null
|
||||
};
|
||||
},
|
||||
onLoad: function onLoad() {
|
||||
|
@ -207,17 +208,21 @@ var _default = {
|
|||
that.getEquipmentInfo(uni.getStorageSync('userid'));
|
||||
}
|
||||
});
|
||||
setInterval(function () {
|
||||
},
|
||||
onHide: function onHide() {
|
||||
clearInterval(this.timer) && this.timer;
|
||||
},
|
||||
onShow: function onShow() {
|
||||
// console.log('preciseWaterAndFertilizer');
|
||||
var that = this;
|
||||
this.timer = setInterval(function () {
|
||||
uni.getStorage({
|
||||
key: 'token',
|
||||
success: function success(res) {
|
||||
// uni.showLoading({
|
||||
// title: '加载中...'
|
||||
// })
|
||||
that.getEquipmentInfo(uni.getStorageSync('userid'));
|
||||
}
|
||||
});
|
||||
}, 120000);
|
||||
}, 60000);
|
||||
},
|
||||
onPullDownRefresh: function onPullDownRefresh() {
|
||||
uni.showLoading({
|
||||
|
|
|
@ -783,16 +783,9 @@ var _default = {
|
|||
that.getEquipmentInfo(uni.getStorageSync('userid'));
|
||||
}
|
||||
});
|
||||
this.timer = setInterval(function () {
|
||||
uni.getStorage({
|
||||
key: 'token',
|
||||
success: function success(res) {
|
||||
that.getEquipmentInfo(uni.getStorageSync('userid'));
|
||||
}
|
||||
});
|
||||
}, 60000);
|
||||
},
|
||||
onShow: function onShow() {
|
||||
// console.log('timeEnvironment');
|
||||
var that = this;
|
||||
clearInterval(that.timer) && that.timer;
|
||||
this.timer = setInterval(function () {
|
||||
|
@ -963,7 +956,7 @@ var _default = {
|
|||
} else {
|
||||
_this.updateTime.push('暂无');
|
||||
}
|
||||
console.log(_this.updateTime, 'this.updateTime');
|
||||
// console.log(this.updateTime,'this.updateTime');
|
||||
}).catch(function (err) {
|
||||
console.log('接口失败');
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue