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
664f4bc7
Commit
664f4bc7
authored
Dec 04, 2024
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
94e51199
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
+21
-21
player.vue
vedio/components/player/player.vue
+21
-21
No files found.
vedio/components/player/player.vue
View file @
664f4bc7
...
@@ -273,7 +273,7 @@
...
@@ -273,7 +273,7 @@
data
data
})
=>
{
})
=>
{
that
.
showAdForServer
=
data
.
douyinAdTipOpen
;
that
.
showAdForServer
=
data
.
douyinAdTipOpen
;
if
(
!
that
.
showAdForServer
)
{
if
(
that
.
showAdForServer
)
{
// 预加载广告
// 预加载广告
that
.
preloadAd
()
that
.
preloadAd
()
}
}
...
@@ -284,7 +284,7 @@
...
@@ -284,7 +284,7 @@
let
that
=
this
let
that
=
this
// 创建实例
// 创建实例
this
.
ad
=
tt
.
createRewardedVideoAd
({
this
.
ad
=
tt
.
createRewardedVideoAd
({
adUnitId
:
REWARD_ID
,
adUnitId
:
REWARD_ID
});
});
// 监听错误
// 监听错误
...
@@ -431,7 +431,7 @@
...
@@ -431,7 +431,7 @@
},
},
adUnlock
()
{
adUnlock
()
{
let
that
=
this
let
that
=
this
thi
s
.
post
({
common
.
method
s
.
post
({
url
:
'/vedio/unlockByAd'
,
url
:
'/vedio/unlockByAd'
,
data
:
{
data
:
{
adSource
:
'csj'
,
adSource
:
'csj'
,
...
...
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