Commit 096f8f5d authored by jyx's avatar jyx

添加loading

parent 75eedcc9
......@@ -494,7 +494,7 @@
// 监听错误
this.ad.onError((err) => {
tt.hideLoading();
uni.hideLoading();
uni.showToast({
title: "网络太火爆了,请稍候重试"
......@@ -511,7 +511,7 @@
let that = this
// 监听视频播放完成
this.ad.onClose((data) => {
tt.hideLoading();
uni.hideLoading();
if (data.isEnded) {
uni.showToast({
title: "正在为您解锁剧集"
......@@ -539,8 +539,10 @@
this.playRewardVideo()
},
playRewardVideo() {
// 播放激励视频
tt.showLoading();
// 播放激励视频
uni.showLoading({
title: '广告加载中'
});
this.ad.show();
},
adUnlock(num, ecpm) {
......
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