Commit 10fa1a8c authored by mengcuiguang's avatar mengcuiguang

代码优化

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