diff --git a/sheep/components/s-video-block/s-video-block.vue b/sheep/components/s-video-block/s-video-block.vue index 020c284b..7911ca0f 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 5a44cd25..7fcbffc7 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 bc645e3c..574f1acf 100644 --- a/sheep/ui/su-video/su-video.vue +++ b/sheep/ui/su-video/su-video.vue @@ -3,7 +3,7 @@