|
@@ -132,26 +132,16 @@ export default {
|
|
|
let number=0
|
|
|
var that = this;
|
|
|
let s=Math.round(Math.random()*300)
|
|
|
- console.log('s',s)
|
|
|
- this.timer = setInterval(() => {
|
|
|
- number++
|
|
|
- if(number==s){
|
|
|
- number=0
|
|
|
- s=Math.round(Math.random()*300)
|
|
|
- console.log('s',s)
|
|
|
+ // this.timer = setInterval(() => {
|
|
|
+ // number++
|
|
|
+ // if(number==s){
|
|
|
+ // number=0
|
|
|
+ // s=Math.round(Math.random()*300)
|
|
|
+ // that.showAlarmBox=true
|
|
|
+ // }
|
|
|
+ // }, 1000)
|
|
|
|
|
|
- that.showAlarmBox=true
|
|
|
- }
|
|
|
- }, 1000)
|
|
|
-
|
|
|
- // this.fn();
|
|
|
- // let s=Math.round(Math.random()*10) *1000
|
|
|
- // console.log(s)
|
|
|
- // this.timer1 = setInterval(() => {
|
|
|
- // this.showAlarmBox=true
|
|
|
- // s=Math.round(Math.random()*180) *1000+30000
|
|
|
- // console.log(s)
|
|
|
- // }, s)
|
|
|
+
|
|
|
|
|
|
},
|
|
|
methods:{
|