From d065f76217f775558a1e3d8914a5457a42960695 Mon Sep 17 00:00:00 2001
From: a0049873 <79py69t9wb@privaterelay.appleid.com>
Date: Tue, 29 Nov 2022 14:49:34 +0800
Subject: [PATCH] =?UTF-8?q?=E5=B9=BF=E5=9C=BA=E6=A8=A1=E5=BC=8F=E6=B7=BB?=
=?UTF-8?q?=E5=8A=A0=E9=BB=98=E8=AE=A4=E9=80=89=E4=B8=AD=20=20=E5=BA=94?=
=?UTF-8?q?=E7=94=A8=E9=A2=86=E5=9F=9F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../capacitySquare/components/algorithm.vue | 567 +++++++++---------
.../capacitySquare/components/application.vue | 13 +-
.../views/capacitySquare/components/layer.vue | 8 +-
3 files changed, 314 insertions(+), 274 deletions(-)
diff --git a/front/src/views/capacitySquare/components/algorithm.vue b/front/src/views/capacitySquare/components/algorithm.vue
index 47d6b958..502547f2 100644
--- a/front/src/views/capacitySquare/components/algorithm.vue
+++ b/front/src/views/capacitySquare/components/algorithm.vue
@@ -22,7 +22,11 @@
-
-
-
+
+
{{ item.name }}
@@ -46,308 +59,324 @@
diff --git a/front/src/views/capacitySquare/components/application.vue b/front/src/views/capacitySquare/components/application.vue
index c4372edc..098d9882 100644
--- a/front/src/views/capacitySquare/components/application.vue
+++ b/front/src/views/capacitySquare/components/application.vue
@@ -1,8 +1,8 @@
@@ -57,12 +57,17 @@
import { selectAppList } from '@/api/home'
import { useRouter } from 'vue-router'
const router = useRouter()
+ const selectArea = router.currentRoute.value.query.area
const pageNum = ref(1)
const flag = ref(true)
const type = ref(null)
const area = ref(null)
const typeName = ref('全市')
const typeName2 = ref('全部')
+ if (selectArea && selectArea !== '全部') {
+ typeName2.value = selectArea
+ area.value = selectArea
+ }
const dictList = ref([])
const data = reactive({ list: [] })
const selectFlag = ref(false)
@@ -121,8 +126,8 @@
type: type.value,
area: area.value,
}).then((res) => {
- console.log('res---应用广场--------->', res);
-
+ console.log('res---应用广场--------->', res)
+
if (res.data.data.total.length < 9) {
dom.removeEventListener('scroll', viewMonitor, true)
}
diff --git a/front/src/views/capacitySquare/components/layer.vue b/front/src/views/capacitySquare/components/layer.vue
index 01486aac..3173e6e2 100644
--- a/front/src/views/capacitySquare/components/layer.vue
+++ b/front/src/views/capacitySquare/components/layer.vue
@@ -60,9 +60,15 @@
import { getCategoryTreePage } from '@/api/personalCenter'
import { getGisByArea } from '@/api/home'
import { ref, onMounted, onBeforeUnmount, nextTick } from 'vue'
+ import { useRouter } from 'vue-router'
+ const router = useRouter()
+ const area = router.currentRoute.value.query.area
const deptType = ref(null)
const typeName = ref('全市')
const typeName2 = ref('全部')
+ if (area) {
+ typeName2.value = area
+ }
const dictList = ref([])
const dataList = ref([])
const selectFlag2 = ref(false)
@@ -337,4 +343,4 @@
border-radius: 0.08rem;
}
}
-
\ No newline at end of file
+