添加背景图片
This commit is contained in:
parent
674e32b21d
commit
9726114c82
@ -32,16 +32,26 @@
|
||||
</view>
|
||||
|
||||
<!-- 媒体内容 -->
|
||||
<!-- <video class="img_video_warp" :src="socketData.videoUrl" v-if="socketData.videoUrl"
|
||||
@loadedmetadata="isMediaLoading = false" @error="isMediaLoading = false"></video>
|
||||
|
||||
<image class="img_video_warp" v-else :src="socketData.imageUrl" @load="isMediaLoading = false"
|
||||
@error="isMediaLoading = false"></image> -->
|
||||
<video class="img_video_warp" :src="socketData.videoUrl" v-if="socketData.videoUrl"
|
||||
@loadedmetadata="handleMediaLoaded" @error="handleMediaError"></video>
|
||||
|
||||
<image class="img_video_warp" v-else :src="socketData.imageUrl" @load="handleMediaLoaded"
|
||||
@error="handleMediaError"></image>
|
||||
<video
|
||||
class="img_video_warp"
|
||||
:src="socketData.videoUrl"
|
||||
v-if="socketData.videoUrl"
|
||||
@loadedmetadata="handleMediaLoaded"
|
||||
@error="handleMediaError"
|
||||
></video>
|
||||
<image
|
||||
class="img_video_warp"
|
||||
:src="socketData.imageUrl"
|
||||
v-else-if="socketData.imageUrl"
|
||||
@load="handleMediaLoaded"
|
||||
@error="handleMediaError"
|
||||
></image>
|
||||
<image
|
||||
class="img_video_warp"
|
||||
:src="TOPBG"
|
||||
v-else
|
||||
mode="aspectFill"
|
||||
/>
|
||||
</view>
|
||||
|
||||
<!-- 设备状态选择 -->
|
||||
@ -239,6 +249,7 @@ import {
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
TOPBG:BASE_IMG_URL + "/minePage/top.jpg",
|
||||
isMediaLoading: false,
|
||||
deviceName: "",
|
||||
title: "Hello",
|
||||
|
Loading…
Reference in New Issue
Block a user