wszhyWx/pages/timeVideo/timeVideo.vue

153 lines
2.9 KiB
Vue

<template>
<view class="timeVideo">
<u-navbar :background="background" :is-back='true' back-icon-color='#FFFFFF' :border-bottom="false" title="实时视频"
title-color='#FFFFFF' :title-bold='true' title-size='32'></u-navbar>
<view class="content">
<view class="item" v-for="(item,index) in 3" :key="index">
<view class="nav">
<image src="../../static/video.png" mode=""></image>
<text>温室#2-摄像机#2</text>
</view>
<view class="video">
<image src="https://cdn.lihe-control.coms/static/video1.png" mode=""></image>
</view>
<view class="timer">
<view class="left">
<image src="../../static/timer.png" mode=""></image>
<text>2023-09-20 14:00:55</text>
</view>
<view class="right" @click="toVideoLive">
<image src="../../static/play.png" mode=""></image>
<text>现场实况</text>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
// 头部导航背景
background: {
backgroundColor: '#24B383',
},
};
},
methods:{
toVideoLive(){
uni.navigateTo({
url:'/pages/videoLive/videoLive'
})
}
}
}
</script>
<style lang="scss" scoped>
.timeVideo{
width: 100%;
min-height: 100vh;
background-color: #F5F6FA;
.content{
box-sizing: border-box;
padding: 30rpx;
.item{
width: 690rpx;
height: 577rpx;
background: #FFFFFF;
border-radius: 15rpx;
margin-bottom: 30rpx;
.nav {
height: 90rpx;
box-sizing: border-box;
padding: 20rpx;
display: flex;
align-items: center;
>image {
width: 50rpx;
height: 50rpx;
margin-right: 16rpx;
}
>text {
font-size: 30rpx;
font-family: PingFang SC;
font-weight: bold;
color: #333333;
}
}
.video{
width: 690rpx;
height: 380rpx;
background: #FFFFFF;
border-radius: 15rpx;
box-sizing: border-box;
padding: 0 20rpx;
>image{
width: 100%;
height: 100%;
}
}
.timer{
width: 100%;
height: 107rpx;
display: flex;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
padding: 0 20rpx;
.left{
display: flex;
align-items: center;
>image{
width: 30rpx;
height: 30rpx;
margin-right: 10rpx;
}
>text{
font-size: 24rpx;
font-family: PingFang SC;
font-weight: bold;
color: #666666;
}
}
.right{
width: 200rpx;
height: 66rpx;
background: linear-gradient(0deg, #7BD4B6 0%, #26B383 100%);
border-radius: 33rpx;
display: flex;
justify-content: center;
align-items: center;
>image{
width: 30rpx;
height: 30rpx;
margin-right: 10rpx;
}
>text{
font-size: 28rpx;
font-family: PingFang SC;
font-weight: bold;
color: #FFFFFF;
}
}
}
}
}
}
</style>