观看视频限制

This commit is contained in:
GaoHao
2024-12-25 17:58:51 +08:00
parent 28bab311d3
commit 5b3eb4f602

View File

@@ -243,12 +243,17 @@
// jumpType (integer, optional): 跳转类型 1 内部路径 2 外部路径 , // jumpType (integer, optional): 跳转类型 1 内部路径 2 外部路径 ,
// type (integer, optional): 任务类型 1 普通任务 2 打卡任务 9 其它 , // type (integer, optional): 任务类型 1 普通任务 2 打卡任务 9 其它 ,
// buttonUrl // buttonUrl
if (item.jumpType == 0) { if (item.jumpType == 0) {
if (item.buttonTitle.indexOf("领取") != -1) { if (item.buttonTitle.indexOf("领取") != -1) {
this.taskReceive(item.id) this.taskReceive(item.id)
} else if (item.buttonTitle.indexOf("观看视频") != -1) { } else if (item.buttonTitle.indexOf("观看视频") != -1) {
// 首次加载广告 // 首次加载广告
// uni.showToast({
// title: this.adRewardedVideo,
// icon: 'none'
// })
this.urlCallback = { this.urlCallback = {
userId: uni.getStorageSync('userId'), userId: uni.getStorageSync('userId'),
extra: uni.getStorageSync('userId') + "" + new Date().getTime(), extra: uni.getStorageSync('userId') + "" + new Date().getTime(),
@@ -325,7 +330,7 @@
}) })
// #ifdef H5 // #ifdef H5
this.list.map(item=>{ this.list.map(item=>{
if(item.title.indexOf("观看视频") != -1) { if(item.title.indexOf("观看视频") != -1&&this.adRewardedVideo) {
item.show = false item.show = false
} }
}) })