From 8400bd158c30c4b3b42d5215c39b9fd1bd50839f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Wed, 8 Oct 2025 12:42:10 +0800 Subject: [PATCH] =?UTF-8?q?feat(community):=20=E5=AE=9E=E7=8E=B0=E5=B0=8F?= =?UTF-8?q?=E5=8C=BA=E8=AF=A6=E6=83=85=E9=A1=B5=E9=9D=A2=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增获取小区详情的API接口communityDetailReq - 优化小区详情页面展示逻辑,完善数据回显- 增加小区详情数据加载状态提示与异常处理 - 完善小区列表跳转详情页的参数校验与错误提示 - 调整小区详情页面UI布局与字段展示逻辑 - 优化小区列表页点击事件绑定位置提升交互体验 --- api/common.js | 2 ++ pages/community/detail.vue | 55 +++++++++++++++++++++++++------------- pages/community/index.vue | 29 +++++++++++++++++--- 3 files changed, 63 insertions(+), 23 deletions(-) diff --git a/api/common.js b/api/common.js index 58a23a7..3107173 100644 --- a/api/common.js +++ b/api/common.js @@ -12,6 +12,8 @@ export const swiperListReq = () => get('/sys/sys-swiper') export const communityListReq = () => get('/zhsq/zhsq-base-village?withFeeItem=true&withPopulation=true') +export const communityDetailReq = (id) => get(`/zhsq/zhsq-base-village/${id}?withFeeItem=true&withPopulation=true`) + export const roomListReq = params => get('/zhsq/zhsq-base-room', {params}) export const miniRoomListReq = params => get('/zhsq/zhsq-base-room/mini', {params}) diff --git a/pages/community/detail.vue b/pages/community/detail.vue index fbbfcdf..07a82c0 100644 --- a/pages/community/detail.vue +++ b/pages/community/detail.vue @@ -1,15 +1,13 @@