|
@@ -152,7 +152,7 @@ export const mixin = {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- startTimer() {
|
|
|
+ startTimer(rein) {
|
|
|
// 保证只存在一个实例
|
|
|
if (this.timer) {
|
|
|
return;
|
|
@@ -234,6 +234,20 @@ export const mixin = {
|
|
|
duration: 2000,
|
|
|
});
|
|
|
this.go();
|
|
|
+ } else if (id == 0) {
|
|
|
+ if (rein) {
|
|
|
+ // 重新进入后如果是在呼叫状态需要同步呼叫后的时间
|
|
|
+ const createTime = new Date(
|
|
|
+ res.content.createTime
|
|
|
+ ).getTime();
|
|
|
+ const now = new Date().getTime();
|
|
|
+ const diff = now - createTime;
|
|
|
+ const seconds = Math.floor(diff / 1000);
|
|
|
+ this.minutes = Math.floor(seconds / 60);
|
|
|
+ this.seconds = seconds % 60;
|
|
|
+ }
|
|
|
+ // 呼叫中
|
|
|
+ this.step = 3;
|
|
|
}
|
|
|
}
|
|
|
});
|