if (wx.createRewardedVideoAd && !rewardedVideoAd) {
rewardedVideoAd = wx.createRewardedVideoAd({
adUnitId: 'adunit-xxxxx'
})
rewardedVideoAd.onLoad(() => {
console.log('onLoad event emit')
})
rewardedVideoAd.onError((err) => {
console.log('onError event emit', err)
})
rewardedVideoAd.onClose((res) => {
if (res.isEnded) {
that.setData({
'modal.signSuccess': false
})
} else {
}
})
}
方法放在onLoad里面, 底部导航自定义组件, wx.relaunch切换tab页, 安卓机 会卡死,微信未响应 , 将这个方法注释掉 就好了,求解
能给一个代码片段好让我这边复现一下么?出现的手机机型是啥?
https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html
creatAdv() {
let that =
this
if
(wx.createRewardedVideoAd && !rewardedVideoAd) {
rewardedVideoAd = wx.createRewardedVideoAd({
adUnitId:
'adunit-xxxx'
})
rewardedVideoAd.onLoad(() => {
console.log(
'onLoad event emit'
)
})
rewardedVideoAd.onError((err) => {
console.log(
'onError event emit'
, err)
})
rewardedVideoAd.onClose((res) => {
}) }
wx.reLaunch 自定义tab,切换tab页 ,安卓机会卡死, 小米手机, 微信版本最新,
提供一下客户端版本,是 7.0.5 还是 7.0.4 还是其他版本?
7.0.4 ,