修复bug 视频回放 ios端

This commit is contained in:
yanran200730
2022-04-22 10:45:41 +08:00
parent 8d5cb694a1
commit 9d402cb729
2 changed files with 8 additions and 9 deletions

View File

@@ -119,10 +119,7 @@
},
onDateChange (e) {
console.log(e)
this.date = `${e.result}`
// this.date = `${e.year}-${e.month}-${e.day}`
this.getSlwPlaybackTime()
},
@@ -176,8 +173,8 @@
const times = res.data[0].times
this.times = times.map(item => {
const startTime = (item.startTime - new Date(this.date + ' 00:00:00').getTime()) / 1000
const endTime = (item.endTime - new Date(this.date + ' 00:00:00').getTime()) / 1000
const startTime = (item.startTime - new Date(this.date.replaceAll('-', '/') + ' 00:00:00').getTime()) / 1000
const endTime = (item.endTime - new Date(this.date.replaceAll('-', '/') + ' 00:00:00').getTime()) / 1000
return {
startTime: Number(startTime.toFixed(0)),