help.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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">
  13. <view class="">
  14. 参数a=腰围(单位:厘米)x0.74;
  15. </view>
  16. <view class="">
  17. 身体脂肪总重量(单位:千克)=a-b;
  18. </view>
  19. <view class="">
  20. 体脂率=(身体脂肪总量÷体重)x100%;
  21. </view>
  22. </view>
  23. </view>
  24. <view class="" style="position: relative; margin-top: 100rpx;">
  25. <view class="title">
  26. 成年男性的体脂率计算公式:
  27. </view>
  28. <view class="explain">
  29. <view class="block">
  30. </view>
  31. <view class="">
  32. 参数a=腰围(单位:厘米)x0.74;
  33. </view>
  34. <view class="">
  35. 参数b=体重(单位:千克)x0.082+44.74;
  36. </view>
  37. <view class="">
  38. 身体脂肪总重量(单位:千克)=a-b;
  39. </view>
  40. <view class="">
  41. 体脂率=(身体脂肪总量÷体重)x100%;
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. </template>
  48. <script>
  49. export default {
  50. data() {
  51. return {
  52. }
  53. },
  54. onLoad() {
  55. },
  56. methods: {
  57. onBack: function(id,e) {
  58. uni.navigateBack({
  59. delta:1,
  60. })
  61. }
  62. }
  63. }
  64. </script>
  65. <style lang="scss">
  66. .container {
  67. display: flex;
  68. flex-direction: column;
  69. align-items: center;
  70. justify-content: center;
  71. width:100%;
  72. height: 100vh;
  73. }
  74. .navigation-bar
  75. {
  76. display: flex;
  77. align-items: center;
  78. justify-content: center;
  79. width: 100%;
  80. height: 6%;
  81. font-weight: 700;
  82. color: white;
  83. font-size: 44rpx;
  84. background-color: rgb(115,164,164);
  85. }
  86. .back{
  87. position: absolute;
  88. display: flex;
  89. align-items: center;
  90. justify-content: center;
  91. width: 2%;
  92. height: 2%;
  93. top: 2%;
  94. left: 1%;
  95. //testing
  96. // border: 1px solid rgb(255,0,0);
  97. }
  98. .content{
  99. // display: flex;
  100. width:100%;
  101. height:100%;
  102. // justify-content: center;
  103. color: #A66640;
  104. font-weight: bold;
  105. font-size: 30rpx;
  106. }
  107. .title{
  108. text-align: center;
  109. background-image: url("../../static/home/title4.png");
  110. background-repeat: no-repeat;
  111. height: 177rpx;
  112. line-height: 177rpx;
  113. background-position: center;
  114. position: absolute;
  115. width: 100%;
  116. top: -100rpx;
  117. background-size: 70%;
  118. font-size: 30rpx;
  119. }
  120. .explain{
  121. width: 85%;
  122. border: 10rpx solid #B7B5A2;
  123. border-radius: 5rpx;
  124. margin: auto;
  125. background: #EEEEE7;
  126. padding: 50rpx 20rpx;
  127. color: #817E56;
  128. view{
  129. line-height: 50rpx;
  130. }
  131. }
  132. </style>