Commit e4f274a3 authored by mengcuiguang's avatar mengcuiguang

代码优化

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