80%
This commit is contained in:
@ -1,10 +1,18 @@
|
||||
<template>
|
||||
<view>
|
||||
<view class="search-bar">
|
||||
<input type="text">
|
||||
<view class="page-top">
|
||||
<u-navbar title="视频监控" placeholder bgColor="transparent" :leftIcon="null" titleStyle="color:white">
|
||||
</u-navbar>
|
||||
<view class="search-bar">
|
||||
<u--input placeholder="请输入摄像头名称" prefixIcon="search" prefixIconStyle="font-size: 32px;color: #909399">
|
||||
</u--input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="sized-box" style="height: 194rpx;"></view>
|
||||
<view class="sized-box" style="height:var(--status-bar-height);"></view>
|
||||
<view class="site-list">
|
||||
<view class="site-item" v-for="item in siteList" :key="item.id">
|
||||
<!-- <navigator url="/pages/monitor/site-detail/site-detail"> -->
|
||||
<view class="site-item" v-for="item in siteList" :key="item.id" @tap="routerGo">
|
||||
<view class="site-title">
|
||||
<text>{{item.name}}</text>
|
||||
</view>
|
||||
@ -20,6 +28,8 @@
|
||||
<text>{{item.time}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<!-- </navigator> -->
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@ -146,44 +156,75 @@
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
routerGo() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/monitor/site-detail/site-detail'
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
page {
|
||||
background-color: #f6f6f6;
|
||||
}
|
||||
</style>
|
||||
<style lang="scss" scoped>
|
||||
.page-top {
|
||||
z-index: 99;
|
||||
background: linear-gradient(to top right, #496df6, #2e9ee8);
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
top: 0;
|
||||
|
||||
.search-bar {
|
||||
margin: 0 32rpx 0;
|
||||
height: 80rpx;
|
||||
padding-bottom: 16rpx;
|
||||
|
||||
.u-input {
|
||||
height: 48rpx;
|
||||
background-color: white;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.site-list {
|
||||
.site-item {
|
||||
box-shadow: 0 6rpx 0 rgba(0, 0, 0, 0.4);
|
||||
// box-shadow: 0 2rpx 0 rgba(0, 0, 0, 0.4);
|
||||
margin-left: 16rpx;
|
||||
margin-right: 16rpx;
|
||||
margin-bottom: 40rpx;
|
||||
border-radius: 20rpx;
|
||||
border-radius: 8rpx;
|
||||
background-color: #fff;
|
||||
|
||||
.site-title {
|
||||
background-color: rgb(153, 153, 153);
|
||||
background-color: #949494;
|
||||
width: 92px;
|
||||
height: 30px;
|
||||
line-height: 20px;
|
||||
border-radius: 20rpx 0rpx 18rpx 0rpx;
|
||||
border-radius: 8rpx 0rpx 18rpx 0rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
uni-text {
|
||||
text {
|
||||
font-family: YSBiaoTiHei-regular;
|
||||
color: white;
|
||||
font-size: 20px;
|
||||
font-size: 20rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.camera-list {
|
||||
padding: 0 20rpx 0;
|
||||
margin-top: 12rpx;
|
||||
white-space: nowrap;
|
||||
width: 100%;
|
||||
// width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
.camera-item {
|
||||
background-color: aquamarine;
|
||||
// margin-right: 20rpx;
|
||||
// background-color: aquamarine;
|
||||
|
||||
.camera-image {
|
||||
width: 200rpx;
|
||||
@ -198,10 +239,12 @@
|
||||
}
|
||||
|
||||
.site-time {
|
||||
padding-right: 20rpx;
|
||||
margin-top: 26rpx;
|
||||
border-radius: 0 0 8rpx 8rpx;
|
||||
text-align: right;
|
||||
height: 30rpx;
|
||||
font-size: 28rpx;
|
||||
font-size: 20rpx;
|
||||
color: #fff;
|
||||
background-color: #d7d7d7;
|
||||
}
|
||||
|
Reference in New Issue
Block a user