Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
walk_daka_wx
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
穆启卓
walk_daka_wx
Commits
74b0b106
Commit
74b0b106
authored
May 22, 2019
by
穆启卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
onshow bug
parent
daeb220b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
index.js
pages/index/index.js
+9
-3
No files found.
pages/index/index.js
View file @
74b0b106
...
...
@@ -30,12 +30,15 @@ Page({
wx
.
showLoading
({
title
:
'获取步数中'
});
this
.
getPageData
();
},
onLoad
()
{
this
.
setData
({
scene
:
app
.
globalData
.
scene
,
appName
:
config
.
appName
,
appTitle
:
config
.
appTitle
});
this
.
getPageData
();
this
.
getAdId
();
},
...
...
@@ -583,7 +586,10 @@ Page({
});
// 看完后会关闭视频,然后触发initVideoAd的videoAd.onClose
}
else
{
this
.
initVideoAd
();
// this.initVideoAd();
videoAd
=
wx
.
createRewardedVideoAd
({
adUnitId
:
this
.
data
.
videoAdId
});
}
}
},
...
...
@@ -593,7 +599,7 @@ Page({
if
(
wx
.
createRewardedVideoAd
)
{
videoAd
=
wx
.
createRewardedVideoAd
({
adUnitId
:
this
.
data
.
videoAdId
})
})
;
videoAd
.
onLoad
();
videoAd
.
onError
((
err
)
=>
{
console
.
log
(
'videoAd.onError'
,
err
)
...
...
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