Commit cccbfc8b authored by jyx's avatar jyx

代码优化

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