Commit 096f8f5d authored by jyx's avatar jyx

添加loading

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