Commit e4f274a3 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 8202d849
......@@ -3,14 +3,13 @@
<uni-popup type="center" ref="adPop" :maskClick="false" :isMaskClick="false">
<view class="container">
<!-- <view class="ad-view">
<ad :unit-id="adUnitId" @load="onload" @close="onclose" @error="onerror"></ad>
</view> -->
<image @click="onClose2" style="width: 50rpx; height: 50rpx;margin-left:auto;margin-right: 30rpx;
margin-bottom: 30rpx;" src="https://mints-web.oss-cn-beijing.aliyuncs.com/images/ic_close_white.png"></image>
<view class="content">
<text class="title">恭喜你,获得免费看剧名额</text>
<text class="button" @click="handleClose">视频免费解锁1集</text>
<text class="downtext">{{countDown}}s后自动进入广告,观看完成解锁第{{vedioIndex+1}}集剧情</text>
<text class="button" @click="handleClose">广告免费解锁1集</text>
<text v-if="false" class="downtext">{{countDown}}s后自动进入广告,观看完成解锁第{{vedioIndex+1}}集剧情</text>
</view>
</view>
</uni-popup>
......@@ -43,7 +42,7 @@
methods: {
handleShow() {
this.$refs.adPop.open('center');
this.startCountdown()
// this.startCountdown()
},
startCountdown() {
let that = this;
......@@ -64,6 +63,10 @@
handleClose() {
this.$refs.adPop.close('center');
this.$emit('close');
},
onClose2() {
this.$refs.adPop.close('center');
this.$emit('close2');
},
onload(e) {
console.log("onload");
......
......@@ -62,7 +62,7 @@
:originIndex="originIndex" />
<coin-popup :show="showCoinPop" :point="data.point" :vedioId="data.vedioId" @close="showCoinPop = false"
@clickClose="coinPopupClose" @paySuccess="paySuccess" />
<ad-popup :show="showAdPop" @close="adPopupClose" :vedioIndex="originIndex" />
<ad-popup :show="showAdPop" @close="adPopupClose" @close2="adPopupClose2" :vedioIndex="originIndex" />
</view>
</template>
......@@ -548,6 +548,9 @@
adPopupClose() {
this.showAdPop = false
this.playRewardVideo()
},
adPopupClose2() {
this.showAdPop = false
},
playRewardVideo() {
// 播放激励视频
......
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