content.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. <template>
  2. <view class="content-box">
  3. <!-- <line-chart></line-chart> -->
  4. <view class="number-box">
  5. <view class="box-item">
  6. <text>最低</text>
  7. <view class="item-under">
  8. <view class="item-under-left">
  9. <image src="/static/image/oxygen.png" mode=""></image>
  10. <text>{{dayInfo.min}}</text>
  11. </view>
  12. <text>°C</text>
  13. </view>
  14. </view>
  15. <view class="box-item">
  16. <text>平均</text>
  17. <view class="item-under">
  18. <view class="item-under-left">
  19. <image src="/static/image/oxygen.png" mode=""></image>
  20. <text>{{dayInfo.avg}}</text>
  21. </view>
  22. <text>°C</text>
  23. </view>
  24. </view>
  25. <view class="box-item">
  26. <text>最高</text>
  27. <view class="item-under">
  28. <view class="item-under-left">
  29. <image src="/static/image/oxygen.png" mode=""></image>
  30. <text>{{dayInfo.max}}</text>
  31. </view>
  32. <text>°C</text>
  33. </view>
  34. </view>
  35. </view>
  36. <view class="word-box">
  37. <view class="word-title">
  38. 测量结果仅供参考,正常体温范围: 35-37.5
  39. </view>
  40. <!-- <view class="word">
  41. <p>{{word1}}</p>
  42. <p>{{word2}}</p>
  43. <p>{{word3}}</p>
  44. </view> -->
  45. </view>
  46. <view class="list-box" >
  47. <block v-for="(item,index) in dayInfo.list">
  48. <view class="list-box-item">
  49. <view class="list-box-left">
  50. <image src="/static/image/hearticon.png" mode=""></image>
  51. <text>{{formatDate(item.createTime)}}</text>
  52. </view>
  53. <view class="list-box-right">
  54. <view class="num">{{item.temperature}}</view>
  55. <view>°C</view>
  56. </view>
  57. </view>
  58. </block>
  59. </view>
  60. </view>
  61. </template>
  62. <script>
  63. // import lineChart from './line_chart.vue'
  64. import dayjs from "@/plugin/dayjs/dayjs.min.js";
  65. export default {
  66. // components: {
  67. // lineChart
  68. // },
  69. props: {
  70. dayInfo: {
  71. type: Object,
  72. default: {},
  73. },
  74. },
  75. data() {
  76. return {
  77. list:[{time:'09:00',num:63},{time:'09:10',num:63},{time:'09:10',num:63}],
  78. word1:'100<心率值<160,称为窦性心动过速;',
  79. word2:'45<心率值<60称为窦性心动过缓;',
  80. word3:'心率值<45,应考虑有病态窦房结综合症、房室传导阻滞等情况。',
  81. }
  82. },
  83. onLoad() {
  84. },
  85. methods: {
  86. formatDate: function(date) {
  87. return dayjs(date).format("YYYY-MM-DD HH:mm:ss");
  88. },
  89. },
  90. }
  91. </script>
  92. <style lang="scss">
  93. .content-box {
  94. background-color: #F7F7F7;
  95. // height: 100vh;
  96. .number-box {
  97. height: 131rpx;
  98. background-color: #fff;
  99. display: flex;
  100. margin-top: 16rpx;
  101. padding: 16rpx 32rpx;
  102. justify-content: space-around;
  103. .box-item {
  104. width: 218rpx;
  105. padding: 10rpx 16rpx;
  106. box-sizing: border-box;
  107. border-radius: 12rpx;
  108. border: 2rpx solid rgba(119, 119, 119, 0.3);
  109. text{
  110. font-size: 24rpx;
  111. font-weight: 400;
  112. color: #777777;
  113. }
  114. .item-under {
  115. display: flex;
  116. justify-content: space-between;
  117. align-items: center;
  118. margin-top: 12rpx;
  119. .item-under-left {
  120. image {
  121. width: 32rpx;
  122. height: 32rpx;
  123. }
  124. text {
  125. margin-left: 15rpx;
  126. font-size: 32rpx;
  127. font-weight: 400;
  128. color: #000000;
  129. }
  130. }
  131. text {
  132. font-size: 24rpx;
  133. font-weight: 400;
  134. color: #777777;
  135. }
  136. }
  137. }
  138. }
  139. .word-box {
  140. margin-top: 16rpx;
  141. background-color: #fff;
  142. padding: 32rpx;
  143. .word-title {
  144. font-size: 32rpx;
  145. font-weight: 600;
  146. color: #000000;
  147. }
  148. .word {
  149. font-size: 28rpx;
  150. font-weight: 400;
  151. color: #000000;
  152. line-height: 40rpx;
  153. margin-top: 18rpx;
  154. }
  155. }
  156. .list-box {
  157. margin-top: 16rpx;
  158. background-color: #fff;
  159. padding:0 32rpx;
  160. .list-box-item {
  161. height: 88rpx;
  162. display: flex;
  163. align-items: center;
  164. justify-content: space-between;
  165. .list-box-left {
  166. display: flex;
  167. align-items: center;
  168. image{
  169. width: 48rpx;
  170. height: 48rpx;
  171. }
  172. text{
  173. margin-left: 32rpx;
  174. font-size: 32rpx;
  175. font-weight: 400;
  176. color: #000000;
  177. }
  178. }
  179. .list-box-right{
  180. display: flex;
  181. font-size: 32rpx;
  182. font-weight: 600;
  183. color: #000000;
  184. .num{
  185. margin-right: 30rpx;
  186. }
  187. }
  188. }
  189. }
  190. }
  191. </style>