营销:增加商城装修组件【视频播放】

pull/12/head
owen 2023-11-05 22:53:29 +08:00
parent 75d0f7511d
commit f0d54f4fec
3 changed files with 8 additions and 2 deletions

View File

@ -2,7 +2,7 @@
<view>
<s-image-block v-if="type === 'ImageBar'" :data="data" :styles="styles" />
<s-image-banner v-if="type === 'imageBanner'" :data="data" :styles="styles" />
<s-video-block v-if="type === 'videoPlayer'" :data="data" :styles="styles" />
<s-video-block v-if="type === 'VideoPlayer'" :data="data" :styles="styles" />
<s-image-cube v-if="type === 'imageCube'" :data="data" :styles="styles" />
<s-notice-block v-if="type === 'NoticeBar'" :data="data" />

View File

@ -4,8 +4,9 @@
class="sss"
:uid="guid()"
:src="sheep.$url.cdn(data.videoUrl)"
:poster="sheep.$url.cdn(data.src)"
:poster="sheep.$url.cdn(data.posterUrl)"
:height="styles.height * 2"
:autoplay="data.autoplay"
></su-video>
</template>

View File

@ -18,6 +18,7 @@
@pause="pause"
@ended="end"
:poster="poster"
:autoplay="autoplay"
>
<!-- #ifdef APP-PLUS -->
<cover-view :style="{ transform: 'translateX(' + moveX + 'px)' }" />
@ -90,6 +91,10 @@
type: String,
default: 'https://img1.baidu.com/it/u=1601695551,235775011&fm=26&fmt=auto',
},
autoplay: {
type: Boolean,
default: false,
}
});
//