From 1c59fd0398d3608dc1d42965f27875f6a8870322 Mon Sep 17 00:00:00 2001 From: wangyx <2838268875@qq.com> Date: Wed, 6 Aug 2025 17:56:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=BA=E5=88=B6=E6=B8=85=E9=80=80=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=BE=85=E5=AF=B9=E6=8E=A5=E5=8F=A3=EF=BC=8C=E6=9D=83?= =?UTF-8?q?=E9=99=90=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 5 + pages/tabBar/mine/index.vue | 2 + pages/tabBar/work/index.vue | 17 ++- pagesA/force/list/list.vue | 187 +++++++++++++++++++++++++++++++ pagesA/release/detail/detail.vue | 12 +- 5 files changed, 217 insertions(+), 6 deletions(-) create mode 100644 pagesA/force/list/list.vue diff --git a/pages.json b/pages.json index 3dd793b..3709b37 100644 --- a/pages.json +++ b/pages.json @@ -60,6 +60,11 @@ "style": { "navigationBarTitleText": "释放房源检查" } + },{ + "path": "force/list/list", + "style": { + "navigationBarTitleText": "强制清退" + } }, { "path": "force/index/index", diff --git a/pages/tabBar/mine/index.vue b/pages/tabBar/mine/index.vue index dd52258..bc0643d 100644 --- a/pages/tabBar/mine/index.vue +++ b/pages/tabBar/mine/index.vue @@ -17,6 +17,7 @@ v-for="(item, idx) in menuList" :key="idx" @click="goPage(item.url)" + v-if="item.show" > {{ item.text }} @@ -48,6 +49,7 @@ export default { icon: "/static/img/巡检记录.png", text: "我的巡检记录", url: "/pagesA/xjPage/xjRecord", + show: uni.getStorageSync("showInspection"), }, // { // icon: "/static/img/password.png", diff --git a/pages/tabBar/work/index.vue b/pages/tabBar/work/index.vue index 2465b6e..9c348a4 100644 --- a/pages/tabBar/work/index.vue +++ b/pages/tabBar/work/index.vue @@ -53,7 +53,7 @@ - + 报修 - + 报事 + + + + + + + {{ item.roomNamePath }} + + {{ item.graduateName }} + {{ item.gender == 1 ? "男" : "女" }} + {{ maskPhoneNumber(item.telephone) }} + + {{ item.checkInDate }}至{{ item.checkOutDate }} + + + + 加载中... + + 暂无数据~ + + + + + + + diff --git a/pagesA/release/detail/detail.vue b/pagesA/release/detail/detail.vue index b4128c2..85ea68a 100644 --- a/pagesA/release/detail/detail.vue +++ b/pagesA/release/detail/detail.vue @@ -192,7 +192,11 @@ export default { for (let i = 0; i < files.length; i++) { const file = files[i]; const filePath = file.tempFilePath; - const type = file.fileType || (filePath.match(/\.(mp4|mov|avi|wmv|flv|mkv)$/i) ? "video" : "image"); + const type = + file.fileType || + (filePath.match(/\.(mp4|mov|avi|wmv|flv|mkv)$/i) + ? "video" + : "image"); // 上传 const uploadRes = await uploadImage(filePath); this.fileList.push({ @@ -245,7 +249,7 @@ export default { if (res && res.code === 200) { this.roomDetail = res.data || {}; - this.value = res.data.facilitiesCheckDesc + // 根据返回的数据更新页面显示 this.updatePageData(); } else { @@ -281,6 +285,8 @@ export default { if (this.roomDetail.remark) { this.value = this.roomDetail.remark; } + this.value = this.roomDetail.facilitiesCheckDesc; + this.fileList = this.roomDetail.facilitiesCheckImages; }, onDeviceChange(idx, val) { @@ -340,7 +346,7 @@ export default { uni.showToast({ title: "提交成功", icon: "success" }); setTimeout(() => { uni.navigateTo({ - url: '/pages/tabBar/work/index' + url: "/pages/tabBar/work/index", }); }, 1000); } else {