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 || '' }} 报修详情 + + + + 暂无数据 +