This commit is contained in:
wwz 2024-12-24 11:15:08 +08:00
parent 7a3d2d3477
commit 0661a4d616
1 changed files with 26 additions and 37 deletions

View File

@ -73,18 +73,18 @@
{{ item.type == 1 ? item.buttonTitle : item.number ? `${item.discNumber}/${item.number}` : ( item.discNumber <= 0 ? item.buttonTitle : `剩余${item.discNumber}`) }}
</view>
<!-- <view v-else class="btn u-font-24 text-bold" @click="goNav(item)">{{ item.buttonTitle }}</view> -->
<view v-if=" item.buttonUnderContent && item.buttonUnderUrl " class="u-font-22 tip" @click="goNav({buttonUrl: item.buttonUnderUrl, jumpType: 1,title: item.title})">{{ item.buttonUnderContent}}</view>
<view v-if=" item.buttonUnderContent && item.buttonUnderUrl " class="u-font-22 tip"
@click="goNav({buttonUrl: item.buttonUnderUrl, jumpType: 1,title: item.title})">
{{ item.buttonUnderContent}}
</view>
</view>
</view>
<view class="">
<!-- 激励视频广告 -->
<ad-rewarded-video ref="adRewardedVideo" adpid="1531580352" :preload="false" :loadnext="false"
:disabled="true" v-slot:default="{loading, error}" @load="onadload" @close="onadclose"
@error="onaderror">
<view class="ad-error" v-if="error">{{error}}</view>
</ad-rewarded-video>
<button type="primary" :disabled="isLoading" :loading="isLoading" @click="showAd">显示广告</button>
</view>
</view>
</view>
@ -140,7 +140,7 @@
}
});
},
onReady() {
async onReady() {
this.isLoading = true;
// 广
setTimeout(() => {
@ -158,16 +158,17 @@
this.isLoading = false;
console.log('广告数据加载成功');
},
onadclose(e) {
async onadclose(e) {
const detail = e.detail
// 广
console.log(e.detail)
if (detail && detail.isEnded) {
//
console.log("onClose " + detail.isEnded);
// /sqx_fast/app/ad/state
let res = this.$Request.getT('app/ad/state')
console.log(res)
} else {
// 退
console.log("onClose " + detail.isEnded);
}
//this.isLoading = true;
//this.$refs.adRewardedVideo.load();
@ -302,17 +303,10 @@
<style lang="scss">
.container {
width: 100%;
<<<<<<< HEAD
.task_bg {
width: 100% !important;
height: 494rpx !important;
=======
background-color: #F3F4F8;
.task_bg{
width: 100%!important;
height: 494rpx!important;
>>>>>>> 2ff5ebfd71042121cad90bd9b88c9372dbf8871d
}
.icon {
@ -413,14 +407,9 @@
color: #FFFFFF;
border-radius: 12rpx 12rpx 12rpx 12rpx;
}
<<<<<<< HEAD
.tip {
color: #666;
=======
.tip {
color: #EC6F48;
>>>>>>> 2ff5ebfd71042121cad90bd9b88c9372dbf8871d
height: 44rpx;
line-height: 44rpx;
margin-top: 5rpx;