123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227 |
- <template>
- <view class="content-box">
- <!-- <line-chart></line-chart> -->
- <view class="number-box">
- <view class="box-item">
- <text>最低</text>
- <view class="item-under">
- <view class="item-under-left">
- <image src="/static/image/oxygen.png" mode=""></image>
- <text>{{dayInfo.min}}</text>
- </view>
- <text>HbO2</text>
- </view>
- </view>
- <view class="box-item">
- <text>平均</text>
- <view class="item-under">
- <view class="item-under-left">
- <image src="/static/image/oxygen.png" mode=""></image>
- <text>{{dayInfo.avg}}</text>
- </view>
- <text>HbO2</text>
- </view>
- </view>
- <view class="box-item">
- <text>最高</text>
- <view class="item-under">
- <view class="item-under-left">
- <image src="/static/image/oxygen.png" mode=""></image>
- <text>{{dayInfo.max}}</text>
- </view>
- <text>HbO2</text>
- </view>
- </view>
- </view>
- <view class="word-box">
- <view class="word-title">
- 测量结果仅供参考,成人静息心率:
- </view>
- <view class="word">
- <p>{{word1}}</p>
- <p>{{word2}}</p>
- <p>{{word3}}</p>
- </view>
- </view>
- <view class="list-box">
- <block v-for="(item,index) in dayInfo.list" :key="index">
- <view class="list-box-item">
- <view class="list-box-left">
- <image src="/static/image/hearticon.png" mode=""></image>
- <text>{{formatDate(item.createTime)}}</text>
- </view>
- <view class="list-box-right">
- <view class="num">{{item.bloodOxygen}}</view>
- <view>HbO2</view>
- </view>
- </view>
- </block>
- </view>
- </view>
- </template>
- <script>
- // import lineChart from './line_chart.vue'
- import dayjs from "@/plugin/dayjs/dayjs.min.js";
- export default {
- props: {
- dayInfo: {
- type: Object,
- default: {},
- },
- },
- // components: {
- // lineChart
- // },
- data() {
- return {
- list: [{
- time: '09:00',
- num: 63
- }, {
- time: '09:10',
- num: 63
- }, {
- time: '09:10',
- num: 63
- }],
- word1: '正常水平: 95%~100%;',
- word2: '高风险值:小于80%,可能会造成多器官乏氧,造成损伤;',
- word3: '调整建议:当确认存在低氧血症后,会查找病因,采取相应治疗措施。',
- }
- },
- onLoad() {
-
- },
- methods: {
- formatDate: function(date) {
- return dayjs(date).format("YYYY-MM-DD HH:mm:ss");
- },
- },
- }
- </script>
- <style lang="scss">
- .content-box {
- background-color: #F7F7F7;
- // height: 100vh;
- .number-box {
- height: 131rpx;
- background-color: #fff;
- display: flex;
- margin-top: 16rpx;
- padding: 16rpx 32rpx;
- justify-content: space-around;
- .box-item {
- width: 218rpx;
- padding: 10rpx 16rpx;
- box-sizing: border-box;
- border-radius: 12rpx;
- border: 2rpx solid rgba(119, 119, 119, 0.3);
- text {
- font-size: 24rpx;
- font-weight: 400;
- color: #777777;
- }
- .item-under {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-top: 12rpx;
- .item-under-left {
- display: flex;
- align-items: center;
- margin-right: 5rpx;
- image {
- width: 32rpx;
- height: 32rpx;
- }
- text {
- margin-left: 12rpx;
- font-size: 32rpx;
- font-weight: 400;
- color: #000000;
- }
- }
- text {
- font-size: 24rpx;
- font-weight: 400;
- color: #777777;
- }
- }
- }
- }
- .word-box {
- margin-top: 16rpx;
- background-color: #fff;
- padding: 32rpx;
- .word-title {
- font-size: 32rpx;
- font-weight: 600;
- color: #000000;
- }
- .word {
- font-size: 28rpx;
- font-weight: 400;
- color: #000000;
- line-height: 40rpx;
- margin-top: 18rpx;
- }
- }
- .list-box {
- margin-top: 16rpx;
- background-color: #fff;
- padding: 0 32rpx;
- .list-box-item {
- height: 88rpx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- .list-box-left {
- display: flex;
- align-items: center;
- image {
- width: 48rpx;
- height: 48rpx;
- }
- text {
- margin-left: 32rpx;
- font-size: 32rpx;
- font-weight: 400;
- color: #000000;
- }
- }
- .list-box-right {
- display: flex;
- font-size: 32rpx;
- font-weight: 600;
- color: #000000;
- .num {
- margin-right: 30rpx;
- }
- }
- }
- }
- }
- </style>
|