From e63fdf3dfcf41c45c18705e2745b328cbb71ff85 Mon Sep 17 00:00:00 2001 From: kele <1184860403@qq.com> Date: Fri, 17 Mar 2023 15:11:04 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E5=95=86=E5=93=81=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E8=BD=AE=E6=92=AD=E5=9B=BE=E6=B7=BB=E5=8A=A0=E8=A7=86?= =?UTF-8?q?=E9=A2=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/s-video-block/s-video-block.vue | 4 ++-- sheep/ui/su-swiper/su-swiper.vue | 17 +++++++++++------ sheep/ui/su-video/su-video.vue | 4 ++-- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/sheep/components/s-video-block/s-video-block.vue b/sheep/components/s-video-block/s-video-block.vue index 020c284..7911ca0 100644 --- a/sheep/components/s-video-block/s-video-block.vue +++ b/sheep/components/s-video-block/s-video-block.vue @@ -1,11 +1,11 @@ - + diff --git a/sheep/ui/su-swiper/su-swiper.vue b/sheep/ui/su-swiper/su-swiper.vue index 5a44cd2..7fcbffc 100644 --- a/sheep/ui/su-swiper/su-swiper.vue +++ b/sheep/ui/su-swiper/su-swiper.vue @@ -32,11 +32,12 @@ @@ -110,7 +111,7 @@ }, autoplay: { type: Boolean, - default: true, + default: false, }, interval: { type: Number, @@ -186,7 +187,6 @@ if (item.type === 'video') { state.videoPlaySataus = true; } else { - console.log(item,'item'); sheep.$router.go(item.url); onPreview(); } @@ -194,11 +194,16 @@ const onPreview = () => { if (!props.isPreview) return; + props.list.splice( + props.list.findIndex((item) => item.type === 'video'), + 1, + ); + let previewImage = props.list; uni.previewImage({ urls: - props.list.length < 1 + previewImage.length < 1 ? [props.src] - : props.list.reduce((pre, cur) => { + : previewImage.reduce((pre, cur) => { pre.push(cur.src); return pre; }, []), diff --git a/sheep/ui/su-video/su-video.vue b/sheep/ui/su-video/su-video.vue index bc645e3..574f1ac 100644 --- a/sheep/ui/su-video/su-video.vue +++ b/sheep/ui/su-video/su-video.vue @@ -3,7 +3,7 @@