<template>
	<view class="page">
		<u-navbar title="固件升级" :border-bottom="false" :background="bgc" back-icon-color="000" title-color='#000' title-size='36'
			height='50'></u-navbar>
		<view class="card">
			<view class="li">
				<view class="tit">
					当前版本
				</view>
				<view class="info">
					<view class="txt">
						v.1.2.1
					</view>
					<!-- <view class="iconfont icon-xiangyou1"></view> -->
				</view>
			</view>
			<view class="li">
				<view class="tit">
					最新版本
				</view>
				<view class="info">
					<view class="txt">
						v.1.21.1
					</view>
					<!-- <view class="iconfont icon-xiangyou1"></view> -->
				</view>
			</view>
			<view class="litwo">
				<view class="tit">
					新版本说明：
				</view>
				<view class="shuoming">
					该设备怎么怎么样怎么怎么样没怎么这样怎么做怎么样怎么这么装模作样，怎么这么怎么做怎么这么在吗这咋妈呀
				</view>
			</view>
             <view class="litwo">
             	<view class="tit">
             		注意事项：
             	</view>
             	<view class="shuoming">
             		升级固件版本时，需要打开手机蓝牙并尽量靠近设备，升级过程中不要熄屏或退出升级页面
             	</view>
             </view>
			<view class="lis" @click="deldevice()">
						更新
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				bgc: {
					backgroundColor: "#fff",
				},
			}
		},
		onLoad(option) {

		},
		// 分享到好友（会话）
		  onShareAppMessage: function () {  
		    return {  
		      title: '创想物联',  
		      path: '/pages/shouye/index'  
		    }  
		  },  
		  // 分享到朋友圈  
		  onShareTimeline: function () {  
		    return {  
		      title: '创想物联',  
		      query: '',  
		      path: '/pages/shouye/index'  
		    }  
		  },
		onShow() {
			
		},
		methods: {
		
		}
	}
</script>
<style lang="scss">
	/deep/ .u-flex{
		padding-top: 20rpx !important;
		box-sizing: border-box;
	} 
	/deep/ .u-title{
		padding-bottom: 22rpx;
	}
	/deep/ .u-icon__icon{
		padding-bottom: 22rpx;
	}
	page {
		background-color: #F7FAFE;
	}
    .lis{
		position: fixed;
		left: 50%;
		transform: translateX(-50%);
		bottom: 230rpx;
		width: 632rpx;
		height: 90rpx;
		background-color: #8883f0;
		text-align: center;
		line-height: 90rpx;
		font-size: 36rpx;
		color: #fff;
		border-radius: 50rpx;
	}
	.page {
		width: 750rpx;
		.card {
			padding: 16rpx 38rpx;
			margin: 60rpx auto 0;
			width: 654rpx;
			background: #FFFFFF;
			border-radius: 30rpx;
			box-shadow: 0rpx 16rpx 40rpx 0rpx rgba(42, 130, 228, 0.1);
			opacity: 1;
            .litwo{
				border-bottom: 1px solid #E5E5E5;
				padding-bottom: 20rpx;
				box-sizing: border-box;
				.tit{
					font-size: 32rpx;
					margin-bottom: 20rpx;
					margin-top: 20rpx;
				}
			}
			.li {
				display: flex;
				flex-wrap: nowrap;
				align-items: center;
				justify-content: space-between;
				height: 94rpx;
				border-bottom: #E5E5E5 solid 2rpx;
				.tit {
					font-size: 32rpx;
					font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
					font-weight: 400;
					color: #000000;
				}
				.info {
					display: flex;
					flex-wrap: nowrap;
					align-items: center;
					.txt {
						font-size: 32rpx;
						font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
						font-weight: 400;
						color: #95989D;
					}
					.icon-xiangyou1 {
						margin-left: 6rpx;
						color: #95989D;
					}
				}
			}
		}
		.btn {
			display: flex;
			align-items: center;
			justify-content: center;
			margin: 52rpx auto 0;
			width: 654rpx;
			height: 100rpx;
			background: #FF4F4F;
			box-shadow: 0rpx 16rpx 40rpx 0rpx rgba(42, 130, 228, 0.1);
			opacity: 1;
			border-radius: 30rpx;
			font-size: 32rpx;
			font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
			font-weight: 400;
			color: #FFFFFF;
		}
		.fz {
			position: fixed;
			bottom: 0;
			width: 750rpx;
			height: 1152rpx;
			background: #F7FAFE;
			border-radius: 30rpx 30rpx 0 0;
			z-index: 10071;
			.fz_top {
				margin: 18rpx 0 auto;
				display: flex;
				flex-wrap: nowrap;
				justify-content: space-between;
				.icon-shanchu {
					margin-left: 40rpx;
					font-size: 50rpx;
				}
				.tit {
					font-size: 36rpx;
					font-family: Source Han Sans, Source Han Sans;
					font-weight: 400;
					color: #000000;
				}
				.txt {
					margin-right: 40rpx;
					font-size: 36rpx;
					font-family: Source Han Sans, Source Han Sans;
					font-weight: 400;
					color: #2A82E4;
				}
			}
			.card_cont {
				width: 750rpx;
				display: flex;
				flex-wrap: wrap;
				align-items: baseline;
				justify-content: center;
				height: 1030rpx;
				overflow-y: auto;
				overflow-x: hidden;
				.cards {
					margin-top: 32rpx;
					display: flex;
					flex-wrap: nowrap;
					align-items: center;
					justify-content: space-between;
					padding: 0 40rpx;
					width: 682rpx;
					border-radius: 30rpx;
					height: 114rpx;
					background: #FFFFFF;
					box-shadow: 0rpx 16rpx 40rpx 0rpx rgba(42, 130, 228, 0.1);
					.txt {
						font-size: 36rpx;
						font-family: Source Han Sans, Source Han Sans;
						font-weight: 400;
						color: #000000;
					}
					.num {
						font-size: 36rpx;
						font-family: Source Han Sans, Source Han Sans;
						font-weight: 400;
						color: #000000;
					}
				}
			}
		}
	}
	.icon {
		.tit{
			padding-top: 50rpx;
			box-sizing: border-box;
			font-size: 32rpx;
		}
		margin-top: 40rpx;
		margin-bottom: 30rpx;
		display: flex;
		justify-content: space-between;
		.imgbox {
			margin-left: 300rpx;
			image {
				width: 142rpx;
				height: 142rpx;
			}
		}
	}
	/deep/ .panel{
		position: fixed;
		width: 100%;
		height: 100%;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 99 !important;
		overflow: hidden;
	}
</style>