<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="block">
				每日消耗热量计算方法
			</view>
			<view class="block">
				基础代谢简称（BMR）
			</view>
			<view class="block">
				<uni-table border stripe emptyText="暂无更多数据" >
					<!-- 表头行 -->
					<uni-tr>
						<uni-th align="center">运动量/天</uni-th>
						<uni-th align="center">运动表现描述</uni-th>
						<uni-th align="left">预估消耗/天</uni-th>
					</uni-tr>
					<!-- 表格数据行 -->
					<uni-tr>
						<uni-td>久坐</uni-td>
						<uni-td>办公室久坐没有什么运动</uni-td>
						<uni-td>BMR x 1.2 = 消耗热量/天</uni-td>
					</uni-tr>
					<uni-tr>
						<uni-td>轻度运动</uni-td>
						<uni-td>每周轻松1-3次运动</uni-td>
						<uni-td>BMR x 1.375= 消耗热量/天</uni-td>
					</uni-tr>
					<uni-tr>
						<uni-td>中度运动</uni-td>
						<uni-td>每周中等强度3-5次</uni-td>
						<uni-td>BMR x 1.5 = 消耗热量/天</uni-td>
					</uni-tr>
					<uni-tr>
						<uni-td>大强度运动</uni-td>
						<uni-td>每周大强度运动5-7次以上</uni-td>
						<uni-td>BMR x 1.725 = 消耗热量/天</uni-td>
					</uni-tr>
					<uni-tr>
						<uni-td>专业运动员强度</uni-td>
						<uni-td>大强度训练每周8次以上</uni-td>
						<uni-td>BMR x 1.9 = 消耗热量/天</uni-td>
					</uni-tr>
				
				</uni-table>
			</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: 10%;
		
		font-weight: 700;
		color: white;
		
		background-color: rgb(115,164,164);
	}
	.back{
		position: absolute;
		
		display: flex;
		align-items: center;
		justify-content: center;
		
		width: 2%;
		height: 2%;
		top: 3%;
		left: 1%;
		//testing
		// border: 1px solid rgb(255,0,0);
	}
	
	.content{
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		
		width:100%;
		height:100%;
	}
	
	.block
	{
		margin: 2%;
	}
</style>