对接一键开门 修改首页引导页自适应样式

This commit is contained in:
zhouyanli
2026-05-19 17:52:57 +08:00
parent 5539e737d7
commit 99c36c0d83
9 changed files with 271 additions and 249 deletions

View File

@@ -100,14 +100,14 @@ onLoad((options) => {
repairId.value = options.projectId
}
// ✅ 监听返回选择的项目
// 监听返回选择的项目
uni.$on('selectRepairProject', (data) => {
repairProject.value = `${data.category}-${data.project}`
repairId.value = data.projectId
})
})
// ✅ 页面卸载时移除监听(必须加)
// 页面卸载时移除监听
onUnload(() => {
uni.$off('selectRepairProject')
})
@@ -155,8 +155,8 @@ const uploadImages = async () => {
uploadedUrls.push(res.url || '')
} catch (err) {
uni.showToast({
title:e.msg || '图片上传失败',
icon:'error'
title:err.msg || '图片上传失败',
icon:'error'
})
}
}