Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uniapp_vedio
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
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
android
uniapp_vedio
Commits
b3ee5789
Commit
b3ee5789
authored
Mar 06, 2024
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码合并
parent
096f8f5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
ttVideoDetail.vue
vedio/pagesC/ttvideo/ttVideoDetail.vue
+17
-3
No files found.
vedio/pagesC/ttvideo/ttVideoDetail.vue
View file @
b3ee5789
...
...
@@ -444,6 +444,9 @@
this
.
isqp
=
e
.
detail
.
show
},
collect
(
vedioId
,
index
)
{
this
.
showAdPop
=
true
return
this
.
data
.
collect
=
1
// 收藏
this
.
post
({
...
...
@@ -486,7 +489,8 @@
})
=>
{}
});
},
preloadAd
()
{
preloadAd
()
{
let
that
=
this
// 创建实例
this
.
ad
=
tt
.
createRewardedVideoAd
({
adUnitId
:
REWARD_ID
,
...
...
@@ -505,10 +509,15 @@
break
;
default
:
// 更多请参考错误码文档
}
}
that
.
$nextTick
(()
=>
{
// 延迟渲染,否则位置错乱
that
.
showCoinPop
=
true
})
});
let
that
=
this
// 监听视频播放完成
this
.
ad
.
onClose
((
data
)
=>
{
uni
.
hideLoading
();
...
...
@@ -520,6 +529,11 @@
}
else
{
uni
.
showToast
({
title
:
"未观看完整视频"
})
that
.
$nextTick
(()
=>
{
// 延迟渲染,否则位置错乱
that
.
showCoinPop
=
true
})
}
});
...
...
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