营销:增加商城装修组件【视频播放】
parent
75d0f7511d
commit
f0d54f4fec
|
|
@ -2,7 +2,7 @@
|
||||||
<view>
|
<view>
|
||||||
<s-image-block v-if="type === 'ImageBar'" :data="data" :styles="styles" />
|
<s-image-block v-if="type === 'ImageBar'" :data="data" :styles="styles" />
|
||||||
<s-image-banner v-if="type === 'imageBanner'" :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-image-cube v-if="type === 'imageCube'" :data="data" :styles="styles" />
|
||||||
|
|
||||||
<s-notice-block v-if="type === 'NoticeBar'" :data="data" />
|
<s-notice-block v-if="type === 'NoticeBar'" :data="data" />
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,9 @@
|
||||||
class="sss"
|
class="sss"
|
||||||
:uid="guid()"
|
:uid="guid()"
|
||||||
:src="sheep.$url.cdn(data.videoUrl)"
|
:src="sheep.$url.cdn(data.videoUrl)"
|
||||||
:poster="sheep.$url.cdn(data.src)"
|
:poster="sheep.$url.cdn(data.posterUrl)"
|
||||||
:height="styles.height * 2"
|
:height="styles.height * 2"
|
||||||
|
:autoplay="data.autoplay"
|
||||||
></su-video>
|
></su-video>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@
|
||||||
@pause="pause"
|
@pause="pause"
|
||||||
@ended="end"
|
@ended="end"
|
||||||
:poster="poster"
|
:poster="poster"
|
||||||
|
:autoplay="autoplay"
|
||||||
>
|
>
|
||||||
<!-- #ifdef APP-PLUS -->
|
<!-- #ifdef APP-PLUS -->
|
||||||
<cover-view :style="{ transform: 'translateX(' + moveX + 'px)' }" />
|
<cover-view :style="{ transform: 'translateX(' + moveX + 'px)' }" />
|
||||||
|
|
@ -90,6 +91,10 @@
|
||||||
type: String,
|
type: String,
|
||||||
default: 'https://img1.baidu.com/it/u=1601695551,235775011&fm=26&fmt=auto',
|
default: 'https://img1.baidu.com/it/u=1601695551,235775011&fm=26&fmt=auto',
|
||||||
},
|
},
|
||||||
|
autoplay: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// 事件
|
// 事件
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue