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
+