| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- <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="">
- 基础代谢率是指你一天躺在床上不动,但不睡觉身体维持生命所需消耗的热量
- </view>
- <view class="">
- 男:66+(13.7x体重kg)+(5x身高cm)-(6.8x年龄)= BMR
- </view>
- <view class="">
- 女:655+(9.6x体重kg)+(1.8x身高cm)-(4.7x年龄)= BMR
- </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/title2.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 #7ABDB1;
- border-radius: 5rpx;
- margin: auto;
- background: #E6EFED;
- padding: 50rpx 20rpx;
- color: #4D857C;
- view{
- line-height: 50rpx;
- }
- }
- </style>
|