|
@@ -1413,11 +1413,13 @@ export default {
|
|
this.timer = setInterval(this.timeEvent, 1000); //定时器
|
|
this.timer = setInterval(this.timeEvent, 1000); //定时器
|
|
}
|
|
}
|
|
if (newstate.detail.newstate == 'pause') {
|
|
if (newstate.detail.newstate == 'pause') {
|
|
|
|
+ clearInterval(this.timer);
|
|
//暂停提交记录
|
|
//暂停提交记录
|
|
/* this.ossAvatarUrl = ""
|
|
/* this.ossAvatarUrl = ""
|
|
this.postStudyRecord() */
|
|
this.postStudyRecord() */
|
|
}
|
|
}
|
|
if (newstate.detail.newstate == 'ended') {
|
|
if (newstate.detail.newstate == 'ended') {
|
|
|
|
+ clearInterval(this.timer);
|
|
uni.showToast({
|
|
uni.showToast({
|
|
icon:'none',
|
|
icon:'none',
|
|
title:'播放完毕'
|
|
title:'播放完毕'
|