隐藏广告接口
This commit is contained in:
@@ -476,22 +476,22 @@
|
|||||||
orderId,
|
orderId,
|
||||||
id
|
id
|
||||||
} = _this.result
|
} = _this.result
|
||||||
_this.$Request.postJson('/app/discSpinning/receive', _this.result).then(res => {
|
// _this.$Request.postJson('/app/discSpinning/receive', _this.result).then(res => {
|
||||||
_this.result = ''
|
// _this.result = ''
|
||||||
console.log(res)
|
// console.log(res)
|
||||||
if (res.code == 0) {
|
// if (res.code == 0) {
|
||||||
uni.showToast({
|
// uni.showToast({
|
||||||
title: '领取成功',
|
// title: '领取成功',
|
||||||
icon: 'none'
|
// icon: 'none'
|
||||||
})
|
// })
|
||||||
_this.getRedPack()
|
// _this.getRedPack()
|
||||||
} else {
|
// } else {
|
||||||
uni.showToast({
|
// uni.showToast({
|
||||||
title: '领取失败',
|
// title: '领取失败',
|
||||||
icon: 'none'
|
// icon: 'none'
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
},
|
},
|
||||||
complete: () => {
|
complete: () => {
|
||||||
this.prizeing = false
|
this.prizeing = false
|
||||||
|
|||||||
@@ -53,23 +53,23 @@
|
|||||||
orderId,
|
orderId,
|
||||||
id
|
id
|
||||||
} = this.result
|
} = this.result
|
||||||
this.$Request.postJson('/app/discSpinning/receive', this.result).then(res => {
|
// this.$Request.postJson('/app/discSpinning/receive', this.result).then(res => {
|
||||||
this.result = ''
|
// this.result = ''
|
||||||
console.log(res)
|
// console.log(res)
|
||||||
if (res.code == 0) {
|
// if (res.code == 0) {
|
||||||
uni.showToast({
|
// uni.showToast({
|
||||||
title: '领取成功',
|
// title: '领取成功',
|
||||||
icon: 'none'
|
// icon: 'none'
|
||||||
})
|
// })
|
||||||
this.$emit('success')
|
// this.$emit('success')
|
||||||
this.close()
|
// this.close()
|
||||||
} else {
|
// } else {
|
||||||
uni.showToast({
|
// uni.showToast({
|
||||||
title: '领取失败',
|
// title: '领取失败',
|
||||||
icon: 'none'
|
// icon: 'none'
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
},
|
},
|
||||||
close() {
|
close() {
|
||||||
this.show = false
|
this.show = false
|
||||||
@@ -80,15 +80,15 @@
|
|||||||
orderId,
|
orderId,
|
||||||
id
|
id
|
||||||
} = this.result
|
} = this.result
|
||||||
this.$Request.postJson('/app/discSpinning/receive', this.result).then(res => {
|
// this.$Request.postJson('/app/discSpinning/receive', this.result).then(res => {
|
||||||
this.result = ''
|
// this.result = ''
|
||||||
console.log(res)
|
// console.log(res)
|
||||||
if (res.code == 0) {
|
// if (res.code == 0) {
|
||||||
this.$emit('success')
|
// this.$emit('success')
|
||||||
this.close()
|
// this.close()
|
||||||
} else {
|
// } else {
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,21 +57,21 @@
|
|||||||
orderId,
|
orderId,
|
||||||
id
|
id
|
||||||
} = this.result
|
} = this.result
|
||||||
this.$Request.postJson('/app/discSpinning/receive', this.result).then(res => {
|
// this.$Request.postJson('/app/discSpinning/receive', this.result).then(res => {
|
||||||
this.result = ''
|
// this.result = ''
|
||||||
console.log(res)
|
// console.log(res)
|
||||||
if (res.code == 0) {
|
// if (res.code == 0) {
|
||||||
console.log('抽奖领取成功');
|
// console.log('抽奖领取成功');
|
||||||
const key=res.data==0?'isBindAliPay':undefined
|
// const key=res.data==0?'isBindAliPay':undefined
|
||||||
this.$emit('close',key)
|
// this.$emit('close',key)
|
||||||
if(key&&key=='isBindAliPay'){
|
// if(key&&key=='isBindAliPay'){
|
||||||
uni.navigateTo({
|
// uni.navigateTo({
|
||||||
url:'/me/yaoqing/zhifubao-tixain'
|
// url:'/me/yaoqing/zhifubao-tixain'
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
} else {
|
// } else {
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -109,11 +109,11 @@
|
|||||||
|
|
||||||
</u-modal>
|
</u-modal>
|
||||||
<!-- 激励视频广告 -->
|
<!-- 激励视频广告 -->
|
||||||
<ad-rewarded-video v-if="adRewardedVideo" ref="adRewardedVideo" adpid="1531580352" :loadnext="true"
|
<!-- <ad-rewarded-video v-if="adRewardedVideo" ref="adRewardedVideo" adpid="1531580352" :loadnext="true"
|
||||||
v-slot:default="{ loading, error }" :url-callback="urlCallback" @load="onadload" @close="onadclose"
|
v-slot:default="{ loading, error }" :url-callback="urlCallback" @load="onadload" @close="onadclose"
|
||||||
@error="onaderror">
|
@error="onaderror">
|
||||||
<view class="ad-error" v-if="error">{{ error }}</view>
|
<view class="ad-error" v-if="error">{{ error }}</view>
|
||||||
</ad-rewarded-video>
|
</ad-rewarded-video> -->
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user