Commit b3ee5789 authored by mengcuiguang's avatar mengcuiguang

代码合并

parent 096f8f5d
......@@ -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
})
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment