修改抽奖未绑定支付宝跳转

This commit is contained in:
YeMingfei666 2024-12-16 16:49:49 +08:00
parent 087bb2b3e2
commit efd651aac7
1 changed files with 10 additions and 28 deletions

View File

@ -23,9 +23,7 @@
</template>
</view>
<!-- <view class="u-flex u-row-center btn-box">
<view class="btn" @click="lingqu">立即领取</view>
</view> -->
<view class="u-flex close u-row-center">
<u-icon name="close-circle" :size="54" @click="close" color="#fff"></u-icon>
</view>
@ -49,30 +47,8 @@
this.result = data
this.show = true
},
lingqu() {
const {
orderId,
id
} = this.result
this.$Request.postJson('app/discSpinning/receive', this.result).then(res => {
this.result = ''
console.log(res)
if (res.code == 0) {
uni.showToast({
title: '领取成功',
icon: 'none'
})
this.$emit('success')
this.close()
} else {
uni.showToast({
title: '领取失败',
icon: 'none'
})
}
})
},
close() {
console.log('抽奖弹窗关闭');
this.show = false
if(!this.result){
return
@ -85,8 +61,14 @@
this.result = ''
console.log(res)
if (res.code == 0) {
this.$emit('close')
this.close()
console.log('抽奖领取成功');
const key=res.data==0?'isBindAliPay':undefined
this.$emit('close',key)
if(key&&key=='isBindAliPay'){
uni.navigateTo({
url:'/me/invite/zhifubao'
})
}
} else {
}
})