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
7b05837c
Commit
7b05837c
authored
Oct 10, 2026
by
lijiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【需求 25171】fix: 视频时长为空时隐藏时长标签,避免出现空的黑色小块
parent
854e5aea
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
4 deletions
+8
-4
videoList.vue
src/views/homePage/homeTab/components/videoList.vue
+4
-3
videoList.vue
src/views/homePage/yaTab/components/videoList.vue
+2
-0
index.vue
src/views/searchPage/index.vue
+1
-1
index.vue
src/views/videoSearchList/index.vue
+1
-0
No files found.
src/views/homePage/homeTab/components/videoList.vue
View file @
7b05837c
...
...
@@ -59,6 +59,7 @@
<!-- 时长 -->
<div
v-if=
"list[0]?.videoDuration"
class=
"absolute bottom-4 right-4 bg-black/80 text-white px-3 py-1.5 rounded-lg text-sm"
>
{{
list
[
0
]?.
videoDuration
}}
...
...
@@ -135,7 +136,7 @@
<!-- 时长 -->
<div
v-if=
"!smallerThanXl"
v-if=
"!smallerThanXl
&& item?.videoDuration
"
class=
"absolute bottom-3 right-3 bg-black/80 text-white px-2 py-1 rounded-lg text-xs"
>
{{
item
?.
videoDuration
}}
...
...
@@ -218,7 +219,7 @@
<!-- 时长 -->
<div
v-if=
"!smallerThanXl"
v-if=
"!smallerThanXl
&& item.videoDuration
"
class=
"absolute bottom-3 right-3 bg-black/80 text-white px-2 py-1 rounded-lg text-xs"
>
{{
item
.
videoDuration
}}
...
...
@@ -312,7 +313,7 @@
<!-- 时长 -->
<div
v-if=
"!smallerThanXl"
v-if=
"!smallerThanXl
&& item?.videoDuration
"
class=
"absolute bottom-3 right-3 bg-black/80 text-white px-2 py-1 rounded-lg text-xs"
>
{{
item
?.
videoDuration
}}
...
...
src/views/homePage/yaTab/components/videoList.vue
View file @
7b05837c
...
...
@@ -59,6 +59,7 @@
<!-- 时长 -->
<div
v-if=
"item?.videoDuration"
class=
"absolute bottom-3 right-3 bg-black/80 text-white px-2 py-1 rounded-lg text-xs"
>
{{
item
?.
videoDuration
}}
...
...
@@ -162,6 +163,7 @@
<!-- 时长 -->
<div
v-if=
"i.videoDuration"
class=
"absolute bottom-3 right-3 bg-black/80 text-white px-2 py-1 rounded-lg text-xs"
>
{{
i
.
videoDuration
}}
...
...
src/views/searchPage/index.vue
View file @
7b05837c
...
...
@@ -94,7 +94,7 @@
>
<img
:src=
"item.faceUrl"
class=
"w-full h-full object-cover"
/>
<div
v-if=
"item.type === ArticleTypeEnum.VIDEO"
v-if=
"item.type === ArticleTypeEnum.VIDEO
&& item.videoDuration
"
class=
"absolute bottom-2 right-2 bg-black/70 text-white text-12px px-2 py-0.5 rounded"
>
{{
item
.
videoDuration
}}
...
...
src/views/videoSearchList/index.vue
View file @
7b05837c
...
...
@@ -81,6 +81,7 @@
>
<img
:src=
"item.faceUrl"
class=
"w-full h-full object-cover"
/>
<div
v-if=
"item.videoDuration"
class=
"absolute bottom-2 right-2 bg-black/70 text-white text-12px px-2 py-0.5 rounded"
>
{{ item.videoDuration }}
...
...
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