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 },
+ }),
}