邹能昇 3 月之前
父节点
当前提交
daabf96848
共有 1 个文件被更改,包括 7 次插入6 次删除
  1. 7 6
      nova-werun/pages/home/sport/sport-start/index.js

+ 7 - 6
nova-werun/pages/home/sport/sport-start/index.js

@@ -203,14 +203,15 @@ Page({
                 });
 
                 if(percentage >= 100){
+                    wx.showToast({
+                        title: '运动已结束',
+                        icon: 'success',
+                        duration: 500
+                    });
                     setTimeout(()=>{
-                        wx.showToast({
-                            title: '运动已结束',
-                            icon: 'success',
-                            duration: 500
-                        });
+                        this.onConfirm()
                     },500)
-                     this.onConfirm()
+
                 }
 
                 // 如果达到 100%,清除定时器