From 745ecaa8c705cc9389a0075f7d4ab4b14ce1f92a Mon Sep 17 00:00:00 2001 From: wangzimeng <3297159934@qq.com> Date: Fri, 8 Aug 2025 17:19:53 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=8F=91=E5=B8=83=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=EF=BC=9A=E5=8F=91=E5=B8=83=E6=88=90=E5=8A=9F=E5=90=8E=E6=B8=85?= =?UTF-8?q?=E7=A9=BA=E4=B8=8A=E4=BC=A0=E7=9A=84=E5=9B=BE=E7=89=87=EF=BC=9B?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E7=9A=84=E7=9C=81=E5=B8=82=E6=B8=85=E7=A9=BA?= =?UTF-8?q?=EF=BC=8C=E5=BA=95=E9=83=A8=E9=80=82=E5=BA=94=E8=8B=B9=E6=9E=9C?= =?UTF-8?q?=E6=89=8B=E6=9C=BA=202=E3=80=81=E6=8B=9B=E7=A7=9F=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E5=92=8C=E8=AF=BE=E7=A8=8B=E8=AF=A6=E6=83=85=E7=9A=84?= =?UTF-8?q?=E5=BA=95=E9=83=A8=E6=8C=89=E9=92=AE=E9=80=82=E5=BA=94=E8=8B=B9?= =?UTF-8?q?=E6=9E=9C=E6=89=8B=E6=9C=BA=E5=92=8C=E5=AE=89=E5=8D=93=E6=9C=BA?= =?UTF-8?q?=203=E3=80=81=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83=E7=9A=84?= =?UTF-8?q?=E6=BB=91=E5=8A=A8=E3=80=81=E6=9C=AA=E8=AE=A4=E8=AF=81=E5=B7=B2?= =?UTF-8?q?=E8=AE=A4=E8=AF=81=E6=9B=B4=E6=8D=A2=E4=B8=BA=E5=9B=BE=E7=89=87?= =?UTF-8?q?=204=E3=80=81=E9=80=89=E6=8B=A9=E7=9C=81=E5=B8=82=E7=9A=84?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E8=B7=9F=E9=9A=8F=E5=8F=91=E5=B8=83=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E8=B0=83=E6=95=B4=205=E3=80=81=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E7=85=A7=E7=89=87=E7=9A=84=E7=BB=84=E4=BB=B6=E8=B7=9F=E9=9A=8F?= =?UTF-8?q?=E5=8F=91=E5=B8=83=E9=A1=B5=E9=9D=A2=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packageA/search/index.vue | 271 +++++++++--------- pages/canteenRent/rentDetail.vue | 17 +- pages/canteenRent/rentList.vue | 2 +- pages/index/fabu.vue | 97 +++++-- pages/index/index.vue | 6 +- pages/index/user.vue | 86 ++++-- pages/school/classesDetail.vue | 25 +- sheep/components/s-uploader/upload-image.vue | 18 +- .../su-regionCity-picker.vue | 3 + 9 files changed, 323 insertions(+), 202 deletions(-) diff --git a/packageA/search/index.vue b/packageA/search/index.vue index 0502efa..510f294 100644 --- a/packageA/search/index.vue +++ b/packageA/search/index.vue @@ -27,46 +27,44 @@ - - - - - - - - - - - {{item.platform_title}} - - - - {{e}} - + + + + + + + + + + {{item.platform_title}} + + + + {{e}} + - + + + + + + {{item.address_city_text}} - - - - - {{item.address_city_text}} - - - {{item.release_time_text}} - - - {{item.views}} - + + {{item.release_time_text}} + + + {{item.views}} @@ -78,7 +76,7 @@ - @@ -111,12 +109,14 @@ - + + :src="item.full_image"> - {{item.title}} + {{item.title}} + {{item.release_time_text}} @@ -133,14 +133,16 @@ - + - 暂无数据信息 - --> + + 请输入要搜索的内容 + 暂无相关数据 + @@ -176,9 +178,9 @@ }, ]; const currentTab = ref(0) - const collectRentList = ref([]) + const searchRentList = ref([]) const rentCount = ref(0) - const collectSchoolList = ref([]) + const searchClassesList = ref([]) const schoolCount = ref(0) const mallList = ref([]) const mallCount = ref(0) @@ -212,16 +214,33 @@ function onChange(e) { console.log('onChange', e); currentTab.value = e.index - console.log('切换tabs', currentTab.value,listQuery.value.keywords); - if(listQuery.value.keywords != null) { + console.log('切换tabs', currentTab.value, listQuery.value.keywords); + if (listQuery.value.keywords != null) { if (currentTab.value == 0) { - collectRentList.value = []; - getRentList(); + searchRentList.value = []; + if(listQuery.value.keywords == null || listQuery.value.keywords == '') { + + }else { + getRentList(); + } + } else if (currentTab.value == 1) { - collectSchoolList.value = []; - getSchoolList(); + searchClassesList.value = []; + if(listQuery.value.keywords == null || listQuery.value.keywords == '') { + + }else { + getSchoolList(); + } + } else { - getGoods(); + mallList.value = []; + if(listQuery.value.keywords == null || listQuery.value.keywords == '') { + + }else { + getGoods(); + // getRentList(); + } + } } } @@ -229,12 +248,13 @@ function search(e) { console.log('搜索', e.value); if (currentTab.value == 0) { - collectRentList.value = []; + searchRentList.value = []; getRentList(); } else if (currentTab.value == 1) { - collectSchoolList.value = []; + searchClassesList.value = []; getSchoolList(); } else { + mallList.value = []; getGoods(); } } @@ -268,17 +288,20 @@ console.log('招租收藏列表', res); if (res.code == 1) { - collectRentList.value = [...collectRentList.value, ...res.data.list]; + searchRentList.value = [...searchRentList.value, ...res.data.list]; rentCount.value = res.data.count + for(let i=0;i