diff --git a/components/pop-ling-qu.vue b/components/pop-ling-qu.vue index 829d2e9..68fd352 100644 --- a/components/pop-ling-qu.vue +++ b/components/pop-ling-qu.vue @@ -23,9 +23,7 @@ - + @@ -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 { } })