Commit 9ca77664 authored by jyx's avatar jyx

代码优化

parent ff9fd477
......@@ -69,7 +69,7 @@
@clickClose="coinPopupClose" @paySuccess="paySuccess" />
<ad-popup :show="showAdPop" @handleAd="handleAd" @handleVip="handleVip" @handleClose="handleClose"
:vedioIndex="originIndex" />
<ad-more-popup :show="showAdMorePop" @handleAdMore="handleAd2" @handleCloseMore="handleClose2" />
<ad-more-popup :show="showAdMorePop" @handleAdMore="handleAdMore" @handleCloseMore="handleCloseMore" />
<sign-popup :show="showSignPop" @close="showSignPop = false" />
</view>
</template>
......@@ -577,8 +577,8 @@
uni.hideLoading();
if (res && res.isEnded || res === undefined) {
if (that.isMoreAd) {
message.notify("正在为您解锁剧集")
this.adUnlock(this.originIndex, '')
message.notify("正在为您解锁剧集")
that.adUnlock(that.originIndex, '')
that.addRewardPoint(that.originList[that.originIndex].vedioId)
that.isMoreAd = false
......@@ -635,7 +635,7 @@
handleClose() {
this.showAdPop = false
},
handleClose2() {
handleCloseMore() {
// 再看广告解锁两集,取消
this.showAdMorePop = false
this.adUnlock(this.originIndex, '')
......@@ -645,7 +645,7 @@
// this.showAdPop = false
this.playRewardVideo()
},
handleAd2() {
handleAdMore() {
// 再看广告解锁两集,看广告
this.showAdMorePop = false
this.isMoreAd = true
......
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