From b46bede28f376dc85cab6e14bde00ca194cdfa20 Mon Sep 17 00:00:00 2001 From: yuyongdong Date: Tue, 16 Apr 2024 20:26:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=82=80=E8=AF=B7=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/home/helpDialog.vue | 11 +++-------- src/views/home/index.vue | 14 ++++++++++---- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/src/views/home/helpDialog.vue b/src/views/home/helpDialog.vue index 6455d4c..9c200bd 100644 --- a/src/views/home/helpDialog.vue +++ b/src/views/home/helpDialog.vue @@ -108,20 +108,15 @@ export default { mounted() { this.token = getToken() if(this.$route.params.name) { - if(this.$route.params.boxId.split("id=")[1] != 'undefined') { - this.boxId = this.$route.params.boxId.split("id=")[1]; - this.boxCode = this.$route.params.box.split("box=")[1]; + if(this.$route.params.code.split("=")[0] == 'box') { + this.boxCode = this.$route.params.code.split("box=")[1]; this.getBoxData() if(this.token) { this.getHelpBoxLog() - // this.helpConfirm() - this.initBoxState(this.boxCode,this.boxId) + this.initBoxState(this.boxCode) } - // } else { - // this.$emit('handleClose') } } - }, methods: { // 宝箱信息接口 diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 18ed80d..1f146aa 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -750,8 +750,10 @@ export default { this.initData() this.$nextTick(() => { if (this.$route.params.code) { - if(this.$route.params.code.split("=")[0] == 'box') { - this.helpDialogVisible = true + if (this.$route.params.code.split("=")[0] == "box") { + if(this.$route.params.code.split("=").split[1]) { + this.helpDialogVisible = true; + } } } }); @@ -772,8 +774,12 @@ export default { this.myInviteCount = this.userData.inviteCount this.myEnhanceCount = this.userData.enhanceCount this.inWhiteList = this.userData.inWhiteList - if(this.$route.params.name) { - this.helpConfirm() + if (this.$route.params.code) { + if(this.$route.params.code.split("=")[0] == 'new') { + if (this.$route.params.code.split("new=")[1] != "undefined") { + this.helpConfirm() + } + } } } else {