From 97ecc2ffd5fba0940a297e0fd5fe632d02de614e Mon Sep 17 00:00:00 2001 From: Wen Fangping Date: Mon, 14 Mar 2022 12:03:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E5=8A=9F=E5=BE=B7=E7=AE=B1?= =?UTF-8?q?=E6=9C=AA=E6=98=BE=E7=A4=BA=E5=AE=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 28 ++++++++++++++++++++-------- src/pages/merit-box/index.vue | 6 +++++- src/pages/temple-home/index.vue | 9 ++++++++- src/pages/temple-list/index.vue | 14 ++++++++------ wap/index.html | 2 +- 5 files changed, 42 insertions(+), 17 deletions(-) diff --git a/src/App.vue b/src/App.vue index 1da4333..47664c5 100644 --- a/src/App.vue +++ b/src/App.vue @@ -2,8 +2,8 @@
- - + + {{ tab.title }} @@ -148,7 +149,7 @@ export default { openBox(){ this.$router.push({ name: 'merit-box', - query: { temple_id : this.query.temple_id, open_box: 1 } + query: { temple_id : this.query.temple_id, open_box: 1, fromPathName: this.$route.name } }) }, locationTo(nav) { @@ -197,6 +198,12 @@ export default { } }, onPushForRouteName(routeName){ + if(routeName === 'merit-box'){ + return this.openBox(); + } + if(routeName === 'temple-list'){ + return this.$router.push({ name: routeName, query: { hideTab: '1'}}) + } this.$router.push({ name: routeName }) }, async getUserData(){ diff --git a/src/pages/temple-list/index.vue b/src/pages/temple-list/index.vue index b489e60..6ccbcbb 100644 --- a/src/pages/temple-list/index.vue +++ b/src/pages/temple-list/index.vue @@ -1,5 +1,5 @@