Commit 9ca77664 authored by jyx's avatar jyx

代码优化

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