From 8641e708d704c3b5a04ee2bf48098bfabeeb2e76 Mon Sep 17 00:00:00 2001
From: zjf <1799650030@qq.com>
Date: Fri, 31 Oct 2025 15:25:12 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=A4=B1=E7=89=A9=E6=8B=9B?=
=?UTF-8?q?=E9=A2=86=E8=AF=A6=E6=83=85=EF=BC=8C=E4=BF=AE=E5=A4=8D=E6=8B=8D?=
=?UTF-8?q?=E7=85=A7=E5=9B=BE=E7=89=87=E6=97=A0=E6=B3=95=E4=B8=8A=E4=BC=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env | 8 +-
src/pages.json | 6 +
src/pages/integrated/lostAndFound/detail.vue | 277 +++++++++++++++++++
src/pages/integrated/lostAndFound/index.vue | 11 +
src/pages/integrated/repair/index.vue | 2 +-
src/sheep/api/lostAndFound.ts | 8 +
6 files changed, 307 insertions(+), 5 deletions(-)
create mode 100644 src/pages/integrated/lostAndFound/detail.vue
diff --git a/.env b/.env
index 7fbf7e7..4c900c9 100644
--- a/.env
+++ b/.env
@@ -20,15 +20,15 @@ VITE_OAUTH2_APP_CLIENT='mini:mini'
# VITE_APP_DEV_SERVICE = https://stgl.pj.gov.cn/api # 域名线上
#VITE_APP_DEV_SERVICE = http://59.202.170.152:81/api # 信创线上
# VITE_APP_DEV_SERVICE = http://192.168.101.174:9999 # 邓-本地
-# VITE_APP_DEV_SERVICE = http://127.0.0.1:9999 # 邓-本地
-VITE_APP_DEV_SERVICE = http://123.157.250.162:8089/api # 测试线上
+ VITE_APP_DEV_SERVICE = http://127.0.0.1:9999 # 邓-本地
+#VITE_APP_DEV_SERVICE = http://123.157.250.162:8089/api # 测试线上
# --------------------------- 开发环境 图片访问基础地址 ---------------------------
# VITE_IMAGE_DEV_PATH = https://stgl.pj.gov.cn/api # 域名线上
#VITE_IMAGE_DEV_PATH = http://59.202.170.152:81/api # 信创线上
# VITE_IMAGE_DEV_PATH = http://192.168.101.174:9999 # 邓-本地
-# VITE_IMAGE_DEV_PATH = http://127.0.0.1:9999
-VITE_IMAGE_DEV_PATH = http://123.157.250.162:8089/api # 测试线上
+ VITE_IMAGE_DEV_PATH = http://127.0.0.1:9999
+#VITE_IMAGE_DEV_PATH = http://123.157.250.162:8089/api # 测试线上
# --------------------------- 生产环境 api地址 ----------------------------------
VITE_APP_PROD_SERVICE = https://stgl.pj.gov.cn/api # 域名线上
diff --git a/src/pages.json b/src/pages.json
index 23db7a2..667f094 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -507,6 +507,12 @@
"navigationBarTitleText": "失物招领"
}
},
+ {
+ "path": "lostAndFound/detail",
+ "style": {
+ "navigationBarTitleText": "失物详情"
+ }
+ },
{
"path": "meeting/index",
"style": {
diff --git a/src/pages/integrated/lostAndFound/detail.vue b/src/pages/integrated/lostAndFound/detail.vue
new file mode 100644
index 0000000..e0e68fd
--- /dev/null
+++ b/src/pages/integrated/lostAndFound/detail.vue
@@ -0,0 +1,277 @@
+
+
+ 加载中...
+
+
+
+ {{ detail.title || '失物招领详情' }}
+
+ 时间:{{ formatDate(detail.dateFound) }}
+ 地点:{{ detail.location || '暂无' }}
+
+ {{ statusText }}
+
+
+
+
+
+
+
+ 物品描述
+
+ 暂无描述信息
+
+
+
+ 联系方式
+ {{ contactInfo }}
+
+
+
+ 备注
+ {{ detail.remark }}
+
+
+
+ 暂无详情数据
+
+
+
+
+
+
+
diff --git a/src/pages/integrated/lostAndFound/index.vue b/src/pages/integrated/lostAndFound/index.vue
index 017d9de..f290d9e 100644
--- a/src/pages/integrated/lostAndFound/index.vue
+++ b/src/pages/integrated/lostAndFound/index.vue
@@ -19,6 +19,7 @@
v-for="item in list"
:key="item.id"
class="item-card"
+ @tap="viewDetail(item)"
>
{{ item.title }}
@@ -105,6 +106,16 @@ const onRefresh = async () => {
await fetchData(1)
}
+const viewDetail = (item: LostAndFoundItem) => {
+ if (!item?.id) return
+ uni.navigateTo({
+ url: `/pages/integrated/lostAndFound/detail?id=${item.id}`,
+ success: (res) => {
+ res.eventChannel.emit('initDetail', item)
+ },
+ })
+}
+
const formatDate = (date: string) => {
return dayjs(date).format('YYYY-MM-DD')
}
diff --git a/src/pages/integrated/repair/index.vue b/src/pages/integrated/repair/index.vue
index b030a4c..a6df490 100644
--- a/src/pages/integrated/repair/index.vue
+++ b/src/pages/integrated/repair/index.vue
@@ -36,7 +36,7 @@
v-model="uploadFileUrl"
:url="'/api/admin/sys-file/upload'"
:maxCount="5"
- :maxFileSize="1024 * 1024"
+ :maxFileSize="10 * 1024 * 1024"
:beforeComplete="beforeComplete"
:header="header"
/>
diff --git a/src/sheep/api/lostAndFound.ts b/src/sheep/api/lostAndFound.ts
index 3be24c9..f19f4a7 100644
--- a/src/sheep/api/lostAndFound.ts
+++ b/src/sheep/api/lostAndFound.ts
@@ -33,4 +33,12 @@ export default {
method: "GET",
params,
}),
+
+ // 获取失物招领详情
+ getDetail: (id: string) =>
+ request({
+ url: "integrated/lostAndFound/app/getDetails",
+ method: "GET",
+ params: { id },
+ }),
}