Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
corporate-culture-qd
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王立鹏
corporate-culture-qd
Commits
7d1289e9
Commit
7d1289e9
authored
Mar 24, 2026
by
王立鹏
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '线上优化/线上优化第五版' into 'master'
线上优化/线上优化第五版 See merge request
!14
parents
c3a077d6
09d402fe
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
91 additions
and
1 deletions
+91
-1
index.vue
src/components/common/ArticleContent/index.vue
+86
-0
index.vue
src/views/videoDetail/index.vue
+5
-1
No files found.
src/components/common/ArticleContent/index.vue
View file @
7d1289e9
...
@@ -322,5 +322,91 @@ const vImagePreview: Directive = {
...
@@ -322,5 +322,91 @@ const vImagePreview: Directive = {
<
style
scoped
>
<
style
scoped
>
.html-content
{
.html-content
{
font-size
:
18px
;
font-size
:
18px
;
line-height
:
1.8
;
color
:
#374151
;
word-break
:
break-word
;
}
.html-content
:deep
(
p
)
{
margin
:
1em
0
;
}
.html-content
:deep
(
h1
),
.html-content
:deep
(
h2
),
.html-content
:deep
(
h3
),
.html-content
:deep
(
h4
),
.html-content
:deep
(
h5
),
.html-content
:deep
(
h6
)
{
margin
:
1.2em
0
0.6em
;
line-height
:
1.4
;
font-weight
:
600
;
color
:
#111827
;
}
.html-content
:deep
(
h1
)
{
font-size
:
1.7em
;
}
.html-content
:deep
(
h2
)
{
font-size
:
1.5em
;
}
.html-content
:deep
(
h3
)
{
font-size
:
1.3em
;
}
.html-content
:deep
(
ul
),
.html-content
:deep
(
ol
)
{
margin
:
1em
0
;
padding-left
:
1.5em
;
}
.html-content
:deep
(
ul
)
{
list-style
:
disc
;
}
.html-content
:deep
(
ol
)
{
list-style
:
decimal
;
}
.html-content
:deep
(
li
)
{
margin
:
0.35em
0
;
}
.html-content
:deep
(
blockquote
)
{
margin
:
1em
0
;
padding
:
0.6em
1em
;
border-left
:
4px
solid
#d1d5db
;
color
:
#6b7280
;
background
:
#f9fafb
;
}
.html-content
:deep
(
pre
),
.html-content
:deep
(
code
)
{
font-family
:
SFMono-Regular
,
Consolas
,
'Liberation Mono'
,
Menlo
,
monospace
;
}
.html-content
:deep
(
pre
)
{
margin
:
1em
0
;
padding
:
0.8em
1em
;
border-radius
:
6px
;
overflow-x
:
auto
;
background
:
#f3f4f6
;
}
.html-content
:deep
(
code
)
{
padding
:
0.1em
0.35em
;
border-radius
:
4px
;
background
:
#f3f4f6
;
}
.html-content
:deep
(
pre
code
)
{
padding
:
0
;
background
:
transparent
;
}
.html-content
:deep
(
a
)
{
color
:
#2563eb
;
text-decoration
:
underline
;
}
}
</
style
>
</
style
>
src/views/videoDetail/index.vue
View file @
7d1289e9
...
@@ -465,8 +465,12 @@ const handleSeeked = (event: Event) => {
...
@@ -465,8 +465,12 @@ const handleSeeked = (event: Event) => {
const
handleLoadedMetadata
=
()
=>
{
const
handleLoadedMetadata
=
()
=>
{
if
(
videoRef
.
value
&&
showRewardToastComp
.
value
)
{
if
(
videoRef
.
value
&&
showRewardToastComp
.
value
)
{
// 四舍五入
// 如果是QA碎片的话 是观看视频的一半 其他视频改成半个小时
if
(
rewardVideoType
.
value
===
SpecificVideoRewardEnum
.
QA_CHIP
)
{
rewardVideoLimitDuration
.
value
=
Math
.
round
(
videoRef
.
value
.
duration
/
2
)
rewardVideoLimitDuration
.
value
=
Math
.
round
(
videoRef
.
value
.
duration
/
2
)
}
else
{
rewardVideoLimitDuration
.
value
=
1800
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment