取消3秒刷新
parent
58160ca38a
commit
97ab8e6518
|
@ -224,7 +224,7 @@
|
||||||
indexs: 1,
|
indexs: 1,
|
||||||
inputData1: [],
|
inputData1: [],
|
||||||
|
|
||||||
timer: null
|
// timer: null
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
@ -234,13 +234,13 @@
|
||||||
this.deviceId = option.id
|
this.deviceId = option.id
|
||||||
this.dataInit()
|
this.dataInit()
|
||||||
let that = this
|
let that = this
|
||||||
this.timer = setInterval(function() {
|
// this.timer = setInterval(function() {
|
||||||
that.dataInit();
|
// that.dataInit();
|
||||||
that.getReg();
|
// that.getReg();
|
||||||
}, 3000);
|
// }, 3000);
|
||||||
},
|
},
|
||||||
onUnload() {
|
onUnload() {
|
||||||
clearTimeout(this.timer)
|
// clearTimeout(this.timer)
|
||||||
},
|
},
|
||||||
onPullDownRefresh() {
|
onPullDownRefresh() {
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -412,22 +412,24 @@ var _default = {
|
||||||
left1Act: -1,
|
left1Act: -1,
|
||||||
topActive: 0,
|
topActive: 0,
|
||||||
indexs: 1,
|
indexs: 1,
|
||||||
inputData1: [],
|
inputData1: []
|
||||||
timer: null
|
|
||||||
|
// timer: null
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
watch: {},
|
watch: {},
|
||||||
onLoad: function onLoad(option) {
|
onLoad: function onLoad(option) {
|
||||||
this.deviceId = option.id;
|
this.deviceId = option.id;
|
||||||
this.dataInit();
|
this.dataInit();
|
||||||
var that = this;
|
var that = this;
|
||||||
this.timer = setInterval(function () {
|
// this.timer = setInterval(function() {
|
||||||
that.dataInit();
|
// that.dataInit();
|
||||||
that.getReg();
|
// that.getReg();
|
||||||
}, 3000);
|
// }, 3000);
|
||||||
},
|
},
|
||||||
onUnload: function onUnload() {
|
onUnload: function onUnload() {
|
||||||
clearTimeout(this.timer);
|
// clearTimeout(this.timer)
|
||||||
},
|
},
|
||||||
onPullDownRefresh: function onPullDownRefresh() {
|
onPullDownRefresh: function onPullDownRefresh() {
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
|
|
Loading…
Reference in New Issue