help.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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">
  13. 基础代谢简称(BMR) </view> <view class="block">
  14. BMRx运动表现=消耗热量/天 </view>
  15. </view>
  16. </view>
  17. <view class="">
  18. <table border="1">
  19. <tr>
  20. <td>运动量/天</td>
  21. <td>运动表现描述</td>
  22. <td>预估消耗/天</td>
  23. </tr>
  24. <tr>
  25. <td>久坐</td>
  26. <td>办公室久坐没有什么运动</td>
  27. <td>BMR x 1.2 = 消耗热量/天</td>
  28. </tr>
  29. <tr>
  30. <td>轻度运动</td>
  31. <td>每周轻松1-3次运动</td>
  32. <td>BMR x 1.375= 消耗热量/天</td>
  33. </tr>
  34. <tr>
  35. <td>中度运动</td>
  36. <td>每周中等强度3-5次</td>
  37. <td>BMR x 1.5 = 消耗热量/天</td>
  38. </tr>
  39. <tr>
  40. <td>大强度运动</td>
  41. <td>每周大强度运动5-7次以上</td>
  42. <td>BMR x 1.725 = 消耗热量/天</td>
  43. </tr>
  44. <tr>
  45. <td>专业运动员强度</td>
  46. <td>大强度训练每周8次以上</td>
  47. <td>BMR x 1.9 = 消耗热量/天</td>
  48. </tr>
  49. </table>
  50. </view>
  51. </view>
  52. </view>
  53. </template>
  54. <script>
  55. export default {
  56. data() {
  57. return {
  58. }
  59. },
  60. onLoad() {
  61. },
  62. methods: {
  63. onBack: function(id,e) {
  64. uni.navigateBack({
  65. delta:1,
  66. })
  67. }
  68. }
  69. }
  70. </script>
  71. <style lang="scss">
  72. .container {
  73. display: flex;
  74. flex-direction: column;
  75. align-items: center;
  76. justify-content: center;
  77. width:100%;
  78. height: 100vh;
  79. }
  80. .navigation-bar
  81. {
  82. display: flex;
  83. align-items: center;
  84. justify-content: center;
  85. width: 100%;
  86. height: 6%;
  87. font-weight: 700;
  88. color: white;
  89. font-size: 44rpx;
  90. background-color: rgb(115,164,164);
  91. }
  92. .back{
  93. position: absolute;
  94. display: flex;
  95. align-items: center;
  96. justify-content: center;
  97. width: 2%;
  98. height: 2%;
  99. top: 2%;
  100. left: 1%;
  101. //testing
  102. // border: 1px solid rgb(255,0,0);
  103. }
  104. .content{
  105. // display: flex;
  106. width:100%;
  107. height:100%;
  108. // justify-content: center;
  109. color: #A66640;
  110. font-weight: bold;
  111. font-size: 30rpx;
  112. }
  113. .title{
  114. text-align: center;
  115. background-image: url("../../static/home/title.png");
  116. background-repeat: no-repeat;
  117. height: 177rpx;
  118. line-height: 177rpx;
  119. background-position: center;
  120. position: absolute;
  121. width: 100%;
  122. top: -100rpx;
  123. background-size: 70%;
  124. font-size: 30rpx;
  125. }
  126. .explain{
  127. width: 85%;
  128. border: 10rpx solid #DB9C9A;
  129. border-radius: 5rpx;
  130. margin: auto;
  131. background: #FEF0F0;
  132. padding: 50rpx 20rpx;
  133. color: #C65E5C;
  134. line-height: 30rpx;
  135. }
  136. table{
  137. width: 92%;
  138. margin: 20rpx auto;
  139. border-collapse: collapse;
  140. font-size: 24rpx;
  141. text-align: center;
  142. background: #FEF0F0;
  143. color: #C65E5C;
  144. border-color: #DB9C9A;
  145. border: 10rpx solid #DB9C9A;
  146. tr td{
  147. padding: 10rpx 0rpx;
  148. border: 10rpx solid #DB9C9A;
  149. }
  150. }
  151. </style>