修改画的图不对的问题

This commit is contained in:
weidizhu_admin 2024-07-31 18:58:52 +08:00
parent def08150df
commit 0a53f73553
5 changed files with 19 additions and 8 deletions

View File

@ -56,13 +56,19 @@
<view class="flx flx_ac">
<image src="../../static/icon/sleep.png" style="width: 30rpx;margin-right: 5rpx;" mode="widthFix"></image>
</view>
<view class="small-title">
23:20 , 07/29
<view class="small-title" v-if="fallAsleepTime.length > 0">
{{ fallAsleepTime[2] }}:{{ fallAsleepTime[3] }} , {{ fallAsleepTime[0] }}/{{ fallAsleepTime[1] }}
</view>
<view class="small-title" v-else>
</view>
</view>
<view class="flx flx_ac">
<view class="small-title">
23:20 , 07/29
<view class="small-title" v-if="exitSleepTime.length > 0">
{{ exitSleepTime[2] }}:{{ exitSleepTime[3] }} , {{ exitSleepTime[0] }}/{{ exitSleepTime[1] }}
</view>
<view class="small-title" v-else>
</view>
<view class="flx flx_ac">
<image src="../../static/image/richu.png" style="width: 50rpx;" mode="widthFix"></image>
@ -156,6 +162,8 @@
},
isOption:false,
isInit:false,
exitSleepTime:[],
fallAsleepTime:[],
option:{
tooltip: {
show:false
@ -251,6 +259,7 @@
delta: 1
})
},
getDataList(){
let type = 'SleepDatas'
let res = this.$store.dispatch('api/getDeviceListDays', {
@ -259,7 +268,7 @@
device_real_time: this.time,
device_id:this.getActiceDevice.device_id
}).then(res => {
console.log(res.data.length)
if(res.data.length > 0){
this.sleep.shen = this.min2Hour(res.data[0].data_msg[0].sleepTotalTime)
this.sleep.qian = this.min2Hour(res.data[0].data_msg[0].deepSleepTime)
@ -292,6 +301,8 @@
this.sleepData.shen = this.getPercent(this.sleepList,0)
this.sleepData.qian = this.getPercent(this.sleepList,1)
this.sleepData.kuai = this.getPercent(this.sleepList,2)
this.exitSleepTime = res.data[0].data_msg[0].exitSleepTime.split('-')
this.fallAsleepTime = res.data[0].data_msg[0].fallAsleepTime.split('-')
this.isOption = true
}else{
this.doAnimation(0)

View File

@ -1,2 +1,2 @@
<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>智能终端</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/watchapp/static/index.2da1efab.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/watchapp/static/js/chunk-vendors.a54e2e08.js></script><script src=/watchapp/static/js/index.b40f30a8.js></script></body></html>
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/watchapp/static/index.2da1efab.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/watchapp/static/js/chunk-vendors.a54e2e08.js></script><script src=/watchapp/static/js/index.82fb9260.js></script></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long