From efd651aac72090f66f8484ce4dd1a2c7514ca237 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Mon, 16 Dec 2024 16:49:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8A=BD=E5=A5=96=E6=9C=AA?= =?UTF-8?q?=E7=BB=91=E5=AE=9A=E6=94=AF=E4=BB=98=E5=AE=9D=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/pop-ling-qu.vue | 38 ++++++++++---------------------------- 1 file changed, 10 insertions(+), 28 deletions(-) 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 { } })