Commit 787020b5 authored by yating.lin's avatar yating.lin

修改loading效果

parent cb2e21f0
......@@ -14,14 +14,14 @@ export class Loading {
this.loading = await this.loadingController.create({
mode: 'ios',
spinner: 'circles',
message: '通信中,还剩' + time + '秒',
message: '通信中,还剩 ' + time + ' 秒',
cssClass: 'main-color',
duration: time * 1000
});
this.loading.present();
this.interval = window.setInterval(() => {
this.countdown--;
this.loading.message = '通信中,还剩' + this.countdown + '秒';
this.loading.message = '通信中,还剩 ' + this.countdown + ' 秒';
}, 1000)
const { role, data } = await this.loading.onDidDismiss();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment