<template>
	<view class="setting-wrapper">
		<view class="top-banner justify-center align-center text-center">
			<view>
				<image width="130" src="../../static/personal-head.png"></image>
				<view class="userName">admin</view>
				<view>伍继智慧用电</view>
			</view>
		</view>
		<view class="cu-list menu-avatar">
			<view class="cu-item" @tap="goMessagePush()">
				<view class="cu-avatar " style="background-image:url(../../static/setting-icon1.png)"></view>
				<view class="content">
					<view class="">消息推送</view>
				</view>
				<view class="nav-right">
					<view class="text-grey">
						<text class="icon iconfont margin-right-xs margin-left-lg">&#xe629;</text>
					</view>
				</view>
			</view>
			<view class="cu-item" @tap="goSiteManage">
				<view class="cu-avatar " style="background-image:url(../../static/setting-icon2.png)"></view>
				<view class="content">
					<view class="">站点管理</view>
				</view>
				<view class="nav-right">
					<view class="text-grey">
						<text class="icon iconfont margin-right-xs margin-left-lg">&#xe629;</text>
					</view>
				</view>
			</view>
			<view class="cu-item" @tap="goSiteManage">
				<view class="cu-avatar " style="background-image:url(../../static/setting-icon3.png)"></view>
				<view class="content">
					<view class="">设备管理</view>
				</view>
				<view class="nav-right">
					<view class="text-grey">
						<text class="icon iconfont margin-right-xs margin-left-lg">&#xe629;</text>
					</view>
				</view>
			</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
			}
		},
		methods: {
			goSiteManage() {
				uni.navigateTo({
					url: '/pages/siteManage/siteManage',
					success: res => {},
					fail: () => {},
					complete: () => {}
				});
			},
			goMessagePush() {
				uni.navigateTo({
					url: '/pages/messagePush/messagePush',
					success: res => {},
					fail: () => {},
					complete: () => {}
				});
			},

		}
	}
</script>

<style lang="scss">
	.setting-wrapper {
		.top-banner {
			width: 100%;
			height: 380rpx;
			background: url(../../static/setting-bg.png) no-repeat;
			color: #fff;
			display: flex;
			justify-content: center;
			align-items: center;
			image {
				width: 130rpx;
				height: 130rpx;
			}
			.userName {
				margin-top: 30rpx;
				margin-bottom: 10rpx;
			}
		}
		.cu-avatar {
			width:40rpx;height:40rpx;
			background-color:#fff;
		}
		.cu-list.menu-avatar>.cu-item {
			height:120rpx;
			.content{
				left:70rpx;
			}
			.nav-right{
				margin-right:10rpx;
			}
		}

	}
</style>
