Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
蒋秀川
/
miniProject
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6c813a48
authored
Jun 07, 2025
by
Tianqing Liu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 解决没有录像,不可拖动时间线
1 parent
5c4c175d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
h5/src/components/extension/timeline-canvas-wx.vue
h5/src/components/extension/videoTime.vue
h5/src/components/extension/timeline-canvas-wx.vue
View file @
6c813a4
...
...
@@ -235,6 +235,8 @@ export default {
//移动端滑动
touchmove
(
e
)
{
if
(
this
.
markTime
.
length
<
1
)
return
let
touches
=
e
.
touches
;
e
.
offsetX
=
touches
[
0
].
pageX
;
e
.
offsetY
=
touches
[
0
].
pageY
;
...
...
@@ -245,6 +247,8 @@ export default {
},
//滑动结束
touchend
(
e
)
{
if
(
this
.
markTime
.
length
<
1
)
return
let
touches
=
e
.
changedTouches
;
e
.
offsetX
=
touches
[
0
].
pageX
;
e
.
offsetY
=
touches
[
0
].
pageY
;
//pc 与m的值是否相同
...
...
@@ -252,6 +256,8 @@ export default {
},
//滑动开始
touchstart
(
e
)
{
if
(
this
.
markTime
.
length
<
1
)
return
let
touches
=
e
.
touches
;
e
.
offsetX
=
touches
[
0
].
pageX
;
e
.
offsetY
=
touches
[
0
].
pageY
;
...
...
@@ -261,7 +267,6 @@ export default {
this
.
distance
=
this
.
getDistance
({
x
:
e
.
offsetX
,
y
:
e
.
offsetY
},
{
x
:
touches
[
1
].
pageX
,
y
:
touches
[
1
].
pageX
});
}
this
.
mousedown
(
e
);
},
// 鼠标移动
...
...
h5/src/components/extension/videoTime.vue
View file @
6c813a4
...
...
@@ -106,7 +106,6 @@ export default {
TimeLineCanvas
,
},
mounted
()
{
let
that
=
this
this
.
showDay
=
moment
().
format
(
this
.
dateFormatType
)
this
.
timeRange
=
[
moment
().
format
(
this
.
dateFormatType
+
' 00:00:00'
),
moment
().
format
(
this
.
dateFormatType
+
' 23:59:59'
)]
this
.
startTime
=
moment
().
format
(
'HH:mm:ss'
)
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment