help.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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. 基础代谢率是指你一天躺在床上不动,但不睡觉身体维持生命所需消耗的热量
  15. </view>
  16. <view class="">
  17. 男:66+(13.7x体重kg)+(5x身高cm)-(6.8x年龄)= BMR
  18. </view>
  19. <view class="">
  20. 女:655+(9.6x体重kg)+(1.8x身高cm)-(4.7x年龄)= BMR
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. export default {
  29. data() {
  30. return {
  31. }
  32. },
  33. onLoad() {
  34. },
  35. methods: {
  36. onBack: function(id,e) {
  37. uni.navigateBack({
  38. delta:1,
  39. })
  40. }
  41. }
  42. }
  43. </script>
  44. <style lang="scss">
  45. .container {
  46. display: flex;
  47. flex-direction: column;
  48. align-items: center;
  49. justify-content: center;
  50. width:100%;
  51. height: 100vh;
  52. }
  53. .navigation-bar
  54. {
  55. display: flex;
  56. align-items: center;
  57. justify-content: center;
  58. width: 100%;
  59. height: 6%;
  60. font-weight: 700;
  61. color: white;
  62. font-size: 44rpx;
  63. background-color: rgb(115,164,164);
  64. }
  65. .back{
  66. position: absolute;
  67. display: flex;
  68. align-items: center;
  69. justify-content: center;
  70. width: 2%;
  71. height: 2%;
  72. top: 2%;
  73. left: 1%;
  74. //testing
  75. // border: 1px solid rgb(255,0,0);
  76. }
  77. .content{
  78. // display: flex;
  79. width:100%;
  80. height:100%;
  81. // justify-content: center;
  82. color: #A66640;
  83. font-weight: bold;
  84. font-size: 30rpx;
  85. }
  86. .title{
  87. text-align: center;
  88. background-image: url("../../static/home/title2.png");
  89. background-repeat: no-repeat;
  90. height: 177rpx;
  91. line-height: 177rpx;
  92. background-position: center;
  93. position: absolute;
  94. width: 100%;
  95. top: -100rpx;
  96. background-size: 70%;
  97. font-size: 30rpx;
  98. }
  99. .explain{
  100. width: 85%;
  101. border: 10rpx solid #7ABDB1;
  102. border-radius: 5rpx;
  103. margin: auto;
  104. background: #E6EFED;
  105. padding: 50rpx 20rpx;
  106. color: #4D857C;
  107. view{
  108. line-height: 50rpx;
  109. }
  110. }
  111. </style>