| | |
| | | |
| | | },1000*60*60*4) |
| | | |
| | | setInterval(()=> { |
| | | setTimeout(()=>{ |
| | | var time = new Date(); |
| | | var hh = time.getHours(); |
| | | var mm = time.getMinutes(); |
| | | if(hh > this.oldHours && mm >this.oldMin && this.oldMin - mm < 55){ |
| | | plus.runtime.restart(); |
| | | } |
| | | if(mm >this.oldMin && mm - this.oldMin >2){ |
| | | plus.runtime.restart(); |
| | | } |
| | | },100) |
| | | // setInterval(()=> { |
| | | // setTimeout(()=>{ |
| | | // var time = new Date(); |
| | | // var hh = time.getHours(); |
| | | // var mm = time.getMinutes(); |
| | | // if(hh > this.oldHours && mm >this.oldMin && this.oldMin - mm < 55){ |
| | | // plus.runtime.restart(); |
| | | // } |
| | | // if(mm >this.oldMin && mm - this.oldMin >2){ |
| | | // plus.runtime.restart(); |
| | | // } |
| | | // },100) |
| | | |
| | | },1000*30) |
| | | // },1000*30) |
| | | }, |
| | | created() { |
| | | let that = this |