|
|
@@ -13,16 +13,47 @@
|
|
|
:style="{ height: returnheight }"
|
|
|
:poster="require('@/assets//video-post.png')"
|
|
|
/>
|
|
|
- <div class="onlinetip" :style="{ 'background-color': device.onlineStatus === 1 ? '#04A681' : '#E51414' }">{{ device.onlineStatus === 1 ? '在线' : '离线' }}</div>
|
|
|
+ <div
|
|
|
+ class="onlinetip"
|
|
|
+ :style="{ 'background-color': device.onlineStatus === 1 ? '#04A681' : '#E51414' }"
|
|
|
+ >
|
|
|
+ {{ device.onlineStatus === 1 ? '在线' : '离线' }}
|
|
|
+ </div>
|
|
|
<div class="mask1" />
|
|
|
- <div v-if="device.onlineStatus !== 1" class="offline">
|
|
|
- <img :src="require('@/assets/image_offline.svg')" alt="">
|
|
|
- <div class="offlinetext" :style="{zoom:zoomnum}">当前设备离线了</div>
|
|
|
+ <div
|
|
|
+ v-if="device.onlineStatus !== 1"
|
|
|
+ class="offline"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ :src="require('@/assets/image_offline.svg')"
|
|
|
+ alt=""
|
|
|
+ >
|
|
|
+ <div
|
|
|
+ class="offlinetext"
|
|
|
+ :style="{ zoom:zoomnum }"
|
|
|
+ >
|
|
|
+ 当前设备离线了
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div :style="{display:maskshow}" class="mask">
|
|
|
- <div class="playbtn" :style="{zoom:zoomnum}" @click="videoplay">
|
|
|
- <div :class="{ playing:device.paused, paused:!device.paused }" :style="{display:refreshshow?'none':'block'}" />
|
|
|
- <img :src="require('@/assets/icon_refresh.png')" :style="{display:refreshshow?'block':'none'}" class="refresh" alt="">
|
|
|
+ <div
|
|
|
+ :style="{ display:maskshow }"
|
|
|
+ class="mask"
|
|
|
+ >
|
|
|
+ <div
|
|
|
+ class="playbtn"
|
|
|
+ :style="{ zoom:zoomnum }"
|
|
|
+ @click="videoplay"
|
|
|
+ >
|
|
|
+ <div
|
|
|
+ :class="{ playing:device.paused, paused:!device.paused }"
|
|
|
+ :style="{ display: refreshshow ? 'none' : 'block' }"
|
|
|
+ />
|
|
|
+ <img
|
|
|
+ :src="require('@/assets/icon_refresh.png')"
|
|
|
+ :style="{ display: refreshshow ? 'block' : 'none' }"
|
|
|
+ class="refresh"
|
|
|
+ alt=""
|
|
|
+ >
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="o-video_buttom l-flex--row">
|
|
|
@@ -195,13 +226,13 @@ video::-webkit-media-controls-enclosure {
|
|
|
background-color: #000;
|
|
|
object-fit: cover;
|
|
|
}
|
|
|
-.return_item{
|
|
|
+.return_item {
|
|
|
height: 100%;
|
|
|
position: relative;
|
|
|
// &:hover .mask{
|
|
|
// display: block;
|
|
|
// }
|
|
|
- .onlinetip{
|
|
|
+ .onlinetip {
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
right: 0;
|
|
|
@@ -211,30 +242,30 @@ video::-webkit-media-controls-enclosure {
|
|
|
width: 48px;
|
|
|
height: 24px;
|
|
|
line-height: 24px;
|
|
|
- background-color: #04A681;
|
|
|
+ background-color: #04a681;
|
|
|
border-radius: 0px 4px 0px 4px;
|
|
|
z-index: 2;
|
|
|
}
|
|
|
- .mask1{
|
|
|
+ .mask1 {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
position: absolute;
|
|
|
left: 0;
|
|
|
top: 0;
|
|
|
}
|
|
|
- .offline{
|
|
|
+ .offline {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
position: absolute;
|
|
|
left: 0;
|
|
|
top: 0;
|
|
|
- img{
|
|
|
+ img {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
object-fit: cover;
|
|
|
border-radius: 4px;
|
|
|
}
|
|
|
- .offlinetext{
|
|
|
+ .offlinetext {
|
|
|
font-size: 24px;
|
|
|
color: #fff;
|
|
|
position: absolute;
|
|
|
@@ -243,27 +274,27 @@ video::-webkit-media-controls-enclosure {
|
|
|
transform: translateX(-50%);
|
|
|
}
|
|
|
}
|
|
|
- .mask{
|
|
|
+ .mask {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
position: absolute;
|
|
|
left: 0;
|
|
|
top: 0;
|
|
|
- background-color: rgba(0,0,0,.3);
|
|
|
+ background-color: rgba(0, 0, 0, 0.3);
|
|
|
display: none;
|
|
|
z-index: 2;
|
|
|
}
|
|
|
- .playbtn{
|
|
|
+ .playbtn {
|
|
|
position: absolute;
|
|
|
left: 50%;
|
|
|
top: 50%;
|
|
|
transform: translate(-50%, -50%);
|
|
|
width: 110px;
|
|
|
height: 110px;
|
|
|
- background-color: rgba(244, 247, 251, .5);
|
|
|
+ background-color: rgba(244, 247, 251, 0.5);
|
|
|
border-radius: 50%;
|
|
|
cursor: pointer;
|
|
|
- .playing{
|
|
|
+ .playing {
|
|
|
width: 0;
|
|
|
height: 0;
|
|
|
border-top: 22px solid transparent;
|
|
|
@@ -273,10 +304,10 @@ video::-webkit-media-controls-enclosure {
|
|
|
position: absolute;
|
|
|
left: 50%;
|
|
|
top: 50%;
|
|
|
- transform: translate(-15px,-50%);
|
|
|
+ transform: translate(-15px, -50%);
|
|
|
}
|
|
|
- .paused::before{
|
|
|
- content: '';
|
|
|
+ .paused::before {
|
|
|
+ content: "";
|
|
|
width: 4px;
|
|
|
height: 37px;
|
|
|
background-color: #fff;
|
|
|
@@ -285,8 +316,8 @@ video::-webkit-media-controls-enclosure {
|
|
|
top: 50%;
|
|
|
transform: translateY(-50%);
|
|
|
}
|
|
|
- .paused::after{
|
|
|
- content: '';
|
|
|
+ .paused::after {
|
|
|
+ content: "";
|
|
|
width: 4px;
|
|
|
height: 37px;
|
|
|
background-color: #fff;
|
|
|
@@ -295,7 +326,7 @@ video::-webkit-media-controls-enclosure {
|
|
|
top: 50%;
|
|
|
transform: translateY(-50%);
|
|
|
}
|
|
|
- .refresh{
|
|
|
+ .refresh {
|
|
|
width: 40px;
|
|
|
height: 40px;
|
|
|
position: absolute;
|