想改成三天时间的倒计时 麻烦哪位师傅帮忙看下 修改一下 麻烦帮忙修改一下代码
<button class="cu-btn bg-red" disabled type="">
<uni-countdown :show-day="false" :hour="pageInfo.houre" :minute="pageInfo.minute" :second="pageInfo.second" color="#FFFFFF" @timeup="reload()"/>
</button>
this.$lastWithDrawTime(type).then((result) => {
let time=parseInt(new Date().getTime()/1000);
switch(type){
case 1:
if(time-result>259200){
_this.pageInfo.isOk=true;
}else{
let mss=(259200-(time-result))*1000;
_this.pageInfo.isOk=false;
_this.pageInfo.houre=parseInt((mss % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
_this.pageInfo.minute=parseInt((mss % (1000 * 60 * 60)) / (1000 * 60))
_this.pageInfo.second=parseInt((mss % (1000 * 60)) / 1000)
}
break;
case 2:
if(time-result>259200){
_this.pageInfo.isOk2=true;
}else{
let mss=(259200-(time-result))*1000;
_this.pageInfo.isOk2=false;
_this.pageInfo.houre2=parseInt((mss % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
_this.pageInfo.minute2=parseInt((mss % (1000 * 60 * 60)) / (1000 * 60))
_this.pageInfo.second2=parseInt((mss % (1000 * 60)) / 1000)
}
break;
case 3:
if(time-result>259200){
_this.pageInfo.isOk3=true;
}else{
let mss=(259200-(time-result))*1000;
_this.pageInfo.isOk3=false;
_this.pageInfo.houre3=parseInt((mss % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
_this.pageInfo.minute3=parseInt((mss % (1000 * 60 * 60)) / (1000 * 60))
_this.pageInfo.second3=parseInt((mss % (1000 * 60)) / 1000)
}
break;
}
})