| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- <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="">
- 参数a=腰围(单位:厘米)x0.74;
- </view>
- <view class="">
- 身体脂肪总重量(单位:千克)=a-b;
- </view>
- <view class="">
- 体脂率=(身体脂肪总量÷体重)x100%;
- </view>
- <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>
- </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>
|