setInterval(function(){
var letftime=res.data.time-(Math.round(new Date().getTime()/1000).toString())
if(letftime<=1){
that.setData({
h:'00',m:'00',s:'00'
})
return;
}
var hour=Math.floor(letftime/3600)
var minute=Math.floor((letftime-hour*3600)/60)
var second=Math.floor(letftime-hour*3600-minute*60)
if(minute>=0&&second>=0){
that.setData({
m:minute<10?'0'+minute:minute,
s:second<10?'0'+second:second,
h:hour<10?'0'+hour:hour
})
}
})