From d183cb00c0c254ca043baa494aec7bb325b7ad1a Mon Sep 17 00:00:00 2001 From: zhouyanli <593579392@qq.com> Date: Wed, 29 Apr 2026 17:39:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E5=9C=A8=E7=BA=BF=E6=8A=A5?= =?UTF-8?q?=E4=BF=AE=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pageSubPack/api/api.js | 21 +++ .../pageSubPack/loginSub/pwd-login.vue | 1 + .../online-repair/onlineRepair.vue | 135 +++++++++++------- .../online-repair/personalRepair.vue | 83 +++++++++-- .../online-repair/personalSelectPoject.vue | 63 ++++---- .../online-repair/publicRepair.vue | 90 ++++++++---- .../online-repair/repairSelect.vue | 51 ++++--- .../pageSubPack/online-repair/selectHouse.vue | 55 +++++-- 8 files changed, 356 insertions(+), 143 deletions(-) diff --git a/property-uniapp-project/pageSubPack/api/api.js b/property-uniapp-project/pageSubPack/api/api.js index f394cb0..e14e3e8 100644 --- a/property-uniapp-project/pageSubPack/api/api.js +++ b/property-uniapp-project/pageSubPack/api/api.js @@ -96,8 +96,29 @@ export const addActivityLive = (id, data) =>{ export const signinActivityLive = (id, data) =>{ return post(`/api/resident/activity/${id}/signin`, data) } +// ==============在线报修======== +// 添加报修工单 +export const addQueryRepair = (data) =>{ + return post("/repairOrder/addRepair",data) +} +// 获取公共维修项目列表 +export const getRepairProjectList = (data) =>{ + return get("/repairOrder/list",data) +} +// 获取报修列表 +export const getQueryRepair = (data) =>{ + return get("/repairOrder/queryRepair",data) +} +// 获取房屋列表 +export const getHouseList = (data) =>{ + return get('/api/resident/my/house/list',data) +} // 通用文件上传 export const uploadImage = () => { return upload(''); +} +// 上传单张图片(请根据后端实际地址修改) +export const uploadFile = (filePath) => { + return upload(filePath, '/common/upload'); } \ No newline at end of file diff --git a/property-uniapp-project/pageSubPack/loginSub/pwd-login.vue b/property-uniapp-project/pageSubPack/loginSub/pwd-login.vue index d4e664c..2380c56 100644 --- a/property-uniapp-project/pageSubPack/loginSub/pwd-login.vue +++ b/property-uniapp-project/pageSubPack/loginSub/pwd-login.vue @@ -143,6 +143,7 @@ const handleLogin = () => { // 存当前绑定的小区ID,0 表示未绑定 const currentVillageId = res.data.currentVillageId || 0; uni.setStorageSync('currentVillageId', currentVillageId); + uni.setStorageSync('userId',res.data.userId) } uni.hideLoading(); uni.showToast({ title: '登录成功', icon: 'success' }); diff --git a/property-uniapp-project/pageSubPack/online-repair/onlineRepair.vue b/property-uniapp-project/pageSubPack/online-repair/onlineRepair.vue index 98623ff..8c5c6ce 100644 --- a/property-uniapp-project/pageSubPack/online-repair/onlineRepair.vue +++ b/property-uniapp-project/pageSubPack/online-repair/onlineRepair.vue @@ -66,88 +66,103 @@ - 标题标题标题 + {{ item.title || '报修' }} {{ item.status }} - - 公共报修 - 路灯 + + {{ item.repairTypeName }} + {{ item.category }} - {{ item.content }} + {{ item.content || item.description || '' }} - - - - + + + - {{ item.time }} + {{ item.time || item.createTime || '' }} 报修详情 + + + + 暂无数据 +