From c956e8cd33efb4fa26c821ce96b2fa24ae09fd82 Mon Sep 17 00:00:00 2001 From: binbin_pan Date: Thu, 19 Dec 2024 21:36:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/YNEduApp/learn/learn.vue | 3 ++- pages/YNEduApp/prac/exercises.vue | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/pages/YNEduApp/learn/learn.vue b/pages/YNEduApp/learn/learn.vue index 2c64d1f..36a9615 100644 --- a/pages/YNEduApp/learn/learn.vue +++ b/pages/YNEduApp/learn/learn.vue @@ -9,7 +9,8 @@ :enable-progress-gesture="false" @error="videoErrorCallback" @timeupdate="videoTimeUpdate" - controls + :controls="true" + :autoplay="true" /> diff --git a/pages/YNEduApp/prac/exercises.vue b/pages/YNEduApp/prac/exercises.vue index af96a93..2795efb 100644 --- a/pages/YNEduApp/prac/exercises.vue +++ b/pages/YNEduApp/prac/exercises.vue @@ -410,8 +410,16 @@ export default { console.log('🚀 ~ handleJump ~ item:', item, this.recordId) if (item === 'prev') { this.nowNum-- + if (this.nowNum < 1) { + this.nowNum = 1 + return + } } else if (item === 'next') { this.nowNum++ + if (this.nowNum > this.allNum) { + this.nowNum = this.allNum + return + } } else if (item === 'jump') { this.nowNum = index }