データ:関数(){ リターン{ COUNTDOWN:1800 、 payTimeout:' 30:00タイムアウト後に' 、 }; } // 二次元コード30分障害カウントダウン payTimeoutCount(){ LETの_this = この; IF(この .countdown> = 0 ){ LET分 = Math.floor(この .countdown / 60 ); LET秒 = Math.floor(この .countdown%60 ); IF(分< 10){ 分 = ' 0 ' + 分; } IF(秒< 10 ){ 秒 = ' 0 ' + 秒; } この .payTimeout分= + " :" + +秒' タイムアウト後に' ; IF(この .countdown = = 0 ){ この .payTimeout = ' 有料残業' ; } - この.countdown; } 他{ window.clearInterval(_this.paytimerout); この .payTimeout = ' 有料残業' ; } } //カウントダウン開始 goPayを(){ LETの_this = この; _this.paytimerout = window.setInterval(関数( ){ _this.payTimeoutCount(); }、1000年); } // タイマーをクリア closeCodeMask(){ LETの_this = この;
window.clearInterval(_this.paytimerout)。
}、