uni-app启动页+3秒倒计时跳转(vue3+ts)

uni-app启动页+3秒倒计时跳转(vue3+ts)_第1张图片

 
{ {data.cuntdown}}跳过
立即开启
const data=reactive({
    btnfas: false,
    cuntdown:3,
    timerthree:null,
})
const btnfass=function(){
    data.btnfas=!data.btnfas
    if(!data.timerthree){
        data.timerthree=setInterval(()=>{
            if(data.cuntdown>1&&data.cuntdown<=3){
                data.cuntdown--
            }else{
                clearInterval(data.timerthree)
                data.timerthree=null     
                console.log('dsdsdsfdfsfddsfdfd')
                uni.navigateTo({
               

你可能感兴趣的:(uniapp,大数据)