help.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <template>
  2. <view class="container">
  3. <view class="navigation-bar">每日消耗热量</view>
  4. <view class="back" @click="onBack(0, $event)">
  5. <image src="/static/backArrow.png" mode="aspectFit" style="width:100%"></image>
  6. </view>
  7. <view class="content">
  8. <view class="" style="position: relative; margin-top: 100rpx;">
  9. <view class="title">
  10. 每日消耗热量
  11. </view>
  12. <view class="explain"> <view class="block"> 基础代谢率是指你一天躺在床上不动,但不睡觉身体维持生命所需消耗的热量 </view> <view class="block"> 最低有氧心率 = 220-年龄-静态心率x0.55+静态心率 </view> <view class="block"> 最高有氧心率 = 220-年龄-静态心率x0.75+静态心率 </view> <view class=""> 有氧简直运动注意事项: </view> <view class=""> 1,在运动时心率要控制在最高和最低之间。 </view> <view class=""> 2,持续25分钟以上才开始脂肪供能,前5分钟是糖原供能 </view> <view class=""> 3,整个过程无间歇 </view>
  13. </view>
  14. </view>
  15. </view>
  16. </view>
  17. </template>
  18. <script>
  19. export default {
  20. data() {
  21. return {
  22. }
  23. },
  24. onLoad() {
  25. },
  26. methods: {
  27. onBack: function(id,e) {
  28. uni.navigateBack({
  29. delta:1,
  30. })
  31. }
  32. }
  33. }
  34. </script>
  35. <style lang="scss">
  36. .container {
  37. display: flex;
  38. flex-direction: column;
  39. align-items: center;
  40. justify-content: center;
  41. width:100%;
  42. height: 100vh;
  43. }
  44. .navigation-bar
  45. {
  46. display: flex;
  47. align-items: center;
  48. justify-content: center;
  49. width: 100%;
  50. height: 6%;
  51. font-weight: 700;
  52. color: white;
  53. font-size: 44rpx;
  54. background-color: rgb(115,164,164);
  55. }
  56. .back{
  57. position: absolute;
  58. display: flex;
  59. align-items: center;
  60. justify-content: center;
  61. width: 2%;
  62. height: 2%;
  63. top: 2%;
  64. left: 1%;
  65. //testing
  66. // border: 1px solid rgb(255,0,0);
  67. }
  68. .content{
  69. // display: flex;
  70. width:100%;
  71. height:100%;
  72. // justify-content: center;
  73. color: #A66640;
  74. font-weight: bold;
  75. font-size: 30rpx;
  76. }
  77. .title{
  78. text-align: center;
  79. background-image: url("../../static/home/title.png");
  80. background-repeat: no-repeat;
  81. height: 177rpx;
  82. line-height: 177rpx;
  83. background-position: center;
  84. position: absolute;
  85. width: 100%;
  86. top: -100rpx;
  87. background-size: 70%;
  88. font-size: 30rpx;
  89. }
  90. .explain{
  91. width: 85%;
  92. border: 10rpx solid #DB9C9A;
  93. border-radius: 5rpx;
  94. margin: auto;
  95. background: #FEF0F0;
  96. padding: 50rpx 20rpx;
  97. color: #C65E5C;
  98. line-height: 30rpx;
  99. }
  100. </style>