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 42a6f9bd
authored
Jun 03, 2025
by
Tianqing Liu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 直播,优化时间线样式
1 parent
dd005f68
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 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 @
42a6f9b
...
@@ -41,7 +41,7 @@ export default {
...
@@ -41,7 +41,7 @@ export default {
//
//
height
:
{
height
:
{
type
:[
Number
,
String
],
type
:[
Number
,
String
],
default
:
4
0
,
default
:
6
0
,
},
},
// 中间的时间,
// 中间的时间,
startMeddleTime
:
String
,
startMeddleTime
:
String
,
...
@@ -74,17 +74,19 @@ export default {
...
@@ -74,17 +74,19 @@ export default {
//背景
//背景
background
:
"transparent"
,
background
:
"transparent"
,
//中间线
//中间线
meddleLine
:
"rgba(
64, 196, 255,0.6
)"
,
meddleLine
:
"rgba(
18, 20, 21, 1
)"
,
//中间时间
//中间时间
meddleDate
:
"red"
,
// "rgb(64, 196, 255)",
meddleDate
:
"rgba(18, 20, 21, 1)"
,
// "rgb(64, 196, 255)",
// TODO: 移动线和时间是什么?
//移动线
//移动线
moveLine
:
"r
gba(255,17,17,0.95)
"
,
moveLine
:
"r
ed
"
,
//移动时间
//移动时间
moveDate
:
"
#009966
"
,
moveDate
:
"
red
"
,
//刻度线
//刻度线
scaleLine
:
"rgba(
255,255,255,0.9
)"
,
scaleLine
:
"rgba(
144, 148, 157, 1
)"
,
// 小刻度线
// 小刻度线
minscaleLine
:
"rgba(
255,255,255,0.5
)"
,
minscaleLine
:
"rgba(
144, 148, 157, 1
)"
,
//刻度条
//刻度条
scaleBar
:
"transparent"
,
scaleBar
:
"transparent"
,
};
};
...
@@ -516,7 +518,7 @@ export default {
...
@@ -516,7 +518,7 @@ export default {
:
item
.
endTime
;
:
item
.
endTime
;
let
sx
=
(
new
Date
(
beginTime
).
getTime
()
-
this
.
firstTime
)
/
1000
/
this
.
px_second
;
let
sx
=
(
new
Date
(
beginTime
).
getTime
()
-
this
.
firstTime
)
/
1000
/
this
.
px_second
;
let
ex
=
(
new
Date
(
endTime
).
getTime
()
-
this
.
firstTime
)
/
1000
/
this
.
px_second
;
let
ex
=
(
new
Date
(
endTime
).
getTime
()
-
this
.
firstTime
)
/
1000
/
this
.
px_second
;
this
.
ctx
.
fillRect
(
sx
,
0
,
ex
-
sx
,
40
);
this
.
ctx
.
fillRect
(
sx
,
0
,
ex
-
sx
,
6
);
});
});
},
},
//获取点坐标的距离(用于移动端双指放大缩小手势识别)
//获取点坐标的距离(用于移动端双指放大缩小手势识别)
...
...
h5/src/components/extension/videoTime.vue
View file @
42a6f9b
...
@@ -130,7 +130,7 @@ export default {
...
@@ -130,7 +130,7 @@ export default {
this
.
markTime
.
push
({
this
.
markTime
.
push
({
beginTime
:
moment
(
one
.
startTime
).
format
(
this
.
dateFormatType
+
' HH:mm:ss'
),
beginTime
:
moment
(
one
.
startTime
).
format
(
this
.
dateFormatType
+
' HH:mm:ss'
),
endTime
:
moment
(
one
.
endTime
).
format
(
this
.
dateFormatType
+
' HH:mm:ss'
),
endTime
:
moment
(
one
.
endTime
).
format
(
this
.
dateFormatType
+
' HH:mm:ss'
),
bgColor
:
"rgba(
255,153,0,0.4
)"
,
bgColor
:
"rgba(
92, 144, 245, 1
)"
,
text
:
""
,
text
:
""
,
})
})
})
})
...
@@ -376,7 +376,7 @@ export default {
...
@@ -376,7 +376,7 @@ export default {
width
:
100%
;
width
:
100%
;
height
:
11.65vw
;
height
:
11.65vw
;
position
:
relative
;
position
:
relative
;
background-color
:
#F9F9F9
;
}
}
}
}
.date-axis
{
.date-axis
{
...
...
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