<template>
	<view class="content">
		<view class="content_top">
			<view class="text_width">肾功能情况</view>
			<view class="remark">填写真实信息，生成合适的康复计划</view>
		</view>
		<view class="checkbox_box">
			<van-checkbox-group class="checkbox-group" v-model="checked" @change="toggle">
				<van-checkbox class="check_box" v-for="item in list" :name="item">
					 {{item}}
				</van-checkbox>
			</van-checkbox-group>
		</view>
		<view class="content_bottom" style="">
			<view class="button_box" style="" @click="next_click">
				<view class="button" style="">下一步</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: ['未透析', '血液透析','腹膜透析','肾脏移植'],
				checked:[],
			}
		},
		methods: {
			// 选择病情
			toggle(e){
				this.checked = e.detail
				console.log('index',this.checked);
				// const arr=[]
				// arr.push(e)
				// this.checked = arr
			},
			// 跳转
			next_click(){
				wx.navigateTo({
					// pages/Health_record/archives
					url:'/pages/Health_record/archives'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
.content{
	.content_top{
		padding: 40rpx;
		.text_width{
			font-weight: 900;
		}
		.remark{
			font-size: 14px;
			color: gray;
			line-height: 30px;
		}
		.sex_box{
			padding: 40rpx 0;
			.radio{
				margin-right: 80rpx;
			}
		}
		.hw_eight{
			padding: 40rpx 0;
			display: flex;
			.height{
				flex:1;
				.input{
					display:inline-block;
					border: 1px solid black;
					width: 120rpx;
				}
			}
		}
	}
	.content_bottom{
		width: 100%;
		position: fixed;
		bottom: 30rpx;
		.button_box{
			margin: 0 auto;
			width: 80%;
			background:linear-gradient(#4dc691,#66cfa1,#7ad7ae);
			border-radius: 100rpx;
			display: flex;
			.button{
				flex: 1;
				line-height:90rpx;
				color: white;
				text-align: center;
			}
		}
	}
	
	.checkbox_box{
		height: 75vh;
		overflow: auto;
	}
}
</style>
<style lang="scss">
	.checkbox-group {
		height: 50px;
		.check_box{
			width: 100%;
			.van-checkbox{
				height: 50px !important;
				background: gainsboro;
				padding: 0 20px;
				margin-bottom: 10px;
				text-align: center;
			}
		}
		
	}
</style>
