任务merit领取
This commit is contained in:
@@ -62,8 +62,8 @@
|
||||
<!-- 激励视频广告 -->
|
||||
<view style="width: 0;height: 0;overflow: hidden;">
|
||||
<!-- 激励视频广告 -->
|
||||
<ad-rewarded-video ref="adRewarded" :adpid="datas.adpid" :loadnext="true"
|
||||
:url-callback="datas.urlCallback" @load="onadload" @close="onadclose" @error="onaderror">
|
||||
<ad-rewarded-video ref="adRewarded" :adpid="datas.adpid" :loadnext="true" :url-callback="datas.urlCallback"
|
||||
@load="onadload" @close="onadclose" @error="onaderror">
|
||||
</ad-rewarded-video>
|
||||
</view>
|
||||
</view>
|
||||
@@ -296,7 +296,27 @@
|
||||
})
|
||||
} else {
|
||||
if (item.jumpType == 0) {
|
||||
if (item.title.indexOf("新人福利") != -1) {
|
||||
if (item.buttonTitle.indexOf("领取") != -1) {
|
||||
let res = await taskReceive({
|
||||
id: item.id
|
||||
})
|
||||
console.log(res,'调试')
|
||||
if (res.code == 0) {
|
||||
uni.showToast({
|
||||
title: res.id == 15 ? '签到成功' : '领取成功',
|
||||
icon: 'none'
|
||||
})
|
||||
setTimeout(() => {
|
||||
getTaskdata()
|
||||
getsignIn()
|
||||
}, 1000)
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
} else if (item.title.indexOf("新人福利") != -1) {
|
||||
let res = await taskReceive({
|
||||
id: item.id
|
||||
})
|
||||
@@ -316,7 +336,7 @@
|
||||
}
|
||||
} else if (item.buttonTitle.indexOf("观看视频") != -1) {
|
||||
// 首次加载广告
|
||||
if(!datas.adRewardedShow){
|
||||
if (!datas.adRewardedShow) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '广告加载失败,请稍后重试'
|
||||
|
||||
Reference in New Issue
Block a user