From a0e887c68d6e265591dd19497a3f38dc3dfe9ab3 Mon Sep 17 00:00:00 2001 From: huliyong <2783385703@qq.com> Date: Wed, 6 Aug 2025 18:33:48 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=88=BF=E6=BA=90=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=88=91=E5=8F=91=E5=B8=83=E7=9A=84=E6=88=BF?= =?UTF-8?q?=E6=BA=90=E9=A1=B5=E9=9D=A2=E5=8F=8A=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增我发布的房源页面,包含列表展示、编辑和删除功能 - 实现房源列表的分页加载和下拉刷新 - 添加空状态提示和发布房源引导按钮 - 修改用户信息获取逻辑,从Vuex store获取最新数据 - 更新首页轮播图API调用和数据结构 - 在用户中心添加我发布的房源入口 --- common/api.js | 3 + pages.json | 10 + pages/home/index.vue | 20 +- pages/login/index.vue | 59 ++++-- pages/user/index.vue | 17 ++ pages_subpack/my-published-houses/index.vue | 285 ++++++++++++++++++++++++++++ 6 files changed, 376 insertions(+), 18 deletions(-) create mode 100644 pages_subpack/my-published-houses/index.vue diff --git a/common/api.js b/common/api.js index 48694b0..738e9b3 100644 --- a/common/api.js +++ b/common/api.js @@ -82,3 +82,6 @@ export const houseYear = (params) => http.get('/houserent-admin/comment/getHouse // 经济人获取账号密码以及邀请码 export const accountCode = (params) => http.get('/houserent-admin/comment/getAccountCode', {params,params}) + +export const getBanner = (params) => http.get('/houserent-admin/common_index/queryBannerList', {params}) + diff --git a/pages.json b/pages.json index 75fe5b9..d7f1ba0 100644 --- a/pages.json +++ b/pages.json @@ -210,6 +210,16 @@ "navigationBarBackgroundColor": "#1EC77A", "navigationBarTextStyle": "white" } + }, + { + "path": "my-published-houses/index", + "style": { + "navigationBarTitleText": "我发布的房源", + "enablePullDownRefresh": true, + "onReachBottomDistance": 100, + "navigationBarBackgroundColor": "#1EC77A", + "navigationBarTextStyle": "white" + } } ] } diff --git a/pages/home/index.vue b/pages/home/index.vue index e9070f6..a5448d2 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -13,7 +13,9 @@ - + @@ -88,7 +90,7 @@ + + \ No newline at end of file