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