Commit 10fa1a8c authored by mengcuiguang's avatar mengcuiguang

代码优化

parent adf7bfe2
......@@ -156,7 +156,7 @@ export default {
}
},
fail: (e) => {
message.notify('服务器开小差了');
// message.notify('服务器开小差了');
// alert({
// content: JSON.stringify(e)
// });
......
......@@ -184,10 +184,10 @@
this.ad.load();
},
showAd(item, isSign) {
let that = this
this.ad.closeHandler = function(res) {
let that = this
this.ad.onClose((res) => {
tt.hideLoading();
if (data.isEnded) {
if (res.isEnded) {
if (isSign) {
that.reportTaskPointMore(item)
} else {
......@@ -196,7 +196,7 @@
} else {
message.notify('未观看完视频');
}
};
});
this.ad.onClose(this.ad.closeHandler)
this.ad.show();
......
......@@ -571,7 +571,6 @@
});
let that = this
this.ad.onClose((res) => {
uni.hideLoading();
if (res && res.isEnded || res === undefined) {
......
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