<template>
	<view class="content">
		<view class="container">
			<view class="item_warp">
				<view class="title">
					使用说明
				</view>
				<view class="item">
					<view class="text">
						1.点击"扫码连接"，扫码水表上的二维码；
					</view>
					<view class="text">
						2.水表连接成功后"开始使用"按钮；
					</view>
					<view class="text">
						3.使用完成后点击"停止用水"即关闭热水；
					</view>
					<view class="text">
						4.或者连接水表后直接在表上进行操作，如下图：
					</view>
					<view class="img">
						<image class="img_scan" src="../static/images/qr-code.png" mode=""></image>
					</view>
					<view class="bot_text" @click="child_cancel" hover-class="bot_text_hover_color">
						我知道了
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		methods: {
			child_cancel() {
				this.$emit('parent_cancel', false)
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		width: 100%;
		height: 100%;

		.container {
			width: 100%;
			height: 100%;
			position: fixed;
			top: 0;
			left: 0;
			background: rgba(0, 0, 0, .4);

			.item_warp {
				width: 650rpx;
				position: absolute;
				top: 50%;
				left: 50%;
				transform: translate(-50%, -50%);
				padding: 40rpx 50rpx;
				box-sizing: border-box;
				background: #fff;
				border-radius: 10rpx;

				.title {
					font-size: 32rpx;
					color: #000;
					font-weight: bold;
					text-align: center;
					margin-bottom: 30rpx;
				}

				.text {
					font-size: 32rpx;
					color: #333;
					line-height: 40rpx;
					margin-bottom: 20rpx;
				}

				.img {
					text-align: center;
					margin: 30rpx 0;

					.img_scan {
						width: 300rpx;
						height: 200rpx;
					}
				}

				.bot_text {
					padding: 5rpx;
					height: 65rpx;
					line-height: 65rpx;
					border-radius: 10rpx;
					color: $my-color-primary;
					font-size: 32rpx;
					text-align: center;
				}
				
				.bot_text_hover_color {
					background-color: $my-color-btn-background;
				}
			}
		}
	}
</style>
