Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
飞
飞鹤小程序
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
FH
飞鹤小程序
Commits
33882f8f
Commit
33882f8f
authored
Oct 14, 2025
by
spc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
video fixed
parent
79902e53
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
1 deletion
+43
-1
Brand.vue
views/Brand.vue
+42
-0
Integral.vue
views/Integral.vue
+1
-1
No files found.
views/Brand.vue
View file @
33882f8f
...
...
@@ -409,6 +409,9 @@ export default {
this
.
initBrandInfo
();
// 初始化视频上下文
this
.
initVideoContexts
();
// 初始化曝光检测工具
this
.
exposureTracker
=
new
ExposureTracker
(
this
);
this
.
exposureTracker
.
addExposureElements
(
EXPOSURE_CONFIGS
);
...
...
@@ -815,6 +818,25 @@ export default {
if
(
this
.
currentPlayingVideo
===
'brandVideo1'
)
{
this
.
currentPlayingVideo
=
null
;
}
// 重置视频src来进行初始化
const
videoId
=
'brandVideo1'
;
if
(
this
.
videoContexts
[
videoId
])
{
try
{
// 保存原始URL
const
originalUrl
=
this
.
video1Channel
.
videoUrl
;
// 先设置为空字符串来重置
this
.
videoContexts
[
videoId
].
src
=
''
;
// 延迟一小段时间后恢复原始URL,以确保重置生效
setTimeout
(()
=>
{
if
(
this
.
videoContexts
[
videoId
])
{
this
.
videoContexts
[
videoId
].
src
=
originalUrl
.
indexOf
(
'http'
)
===
0
?
originalUrl
:
this
.
$baseUrl
+
originalUrl
;
}
},
100
);
console
.
log
(
'视频1已重置初始化'
);
}
catch
(
error
)
{
console
.
error
(
'重置视频1失败:'
,
error
);
}
}
},
// 视频2播放结束事件
...
...
@@ -825,6 +847,26 @@ export default {
if
(
this
.
currentPlayingVideo
===
'brandVideo2'
)
{
this
.
currentPlayingVideo
=
null
;
}
// 重置视频src来进行初始化
const
videoId
=
'brandVideo2'
;
if
(
this
.
videoContexts
[
videoId
])
{
console
.
warn
(
'视频上下文已存在:'
,
videoId
);
try
{
// 保存原始URL
const
originalUrl
=
this
.
video2Channel
.
videoUrl
;
// 先设置为空字符串来重置
this
.
videoContexts
[
videoId
].
src
=
''
;
// 延迟一小段时间后恢复原始URL,以确保重置生效
// setTimeout(() => {
// if (this.videoContexts[videoId]) {
// this.videoContexts[videoId].src = originalUrl.indexOf('http') === 0 ? originalUrl : this.$baseUrl + originalUrl;
// }
// }, 100);
console
.
log
(
'视频2已重置初始化'
);
}
catch
(
error
)
{
console
.
error
(
'重置视频2失败:'
,
error
);
}
}
},
// 处理视频播放(互斥逻辑)
...
...
views/Integral.vue
View file @
33882f8f
...
...
@@ -1749,7 +1749,7 @@ onMounted(async () => {
}
);
}
);
goodsDataArr
.
value
=
integralData
?.
value
?.
goodsList
Data
;
goodsDataArr
.
value
=
integralData
?.
value
?.
goodsList
;
swiperData
.
value
=
integralData
.
value
?.
swiper
;
...
...
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