From d0a0b2dbafc853230845e9f238f558b1ba816952 Mon Sep 17 00:00:00 2001 From: zhouyanli <593579392@qq.com> Date: Thu, 30 Apr 2026 17:30:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E6=8A=A5=E4=BF=AE=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=92=8C=E6=8A=A5=E4=BF=AE=E8=AF=A6=E6=83=85=E3=80=81?= =?UTF-8?q?=E8=AE=BF=E5=AE=A2=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../activity-list/activityList.vue | 2 +- .../pageSubPack/api/api.js | 5 + .../pageSubPack/api/request.js | 2 +- .../online-repair/onlineRepair.vue | 5 +- .../online-repair/repairDetail.vue | 2 +- .../pageSubPack/visitor/visitor-list.vue | 94 +++++++++++++------ 6 files changed, 73 insertions(+), 37 deletions(-) diff --git a/property-uniapp-project/pageSubPack/activity-list/activityList.vue b/property-uniapp-project/pageSubPack/activity-list/activityList.vue index 42a8f7c..c7c00ff 100644 --- a/property-uniapp-project/pageSubPack/activity-list/activityList.vue +++ b/property-uniapp-project/pageSubPack/activity-list/activityList.vue @@ -44,7 +44,7 @@ - + {{ activeTab === 'list' ? '暂无活动' : '暂无参与的活动' }} diff --git a/property-uniapp-project/pageSubPack/api/api.js b/property-uniapp-project/pageSubPack/api/api.js index 4556cde..ef21a19 100644 --- a/property-uniapp-project/pageSubPack/api/api.js +++ b/property-uniapp-project/pageSubPack/api/api.js @@ -117,6 +117,11 @@ export const getHouseList = (data) =>{ export const getRepairDetail = (data) =>{ return get('/repairOrder/queryRepairDetail',data) } +// =========访客邀请=========== +// 获取访客列表 +export const getVisitorList = (data) =>{ + return get('/api/visitor/list',data) +} // 通用文件上传 export const uploadImage = () => { diff --git a/property-uniapp-project/pageSubPack/api/request.js b/property-uniapp-project/pageSubPack/api/request.js index 3ef8483..4ed9735 100644 --- a/property-uniapp-project/pageSubPack/api/request.js +++ b/property-uniapp-project/pageSubPack/api/request.js @@ -2,7 +2,7 @@ let baseUrl = ''; if (process.env.NODE_ENV === 'development') { // http://192.168.1.215 // http://192.168.0.224 - baseUrl = 'http://192.168.0.224:8080'; // 开发环境 + baseUrl = 'http://192.168.1.215:8080'; // 开发环境 } else { baseUrl = 'http://192.168.0.224:8080'; // 生产环境 } diff --git a/property-uniapp-project/pageSubPack/online-repair/onlineRepair.vue b/property-uniapp-project/pageSubPack/online-repair/onlineRepair.vue index b283be9..943e6d4 100644 --- a/property-uniapp-project/pageSubPack/online-repair/onlineRepair.vue +++ b/property-uniapp-project/pageSubPack/online-repair/onlineRepair.vue @@ -153,10 +153,9 @@ const fetchRepairList = async () => { problemStatus: statusMap[activeStatus.value].value }; const res = await getQueryRepair(params); - console.log('接口返回:', res); + // console.log('接口返回:', res); if (res.code === 200) { - // 兼容多种分页返回结构 - const list = res.data?.rows || []; + const list = res.data || []; repairList.value = list.map(item => { const statusInfo = getStatusInfo(item.problemStatus); const images = item.problemImageUrl ? item.problemImageUrl.split(',').filter(Boolean) : []; diff --git a/property-uniapp-project/pageSubPack/online-repair/repairDetail.vue b/property-uniapp-project/pageSubPack/online-repair/repairDetail.vue index e030c03..5cdc103 100644 --- a/property-uniapp-project/pageSubPack/online-repair/repairDetail.vue +++ b/property-uniapp-project/pageSubPack/online-repair/repairDetail.vue @@ -129,7 +129,7 @@ const fetchDetail = async (id) => { } onLoad((option) => { - console.log("页面打开,路由参数:", option) + // console.log("页面打开,路由参数:", option) // 传了 id 才调用接口 if (option?.id) { diff --git a/property-uniapp-project/pageSubPack/visitor/visitor-list.vue b/property-uniapp-project/pageSubPack/visitor/visitor-list.vue index 027e17d..b5c1e7d 100644 --- a/property-uniapp-project/pageSubPack/visitor/visitor-list.vue +++ b/property-uniapp-project/pageSubPack/visitor/visitor-list.vue @@ -45,7 +45,7 @@ {{ item.status === 'waiting' ? '有效期' : '到访时间' }}: - {{ item.timeRange }} + {{ item.startTime }}至{{item.endTime}} @@ -69,6 +69,13 @@ + + + + + {{ activeTab === 'waiting' ? '暂无等待到访数据' : '暂无已到访数据' }} + + @@ -81,41 +88,50 @@