<!--  -->
<template>
	<view class="container" @click="popup">
	<view class="container_navbar">
			<view class="container_top">
			</view>
	<uni-nav-bar color="#222" :border="false" :shadow="false" :fixed="true" backgroundColor="rgba(255, 255, 255, 0.3)" shadow title="" @clickLeft="onclickLeft"/>
			</view>
		<image class="account_numberimage" :src="ImageCollection[0]" mode="aspectFill">
		</image>
		<view class="prompt" @click.stop="changselect">
			<image class="promptimage" @click.stop="changenotification" src="https://esos-iot.bjdexn.cn/myminio/project/3e87f3b55b51413f814eb0737faf298a.png" mode=""></image>
			<view class="promptbox" v-if="notification">
			<view class="promptbox1">
					能力云
			</view>	
			<view class="promptbox1">
					消防系统
			</view>	
			<view class="promptbox1">
					电站/柜体
			</view>	
			<view class="promptbox1">
					并网点
			</view>	
			</view>
		</view>
 
		<view class="toptabbar">
			<view class="toptabbar_box">
				产品理念
				<view class="uni-margin-wrap">
					<swiper class="swiper" circular :indicator-dots="indicatorDots" :autoplay="autoplay"
						:interval="interval" :duration="duration">
						<swiper-item>
							<view class="swiper-itembody">
								<image class="swiper-item"
									:src="ImageCollection[1]"
									mode="aspectFit" :lazy-load="true"></image>
								<view class="swiper-title">
									<view class="swiper-title1">
										All in One工商业储能
									</view>
									<view class="swiper-title2">
										灵活配置 · 安全可靠 · 智能管理
									</view>
								</view>
							</view>
						</swiper-item>
						<swiper-item>
						
							<view class="swiper-itembody">
								<image class="swiper-item"
									:src="ImageCollection[2]"
									mode="aspectFit" :lazy-load="true"></image>
								<view class="swiper-title">
									<view class="swiper-title1">
										智慧能源，高效集成
									</view>
									<view class="swiper-title2">
										一站式解决工商业用电需求，降本增效新选择
									</view>
								</view>
							</view>
						</swiper-item>
						<swiper-item>
					
							<view class="swiper-itembody">
								<image class="swiper-item"
									:src="ImageCollection[3]"
									mode="aspectFit" :lazy-load="true"></image>
								<view class="swiper-title">
									<view class="swiper-title1">
										工商业一体化储能解决方案
									</view>
									<view class="swiper-title2">
										模块化设计，让能源更自由
									</view>
								</view>
							</view>

						</swiper-item>
						<swiper-item>
							<view class="swiper-itembody">
								<image class="swiper-item"
									:src="ImageCollection[4]"
									mode="aspectFit" :lazy-load="true"></image>
								<view class="swiper-title">
									<view class="swiper-title1">
										智储未来 · 工商无忧
									</view>
									<view class="swiper-title2">
										一体化储能箱，赋能企业能源独立
									</view>
								</view>
							</view>

						</swiper-item>
					</swiper>
				</view>
				 
				<view class="uni-title uni-common-mt">
					<text>控制器</text>
				</view>
				<view>
					<scroll-view scroll-x="true">
						<view class="scroll-view-item_H uni-bg-red">
							<image class="swiper-items"
								:src="ImageCollection[5]"
								mode="aspectFit" :lazy-load="true"></image>
							<view class="swiper_title">
								BMS
							</view>
						</view>
						<view class="scroll-view-item_H uni-bg-red">
							<image class="swiper-items" :src="ImageCollection[6]"
								mode="aspectFit" :lazy-load="true" alt="示例图片"></image>
							<view class="swiper_title">
								CCU
							</view>
						</view>
						<view class="scroll-view-item_H uni-bg-red">
							<image class="swiper-items"
								:src="ImageCollection[7]"
								mode="aspectFit" :lazy-load="true"></image>
							<view class="swiper_title">
								HPCS
							</view>
						</view>
					</scroll-view>
				</view>
			</view>
			<view class="toptabbar_box uni-common-mttitle">
				<view class="uni-title">
					<text>源网侧智慧储能舱</text>
				</view>
				<view>
					<view class="Sourcenetwork">
						<image class="uni-bg-green"
							:src="ImageCollection[8]"
							mode="aspectFit" :lazy-load="true">
						</image>
						<view class="Sourcenetwork_title">
							源网储能4.0——集中式储能系统
						</view>
					</view>
					<view class="Sourcenetwork">
				<image class="uni-bg-green"
					:src="ImageCollection[9]"
					mode="aspectFit" :lazy-load="true"></image>
						<view class="Sourcenetwork_title">
						源网侧储能箱——电网级“稳定器”
						</view>
					</view>
					<view class="Sourcenetwork">
					<image class="uni-bg-green"
						:src="ImageCollection[10]"
						mode="aspectFit" :lazy-load="true"></image>
						<view class="Sourcenetwork_title">
							Grid-Scale源网储能箱
						</view>
					</view>
					<view class="Sourcenetwork">
					<image class="uni-bg-green"
						:src="ImageCollection[11]"
						mode="aspectFit" :lazy-load="true"></image>
						<view class="Sourcenetwork_title">
							源网“能量枢纽”储能解决方案
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>
<!--  
      
  --> 
<script>
	export default {
		data() {
			return {
				background: ['color1', 'color2', 'color3'],
				indicatorDots: true,
				autoplay: true,
				interval: 2000,
				duration: 500,
				scrollTop: 0,
				old: {
					scrollTop: 0
				},
				ImageCollection:[],
				 value: 0,
				        range: [
				          { value: 0, text: "篮球" },
				          { value: 1, text: "足球" },
				          { value: 2, text: "游泳" },
				        ],
						notification:false
			}
		},
		onLoad() {
			this.ImageCollection = [
				'https://esos-iot.bjdexn.cn/myminio/project/891e77523d9e4abcb5c86f0b65ea68be.png',
				'https://esos-iot.bjdexn.cn/myminio/project/f3a4fc253ee64f59a5f315b8fecbe954.png',
				'https://esos-iot.bjdexn.cn/myminio/project/1aa4d24ff7174774a7c4c3d540ee056d.png',
				'https://esos-iot.bjdexn.cn/myminio/project/6f2068c504984021b7c06d34f546a032.png',
				'https://esos-iot.bjdexn.cn/myminio/project/e5e2fc77a57f43708e7ef79f40051ad0.png',
				'https://esos-iot.bjdexn.cn/myminio/project/78215264f74049bab24afdbbc02a91fa.png',
				'https://esos-iot.bjdexn.cn/myminio/project/a140c71802694f8aba4b06932b88d0bc.png',
				'https://esos-iot.bjdexn.cn/myminio/project/dfd0f4b25b774d0c8236f7ca04dee097.png',
				'https://esos-iot.bjdexn.cn/myminio/project/89e6f464162c4843bed56189dc6b139c.png',
				'https://esos-iot.bjdexn.cn/myminio/project/4ec73bc44cb24b93b11090a27ac5aadb.png',
				'https://esos-iot.bjdexn.cn/myminio/project/396879ec40994c26922089d7ed58a95d.png',
				'https://esos-iot.bjdexn.cn/myminio/project/f60de2b8cbc9433e8f3a63abc5d08009.png'
			]
		},
		methods: {
			changeIndicatorDots(e) {
				this.indicatorDots = !this.indicatorDots
			},
			changeAutoplay(e) {
				this.autoplay = !this.autoplay
			},
			intervalChange(e) {
				this.interval = e.target.value
			},
			durationChange(e) {
				this.duration = e.target.value
			},
  changenotification() {
        this.notification=!this.notification
      },
	  changselect(){
		  this.notification=true
	  },
	  popup(){
		  this.notification=false
	  }
		}
	}
</script>
<!--  -->
<style scoped>
	.uni-page {
		width: 100%;
		height: 100%;
	}
  
	.container {
		box-sizing: border-box;
		padding-bottom: 20rpx;
		background: linear-gradient(to bottom, #f0f5f5 -40%, #f0f5f5 40%, #f0f5f5 100%);
	}
.container_navbar{
	width: 100%;
	position: fixed;
	top: 0rpx;
	left: 0rpx;
	padding: 0rpx;
	z-index: 1;
}
.container_top{
	width: 100%;
	height: 80rpx;
	background-color:rgba(255, 255, 255, 0.5);
}
	.account_number {
		width: 100%;
		box-sizing: border-box;
		/* background-image: url('https://esos-iot.bjdexn.cn/myminio/project/731f52fb6b3449e8a8eab718bf6a6d13.png'); */
	}

	.account_numberimage {
		width: 100%;
		padding: 0rpx;
		margin: 0rpx;
	}

	.account_image {
		width: 100%;
	}

	.toptabbar {
		width: 100%;
		padding: 0rpx 16rpx;
		margin-top: 16rpx;
		box-sizing: border-box;
	}

	.toptabbar_box {
		width: 100%;
		background-color: #ffffff;
		border-radius: 10rpx;
		padding: 20rpx 30rpx;
		box-sizing: border-box;
	}

	.uni-margin-wrap {
		width: 100%;
		margin-top: 20rpx;
		border-radius: 10rpx;
		overflow: auto;
	}

	.swiper {
		height: 300rpx;
	}

	.swiper-itembody {
		width: 100%;
		height: 100%;
		padding: 0rpx 20rpx;
		display: flex;
		justify-content: space-between;
		/* justify-content: space-around; */
		background-color: #EFF0F2;
		border-radius: 10rpx;
		box-sizing: border-box;
	}

	.swiper-title {
		flex: 1;
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding-left: 20rpx;
	}

	.swiper-title1 {
		font-size: 30rpx;
	}

	.swiper-title2 {
		font-size: 24rpx;
		margin-top: 10rpx;
		color: #999999;
	}

	.swiper-item {
		width: 222rpx;
		height: 100%;
		text-align: center;
	}

	.uni-bg-red {
		display: flex;
		flex-direction: column;
		padding: 8rpx;
		box-sizing: border-box;

	}

	.swiper-items {
		width: 100%;
		height: 240rpx;
		border-radius: 10rpx;
		overflow: auto;
		background-color: #EFF0F2;
	}

	.swiper_title {
		width: 100%;
		height: 20rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 28rpx;
		margin-top: 20rpx;
	}

	.scroll-Y {
		height: 300rpx;
	}

	.uni-title {
		margin-top: 20rpx;
		margin-bottom: 10rpx;
	}

	.uni-common-mttitle {
		margin-top: 24rpx;
	}

	.scroll-view_H {
		white-space: nowrap;
		width: 100%;
	}

	.scroll-view-item {
		height: 300rpx;
		line-height: 300rpx;
		text-align: center;
		font-size: 36rpx;
	}

	.scroll-view-item_H {
		width: 100%;
		line-height: 300rpx;
		text-align: center;
		font-size: 36rpx;
	}
.Sourcenetwork{
	width: 100%;
	position: relative;
	}
	.uni-bg-green {
		width: 100%;
		background-color: #EFF0F2;
		margin-top: 20rpx;
		border-radius: 10rpx;
	}
.Sourcenetwork_title{
	width: 100%;
	padding: 10rpx;
	box-sizing: border-box;
	box-sizing: border-box;
	position: absolute;
	bottom: 0rpx;
	left: 0rpx;
	border-bottom-right-radius: 10rpx;
	border-bottom-left-radius: 10rpx;
	background-color: rgba(0, 117, 69, 0.3);
	font-size: 28rpx;
	color: #fff;
}
	.image-placeholder {
		width: 100%;
		height: 100%;
		background-color: #EFF0F2;
		/* 灰色背景 */
		display: flex;
		justify-content: center;
		align-items: center;
	}
	  .text {
	    font-size: 12px;
	    color: #666;
	    margin-top: 5px;
	  }
	
	  .uni-px-5 {
	    padding-left: 10px;
	    padding-right: 10px;
	  }
	
	  .uni-pb-5 {
	    padding-bottom: 10px;
	  }
	  .prompt{
		  position: fixed;
		   top: 80rpx;
		   right: 20rpx;
		   text-align: right;
		   z-index: 9;
	  }
	  .promptimage{
		  width: 60rpx;
		  height: 60rpx;
	  }
	  .promptbox{
		  background-color: #fff;
		  border-radius: 8rpx;
		  text-align: left;
	  }
	  .promptbox1{
          padding:10rpx 20rpx;
	  }
</style>
