help.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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. 基础代谢简称(BMR)
  11. </view>
  12. <view class="explain"> <view class="block"> <uni-table border stripe emptyText="暂无更多数据" > <!-- 表头行 --> <uni-tr> <uni-th align="center">运动量/天</uni-th> <uni-th align="center">运动表现描述</uni-th> <uni-th align="left">预估消耗/天</uni-th> </uni-tr> <!-- 表格数据行 --> <uni-tr> <uni-td>久坐</uni-td> <uni-td>办公室久坐没有什么运动</uni-td> <uni-td>BMR x 1.2 = 消耗热量/天</uni-td> </uni-tr> <uni-tr> <uni-td>轻度运动</uni-td> <uni-td>每周轻松1-3次运动</uni-td> <uni-td>BMR x 1.375= 消耗热量/天</uni-td> </uni-tr> <uni-tr> <uni-td>中度运动</uni-td> <uni-td>每周中等强度3-5次</uni-td> <uni-td>BMR x 1.5 = 消耗热量/天</uni-td> </uni-tr> <uni-tr> <uni-td>大强度运动</uni-td> <uni-td>每周大强度运动5-7次以上</uni-td> <uni-td>BMR x 1.725 = 消耗热量/天</uni-td> </uni-tr> <uni-tr> <uni-td>专业运动员强度</uni-td> <uni-td>大强度训练每周8次以上</uni-td> <uni-td>BMR x 1.9 = 消耗热量/天</uni-td> </uni-tr> </uni-table> </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/title4.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 #B7B5A2;
  93. border-radius: 5rpx;
  94. margin: auto;
  95. background: #EEEEE7;
  96. padding: 50rpx 20rpx;
  97. color: #817E56;
  98. view{
  99. line-height: 50rpx;
  100. }
  101. }
  102. </style>