@@ -61,6 +61,10 @@ const props=defineProps({
speedOpt:{
type:Array,
default:['2.0','1.5','1.25','1.0','0.8','0.5']
+ },
+ autoplay:{
+ type:Boolean,
+ default:true
}
})
@@ -194,7 +198,7 @@ onMounted(() => {
class="video"
ref="videoIns"
:src="videoUrl"
- autoplay
+ :autoplay="autoplay"
@canplay="videoCanPlay"
@play="videoPlay"
@pause="videoPause"
@@ -241,12 +241,13 @@ let filterSize=ref('30%')
</div>
<!-- 关于 我们 -->
- <div class="about-us-box" v-show="listState.firstClassifyId==0||(listState.firstClassifyId!=0&&listState.secClassifyId==0&&width<768)">
+ <div class="about-us-box" v-if="listState.firstClassifyId==0||(listState.firstClassifyId!=0&&listState.secClassifyId==0&&width<768)">
<div class="flex box top-box">
<div class="left">
<!-- <video controls loop src="https://hongze.oss-cn-shanghai.aliyuncs.com/static/video_03.mp4"></video> -->
<videoPlayBox
videoUrl="https://hongze.oss-cn-shanghai.aliyuncs.com/static/video_03.mp4"
+ :autoplay="false"
/>
<div class="right">