From a0cde5643ed3bcbcb507284634deaad5fdbaa1cf Mon Sep 17 00:00:00 2001
From: YeMingfei666 <1619116647@qq.com>
Date: Wed, 15 Jan 2025 11:02:54 +0800
Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E6=92=AD=E6=94=BE=E4=BC=98?=
=?UTF-8?q?=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/my-video-list/list-item-稳定版.vue | 8 ++++++--
components/my-video-list/list-item-预发布优化版.vue | 7 +++++--
components/my-video-list/list-item.vue | 9 ++++++++-
3 files changed, 19 insertions(+), 5 deletions(-)
diff --git a/components/my-video-list/list-item-稳定版.vue b/components/my-video-list/list-item-稳定版.vue
index 6cfa270..bf731f9 100644
--- a/components/my-video-list/list-item-稳定版.vue
+++ b/components/my-video-list/list-item-稳定版.vue
@@ -4,7 +4,7 @@
@@ -61,7 +61,10 @@
ref,
watch
} from 'vue'
-
+ let loop=ref(false)
+ // #ifdef APP
+ loop.value=true
+ // #endif
const props = defineProps({
item: {
type: Object,
@@ -224,6 +227,7 @@
function ended() {
+ isPlying.value = false
sendPlayStatus('end')
}
diff --git a/components/my-video-list/list-item-预发布优化版.vue b/components/my-video-list/list-item-预发布优化版.vue
index 5c5ead6..ef50982 100644
--- a/components/my-video-list/list-item-预发布优化版.vue
+++ b/components/my-video-list/list-item-预发布优化版.vue
@@ -5,7 +5,7 @@
:controls="showControls" @timeupdate="timeupdate" @waiting="waiting()" object-fit="cover"
@pause="onpause" @click="videoClick()"
@play="videoPlay('myVideo'+item.courseDetailsId,item.courseDetailsId)" :play-strategy="2"
- :show-loading="true" codec="software" :muted="false" :show-center-play-btn="true" :loop="false"
+ :show-loading="true" codec="software" :muted="false" :show-center-play-btn="true" :loop="loop"
:enable-progress-gesture="false" :poster="item.titleImg" :ref="'myVideo'+item.courseDetailsId"
:autoplay="autoplay" @ended="ended" :id="'myVideo'+item.courseDetailsId" :src="item.videoUrl">
@@ -62,7 +62,10 @@
ref,
watch
} from 'vue'
-
+let loop=ref(false)
+ // #ifdef APP
+ loop.value=true
+ // #endif
const props = defineProps({
item: {
type: Object,
diff --git a/components/my-video-list/list-item.vue b/components/my-video-list/list-item.vue
index 6cfa270..4a4bcb9 100644
--- a/components/my-video-list/list-item.vue
+++ b/components/my-video-list/list-item.vue
@@ -4,7 +4,7 @@
@@ -62,6 +62,12 @@
watch
} from 'vue'
+
+ let loop = ref(false)
+ // #ifdef APP
+ loop.value = true
+ // #endif
+
const props = defineProps({
item: {
type: Object,
@@ -224,6 +230,7 @@
function ended() {
+ isPlying.value = false
sendPlayStatus('end')
}