观看视频限制

This commit is contained in:
GaoHao 2024-12-25 17:58:51 +08:00
parent 28bab311d3
commit 5b3eb4f602
1 changed files with 7 additions and 2 deletions

View File

@ -243,12 +243,17 @@
// jumpType (integer, optional): 1 2 ,
// type (integer, optional): 1 2 9 ,
// buttonUrl
if (item.jumpType == 0) {
if (item.buttonTitle.indexOf("领取") != -1) {
this.taskReceive(item.id)
} else if (item.buttonTitle.indexOf("观看视频") != -1) {
// 广
// uni.showToast({
// title: this.adRewardedVideo,
// icon: 'none'
// })
this.urlCallback = {
userId: uni.getStorageSync('userId'),
extra: uni.getStorageSync('userId') + "" + new Date().getTime(),
@ -325,7 +330,7 @@
})
// #ifdef H5
this.list.map(item=>{
if(item.title.indexOf("观看视频") != -1) {
if(item.title.indexOf("观看视频") != -1&&this.adRewardedVideo) {
item.show = false
}
})