Commit cccbfc8b authored by jyx's avatar jyx

代码优化

parent 10ee5310
...@@ -99,11 +99,11 @@ ...@@ -99,11 +99,11 @@
console.log("触发播放进度变化onTimeUpdate回调:", e); console.log("触发播放进度变化onTimeUpdate回调:", e);
// 播放到第10秒且今天没有弹出 ,弹出加入桌面 // 播放到第10秒且今天没有弹出 ,弹出加入桌面
// if ((e.currentTime > 10) && this.canShowShortcut) { if ((e.currentTime > 10) && this.canShowShortcut) {
// this.showShortcutPop = true this.showShortcutPop = true
// this.canShowShortcut = false this.canShowShortcut = false
// this.setShowShortcut() this.setShowShortcut()
// } }
}); });
pm.onWaiting((e) => { pm.onWaiting((e) => {
console.log("触发视频出现缓冲onWaiting回调:", e); console.log("触发视频出现缓冲onWaiting回调:", e);
...@@ -188,7 +188,7 @@ ...@@ -188,7 +188,7 @@
}, },
mounted() { mounted() {
this.preloadAd() this.preloadAd()
// this.getShowShortcut() this.getShowShortcut()
console.log("playerMounted"); console.log("playerMounted");
}, },
beforeUpdate() { beforeUpdate() {
...@@ -263,8 +263,6 @@ ...@@ -263,8 +263,6 @@
this.ad.onClose((data) => { this.ad.onClose((data) => {
uni.hideLoading(); uni.hideLoading();
if (data.isEnded) { if (data.isEnded) {
console.log("FFFFFFFFF")
if (that.showRewardAdMorePop) { if (that.showRewardAdMorePop) {
that.showRewardAdMorePop = false that.showRewardAdMorePop = false
that.pm.setCurrentUnlock() that.pm.setCurrentUnlock()
......
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