|
@@ -1,38 +1,46 @@
|
|
|
<template>
|
|
|
- <view>
|
|
|
+ <view class="container">
|
|
|
<!-- 抽屜 -->
|
|
|
<uni-drawer :visible="drawerIsShow" :width="width" @close="closeDrawer">
|
|
|
- <view style="padding:0rpx;">
|
|
|
+ <view style="padding:0rpx; background-color:#1A1A1A;">
|
|
|
<view class="picture">
|
|
|
- <image src="../../static/picture/fengji.png" style="width: 100%;height: 200px;"></image>
|
|
|
- </view>
|
|
|
- <uni-list>
|
|
|
- <view class="list">
|
|
|
-
|
|
|
- <view class="item" v-for="(item,index) in drawerList" :key="index">
|
|
|
- <view class="itemIcon">
|
|
|
- <view class="icon text-black" :class="['cuIcon-' + inconList[index]]" style="font-size: 20px;margin-top: 10px;margin-left: 20px;">
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <uni-list-item :title="item" style="margin-left: 40px;"/>
|
|
|
- </view>
|
|
|
-
|
|
|
+ <view class="sisGroup">监视功能分组
|
|
|
+ <view class="iconImgage">
|
|
|
+ </view>
|
|
|
</view>
|
|
|
-
|
|
|
- </uni-list>
|
|
|
- <view class="cu-bar tabbar bg-white">
|
|
|
+
|
|
|
+ <view v-for="(item,index) in drawerList" :class="[changeGary==index?'statusMonitoring':'item']" :key="index" @click="clickChangeColor(index)">
|
|
|
+ <div v-if="(index==0)" @tap="goToIndex()">
|
|
|
+ {{item.name}}
|
|
|
+ </div>
|
|
|
+ <div v-if="(index==1)"@tap="common.navTo('/components/monitor/StatusMonitor')">
|
|
|
+ {{item.name}}
|
|
|
+ </div>
|
|
|
+ <div v-if="(index==2)"@tap="common.navTo('/components/monitor/MatrixMonitor')">
|
|
|
+ {{item.name}}
|
|
|
+ </div>
|
|
|
+ <div v-if="(index==3)"@tap="common.navTo('/components/monitor/WindMonitor')">
|
|
|
+ {{item.name}}
|
|
|
+ </div>
|
|
|
+ <div v-if="(index==4)"@tap="common.navTo('/components/monitor/PersonalMonitor')">
|
|
|
+ {{item.name}}
|
|
|
+ </div>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ <view class="cu-bar tabbar bg-black">
|
|
|
<view class="action">
|
|
|
<view class="icon cuIcon-repair text-black">
|
|
|
</view>
|
|
|
<view class="text-black">设置</view>
|
|
|
</view>
|
|
|
- <view class="action" style="margin-left: -32px;">
|
|
|
+ <view class="action" style="margin-left: 30px;">
|
|
|
<view class="icon cuIcon-command text-black">
|
|
|
</view>
|
|
|
<view class="text-black">修改密码</view>
|
|
|
- </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </view>
|
|
|
</uni-drawer>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -42,67 +50,115 @@
|
|
|
import uniList from '@/uni-list/uni-list.vue'
|
|
|
import uniListItem from '@/uni-list-item/uni-list-item.vue'
|
|
|
import uniIcons from '@/uni-icons/uni-icons.vue'
|
|
|
- export default{
|
|
|
+ export default {
|
|
|
components: {
|
|
|
uniDrawer,
|
|
|
uniList,
|
|
|
uniListItem,
|
|
|
uniIcons
|
|
|
},
|
|
|
- data:function(){
|
|
|
- return{
|
|
|
- drawerIsShow:false,
|
|
|
- drawerList:[],
|
|
|
- width:250,
|
|
|
- inconList:[]
|
|
|
+ data: function() {
|
|
|
+ return {
|
|
|
+ drawerIsShow: false,
|
|
|
+ drawerList: [],
|
|
|
+ width: 250,
|
|
|
+ inconList: [],
|
|
|
+ changeGary: -1
|
|
|
}
|
|
|
},
|
|
|
- methods:{
|
|
|
- openDrawer:function(width,drawerList,inconList){
|
|
|
- this.drawerIsShow=true;
|
|
|
- this.drawerList=drawerList;
|
|
|
- this.width=width;
|
|
|
- this.inconList=inconList;
|
|
|
+ methods: {
|
|
|
+ openDrawer: function(width, drawerList, inconList) {
|
|
|
+ this.drawerIsShow = true;
|
|
|
+ this.drawerList = drawerList;
|
|
|
+ this.width = width;
|
|
|
+ this.inconList = inconList;
|
|
|
+ },
|
|
|
+ closeDrawer: function() {
|
|
|
+ this.drawerIsShow = false;
|
|
|
+ },
|
|
|
+ clickChangeColor: function(index) {
|
|
|
+ this.changeGary = index;
|
|
|
},
|
|
|
- closeDrawer:function(){
|
|
|
- this.drawerIsShow=false;
|
|
|
+ goToIndex:function(){
|
|
|
+ uni.switchTab({
|
|
|
+ url: '/pages/index/Index'
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
<style>
|
|
|
- .picture{
|
|
|
- width: 100%;
|
|
|
- height: 200px;
|
|
|
+ .sisGroup {
|
|
|
+ width: 90%;
|
|
|
+ height: 65px;
|
|
|
+ color: silver;
|
|
|
+ font-size: 13px;
|
|
|
+ padding-top: 40px;
|
|
|
+ margin-left: 5%;
|
|
|
+ font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", STHeiti, "Microsoft Yahei", Tahoma, Simsun, sans-serif;
|
|
|
}
|
|
|
- .cu-bar{
|
|
|
+
|
|
|
+ .statusMonitoring {
|
|
|
+ background-color: #393939;
|
|
|
+ width: 90%;
|
|
|
+ margin-left: 5%;
|
|
|
+ height: 40px;
|
|
|
+ margin-top: 10px;
|
|
|
+ /* text-align: center; */
|
|
|
+ color: silver;
|
|
|
+ font-size: 14px;
|
|
|
+ padding-top: 10px;
|
|
|
+ padding-left: 10px;
|
|
|
+ font-family: Helvetica Neue, Helvetica, sans-serif;
|
|
|
+ }
|
|
|
+
|
|
|
+ .picture {
|
|
|
+ width: 300px;
|
|
|
+ height: 700px;
|
|
|
+ background-color: #1A1A1A;
|
|
|
+ }
|
|
|
+
|
|
|
+ .cu-bar {
|
|
|
position: fixed;
|
|
|
top: calc(100% - 50px);
|
|
|
width: 100%;
|
|
|
+ background-color: #1A1A1A;
|
|
|
}
|
|
|
- .icon{
|
|
|
+
|
|
|
+ .icon {
|
|
|
float: left;
|
|
|
}
|
|
|
- .text-black{
|
|
|
+
|
|
|
+ .text-black {
|
|
|
float: left;
|
|
|
line-height: 28px;
|
|
|
font-size: 15px;
|
|
|
+ background-color: #1A1A1A;
|
|
|
+ color: silver;
|
|
|
+
|
|
|
}
|
|
|
- .list{
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
+ .iconImgage{
|
|
|
+ width: 29px;
|
|
|
+ height: 35px;
|
|
|
+ background-color: red;
|
|
|
+ margin-left: 82px;
|
|
|
+ margin-top: -25px;
|
|
|
+ background-image: url(../../static/picture/i.jpg);
|
|
|
}
|
|
|
- .item{
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
- float: right;
|
|
|
- margin-right: 10px;
|
|
|
- /* border-bottom: 1px solid black; */
|
|
|
- }
|
|
|
- .itemIcon{
|
|
|
- width: 20px;
|
|
|
- height: 20px;
|
|
|
- float: left;
|
|
|
+ .item {
|
|
|
+ width: 90%;
|
|
|
+ height: 40px;
|
|
|
+ margin-top: 10px;
|
|
|
+ margin-left: 5%;
|
|
|
+ /* float: right; */
|
|
|
+ /* margin-right: 10px; */
|
|
|
+ background-color: #272727;
|
|
|
+ /* text-align: center; */
|
|
|
+ color: silver;
|
|
|
+ font-size: 14px;
|
|
|
+ padding-top: 10px;
|
|
|
+ padding-left: 10px;
|
|
|
+ font-family: Helvetica Neue, Helvetica, sans-serif;
|
|
|
}
|
|
|
</style>
|