From 9ff2ae344f731761ef4499f1043f8eb2c47b195b Mon Sep 17 00:00:00 2001 From: super_liu <396572590@qq.com> Date: Mon, 13 Jun 2022 11:30:10 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20There=20is=20no=20way=20the,=20?= =?UTF-8?q?=E6=89=8B=E6=9C=BA=E7=AB=AF=20=E6=90=9C=E7=B4=A2=E4=B8=AD?= =?UTF-8?q?=E5=BF=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/phone/databaseSearch.vue | 24 +++++++++++++++++------- src/pages/phone/domesticStand.vue | 11 ++++++++++- src/pages/phone/standDynamics.vue | 11 ++++++++++- 3 files changed, 37 insertions(+), 9 deletions(-) diff --git a/src/pages/phone/databaseSearch.vue b/src/pages/phone/databaseSearch.vue index 3db81c197..316bee80e 100644 --- a/src/pages/phone/databaseSearch.vue +++ b/src/pages/phone/databaseSearch.vue @@ -148,13 +148,23 @@ export default { this.$router.push('/phoneHome') }, jumpDetails(item){ - this.$router.push({ - name: 'domesticDetails', - query: { - id: item.id, - pageType: 'INLAND_STAND' - } - }) + if(item && item.indexType === 'stand' ){ + this.$router.push({ + name: 'domesticDetails', + query: { + id: item.id, + pageType: 'INLAND_STAND' + } + }) + }else if(item && item.indexType === 'FOREIGN'){ + this.$router.push({ + name: 'domesticDetails', + query: { + id: item.id, + pageType: 'FOREIGN_STAND' + } + }) + } }, }, mounted(){ diff --git a/src/pages/phone/domesticStand.vue b/src/pages/phone/domesticStand.vue index 0021f28aa..d52d97a44 100644 --- a/src/pages/phone/domesticStand.vue +++ b/src/pages/phone/domesticStand.vue @@ -21,7 +21,7 @@
加载中...
-
+
{{item.lawsNumber}}
{{item.standSort + '  ' + item.standNumber + '-' + item.standYear }}
@@ -123,6 +123,15 @@ export default { } }, methods:{ + jumpDetails(item){ + this.$router.push({ + name: 'domesticDetails', + query: { + id: item.id, + pageType: 'INLAND_STAND' + } + }) + }, scrool(){ this.scrolled = this.$refs.cardBox.scrollTop //获得可视区的高度 diff --git a/src/pages/phone/standDynamics.vue b/src/pages/phone/standDynamics.vue index 1536a3db2..595851b3a 100644 --- a/src/pages/phone/standDynamics.vue +++ b/src/pages/phone/standDynamics.vue @@ -11,7 +11,7 @@
加载中...
-
+
{{ item.standardName }}
@@ -74,6 +74,15 @@ export default { }; }, methods: { + jumpDetails(item){ + this.$router.push({ + name: 'domesticDetails', + query: { + id: item.id, + pageType: 'FOREIGN_STAND' + } + }) + }, //返回上一个页面 back() { this.$router.push("/phoneHome"); From c40563faf639d133d33eee9287dc568e84005d68 Mon Sep 17 00:00:00 2001 From: zyd Date: Mon, 13 Jun 2022 16:55:05 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E5=8A=A8=E6=80=81?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E9=94=99=E8=AF=AFBUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/phone/phoneHome.vue | 19 +++- src/pages/phone/standDynamics.vue | 175 +++++++++++++++++++++++------- 2 files changed, 150 insertions(+), 44 deletions(-) diff --git a/src/pages/phone/phoneHome.vue b/src/pages/phone/phoneHome.vue index ce9f54a05..ff6883784 100644 --- a/src/pages/phone/phoneHome.vue +++ b/src/pages/phone/phoneHome.vue @@ -57,12 +57,19 @@ export default { }) }, standChange(type){ - this.$router.push({ - name: 'domesticStand', - query:{ - standType: type, - } - }) + if(type ==='DYNAMIC'){ + this.$router.push({ + name: 'standDynamics' + }) + + }else{ + this.$router.push({ + name: 'domesticStand', + query:{ + standType: type, + } + }) + } }, } }; diff --git a/src/pages/phone/standDynamics.vue b/src/pages/phone/standDynamics.vue index 595851b3a..99592febc 100644 --- a/src/pages/phone/standDynamics.vue +++ b/src/pages/phone/standDynamics.vue @@ -1,58 +1,72 @@