<template>
	<view class="container">
		<view class="navigation-bar">体脂率</view>
		<view class="back" @click="onBack(0, $event)">
			<image src="/static/backArrow.png" mode="aspectFit" style="width:100%"></image>
		</view>
		<view class="content">
			<view class="" style="position: relative; margin-top: 100rpx;">
				<view class="title">
					成年女性的体脂率计算公式
				</view>
				<view class="explain">
					<view class="">
						参数a=腰围（单位：厘米）x0.74；
					</view>
					<view class="">
						身体脂肪总重量（单位:千克）=a-b；
					</view>
					<view class="">
						体脂率=（身体脂肪总量÷体重）x100%；
					</view>
				</view>
			</view>
			<view class="" style="position: relative; margin-top: 100rpx;">
				<view class="title">
					成年男性的体脂率计算公式：
				</view>
				<view class="explain">
					<view class="block">
					</view>
					<view class="">
						参数a=腰围（单位：厘米）x0.74；
					</view>
					<view class="">
						参数b=体重（单位：千克）x0.082+44.74；
					</view>
					<view class="">
						身体脂肪总重量（单位:千克）=a-b；
					</view>
					<view class="">
						体脂率=（身体脂肪总量÷体重）x100%；
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		onLoad() {

		},
		methods: {
			onBack: function(id,e) {
				uni.navigateBack({
					delta:1,
				})
			}
		}
	}
</script>

<style lang="scss">

	.container {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		width:100%;
		height: 100vh; 
	}
	
	.navigation-bar
	{
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 6%;
		font-weight: 700;
		color: white;
		font-size: 44rpx;
		background-color: rgb(115,164,164);
	}
	
	.back{
		position: absolute;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 2%;
		height: 2%;
		top: 2%;
		left: 1%;
		//testing
		// border: 1px solid rgb(255,0,0);
	}
	
	
	.content{
		// display: flex;
		width:100%;
		height:100%;
		// justify-content: center;
		color: #A66640;
		font-weight: bold;
		font-size: 30rpx;
	}
	.title{
		text-align: center;
		background-image: url("../../static/home/title4.png");
		background-repeat: no-repeat;
		height: 177rpx;
		line-height: 177rpx;
		background-position: center;
		position: absolute;
		width: 100%;
		top: -100rpx;
		background-size: 70%;
		font-size: 30rpx;
	}
	.explain{
		width: 85%;
		border: 10rpx solid #B7B5A2;
		border-radius: 5rpx;
		margin: auto;
		background: #EEEEE7;
		padding: 50rpx 20rpx;
		color: #817E56;
		view{
			line-height: 50rpx;
		}
	}
</style>