隐藏广告接口

This commit is contained in:
duan
2025-01-13 15:27:42 +08:00
parent cbfde6822c
commit b74fff86a4
4 changed files with 59 additions and 59 deletions

View File

@@ -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

View File

@@ -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 {
} // }
}) // })
} }
} }
} }

View File

@@ -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 {
} // }
}) // })
} }
} }
} }

View File

@@ -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>